Interpolation Calculator

Enter two known points and a target x value to find the interpolated y value.

Point 1
Point 2
Interpolated Y
40

How linear interpolation works

Linear interpolation estimates a value between two known data points by assuming the relationship between them is a straight line. The formula is y = y1 + (x − x1) × (y2 − y1) / (x2 − x1), finding the proportional position of your target x between x1 and x2, then applying that same proportion to find y.

This is useful whenever you have two known measurements and need to estimate a value in between, such as reading a value from a sparse lookup table, estimating a sensor reading between calibration points, or finding an intermediate value in engineering tables.

Frequently asked questions

What if my target X is outside the range of my two points?

This calculator will still compute a result — this is technically called extrapolation rather than interpolation. Extrapolated results assume the linear relationship continues beyond your known data, which is a less reliable assumption than interpolating between known points.

Does this work for curved (non-linear) relationships?

This calculator assumes a straight-line relationship between your two points. For data that's known to follow a curve, linear interpolation is still often a reasonable local approximation if your two points are close together, but a dedicated curve-fitting method would be more accurate for data with significant curvature.

What's a common real-world use for linear interpolation?

It's widely used in engineering reference tables (like steam tables or material property charts), computer graphics (blending between colors or positions), financial calculations (estimating values between known data points), and any lookup table with limited entries.

Also try:

Back to category →