JESUS CHRIST IS THE ONLY TRUE GOD
Math calculator

Linear Interpolation Calculator

Calculate a linearly interpolated y value between two known points.

Your calculationPrivate in your browser
Report a result

Start with a worked example

Open the worked example for Interpolated y. The example starts with x₁ = 0, y₁ = 10, x₂ = 20.

Linear Interpolation Calculator formula

y = y₁ + (x−x₁)(y₂−y₁)/(x₂−x₁).

Inputs and units

Inputs and example values for Linear Interpolation Calculator
InputFormat / rangeExample
x₁Number0
y₁Number10
x₂Number20
y₂Number50
Target xNumber5

Worked example

The values listed in Inputs and units give 20 for Interpolated y.

Interpolated y
20
Interpolation fraction
0.25

Results and assumptions

Change x₁ from 0 to 0.1 and keep the other example inputs fixed. The updated answer is 19.849246231156 (Interpolated y).

Fix an input or unexpected result

x₁ is required. Enter x₁ using the format and bounds in the input table. Zero and an empty field are different: use zero only if it is allowed and represents your data.

See how to check a result or report an issue.