Linear Interpolation Calculator
Estimate a value between two known points with the linear interpolation formula.
About linear interpolation
Examples
These examples show midpoint and fractional interpolation.
| Known points and target | Interpolated value | Explanation |
|---|---|---|
| (0, 10), (10, 30), x = 4 | y = 18 | Forty percent of the y change is added to 10. |
| (20, 68), (30, 86), x = 25 | y = 77 | The target is exactly halfway between the endpoints. |
| (100, 5), (200, 9), x = 175 | y = 8 | A fraction of 0.75 adds three quarters of the change. |
How to use the calculator
- Enter the x and y coordinates of the first known point.
- Enter the x and y coordinates of the second known point.
- Enter the target x value you want to estimate.
- Select Calculate interpolated value and review y and the interval fraction.
Frequently asked questions
What is linear interpolation?
It estimates a value between two known points by assuming a constant rate of change. Geometrically, the estimate lies on the straight line joining those points.
Can I enter the endpoints in reverse order?
Yes, reversing both complete points produces the same line and result. The fraction is measured in the reversed direction but remains mathematically consistent.
What if the target is outside the interval?
The formula still returns a value, but the operation is called extrapolation. Predictions beyond known data are generally less reliable than estimates between the endpoints.
Why must x1 and x2 be different?
Equal x coordinates make the formula's denominator zero. A vertical line cannot define one y value for every x under this interpolation model.
When should I avoid linear interpolation?
Avoid it when the data changes sharply or follows a strongly curved relationship between points. A model that reflects the underlying process will usually be more accurate.