Linear Interpolation Calculator

Linear Interpolation Calculator

Estimate a y-value between two known points with the line segment formula, or extend it as extrapolation.

Last updated: June 2026 | By Patchworkr Team

Two-point interpolation
Estimated y
Enter values to calculate

Formula

y = y0 + ((y1 - y0) / (x1 - x0)) * (x - x0)

When x lies outside the interval between x0 and x1, the calculation is extrapolation rather than interpolation.

Why it works

The method assumes the relationship between the two known points is linear, so the fraction of the x-change is applied to the y-change.

Related Tools