Linear Interpolation Calculator
Estimate y at any x on the straight line through two known points.
Formula
y=y₁+(x−x₁)(y₂−y₁)/(x₂−x₁).
Estimated y ≈ (0)+((5)-(0))×((20)-(0))÷((10)-(0))
How to use
- Enter both known points.
- Enter the target x.
- Read the corresponding y.
Examples
- (0,0) and (10,20) give y=10 at x=5.
Frequently asked questions
Can the x coordinates match?
No. Two distinct x values are needed.
What if x lies outside the interval?
The same line is extrapolated beyond the data.
Is the estimate exact?
Only when the relationship is linear. Keep each axis in consistent units.
Sources
Updated: