Linear Interpolation Calculator
The y between two known points — interpolated or extrapolated.
The formula behind it
y = y₁ + (x − x₁) × (y₂ − y₁) ÷ (x₂ − x₁)- (x₁, y₁), (x₂, y₂)
- two known points bracketing your x
- (y₂ − y₁)/(x₂ − x₁)
- the slope — how fast y changes per unit of x
- x
- where you want the estimate
Linear interpolation draws the straight line through your two known points and reads the value at x off it. When x lies outside the bracket the same formula extrapolates — mathematically fine, statistically riskier, and flagged as such.
How to use this calculator
- 1
Enter both known points (x₁,y₁) and (x₂,y₂) — from a table, calibration curve or measurement set.
- 2
Enter the x where you need a value.
- 3
The result states whether x was inside the bracket (interpolation) or outside (extrapolation).
- 4
The steps show the slope and the substituted equation so the estimate is auditable.
- 5
Use the slope line as a sanity check: it's the per-unit rate of change between your points.
Worked examples
Table lookup between rows
A steam table gives 10 → 100 and 20 → 180; you need x = 15. Slope = 80/10 = 8. y = 100 + 8 × (15 − 10) = 140 — the tool shows every substitution.
Extrapolation flagged
Same points, x = 25: y = 100 + 8 × 15 = 220. The result is labeled extrapolated — the line may bend beyond the data, and the further out, the less the straight-line assumption holds.