Skip to content
Mathematics

Linear interpolation

Find an intermediate value from two known points. Outside their range, the calculator identifies the result as extrapolation.

Free & no registration Calculated in your browser
01

Your inputs

The starting values are an example.

Decimals: 12.5 · Thousands: 1,234.56. Follow the field instructions for lists.

02

Your result

Enter your values and select Calculate.

Your calculation will appear here.

Your result will include the relevant values and units.

Understand the calculation

Formula and example

How it is calculated

y = y₁ + (x−x₁)·(y₂−y₁)/(x₂−x₁).

Worked example

Between (10;20) and (30;60), x = 15 gives y = 30. The slope is 2.

Things to check

  • The two known x values must be different.
  • The calculation assumes a straight line across the range. Measurement uncertainty and curvature are not included.

Frequently asked questions

Can I enter a value outside the two points?

Yes. It is marked as extrapolation because extending the line beyond the known values requires an additional assumption.