Linear Interpolation & Extrapolation Calculator

Solve x or y on the line through two points, classify interpolation or extrapolation, and compare an optional second target.

Enter your values

Calculations run on your device; inputs are not sent to our server.

Core result

Solve the missing coordinate and see where it lies

Enter two known points, choose whether to solve y from x or x from y, and enter a target. The result identifies an interior interpolation, an endpoint or an extrapolation beyond the measured interval. An optional second target makes a scenario comparison without changing the first result.

Formula and interpretation

For target x, y=y₁+(x−x₁)(y₂−y₁)/(x₂−x₁). The fraction t=(x−x₁)/(x₂−x₁) is 0 at the first point and 1 at the second. Solving x reverses the same relationship. The calculator also reports slope, intercept and y=mx+b.

Independent checks

From (200,15) to (300,20), x=250 gives y=17.5 and t=50%; x=350 gives y=22.5 and is extrapolation. The Fahrenheit points (32,0) and (212,100) give 20°C at 68°F. Solving x from (0,10) and (100,30) at y=50 gives x=200, beyond the interval.

Input mistakes, interpretation and limits

The two x coordinates cannot match; inverse solving also needs different y values. Negative and zero values are valid. A blank optional comparison is allowed. Every result assumes one straight line: extrapolation is flagged because the trend may bend, saturate or change outside the observed range. Measurement uncertainty, piecewise curves and domain rules are excluded.

Formula sources

NIST/SEMATECH defines the slope relationship, and OpenStax College Algebra 2e covers linear functions.

Unexpected result? Tell us the inputs and what you expected.