MyCalCute
Install
Calculators / Math / Linear interpolation

Linear interpolation calculator

Estimate a value between two known readings using a straight line.

On this page

Your result

Interpolated value15
Progress across interval25%

Calculator controls

How to calculate

Linear interpolationLinear interpolation1InputsFirst position ·First value · Secondposition · Secondvalue · Targetposition2MethodInterpolated value =y1+(y2-y1)*(x-x1)/(x2-x1); Progressacross interval =100*(x-x1)/(x2-x1) %3Result15
Linear interpolationA target at 10 between positions 0 and 40 lies one quarter of the way across. Readings of 10 and 30 give an estimate of 15. Concept diagram; not to scale.Linear interpolation1InputsFirst position · First value ·Second position · Second value…2MethodInterpolated value =y1+(y2-y1)*(x-x1)/(x2-x1);…3Result15MyCalCute.com
A target at 10 between positions 0 and 40 lies one quarter of the way across. Readings of 10 and 30 give an estimate of 15. Concept diagram; not to scale.

Estimate a value between two known readings using a straight line.

Interpolated value = y1+(y2-y1)*(x-x1)/(x2-x1)
Progress across interval = 100*(x-x1)/(x2-x1) %

Worked example

  • First position: 0
  • First value: 10
  • Second position: 40
  • Second value: 30
  • Target position: 10
  • Interpolated value: 15
  • Progress across interval: 25 %

Assumptions and limits

The second position must exceed the first and the target must lie between them. A curved trend can differ from the straight-line estimate.

Results are rounded for display; calculations use unrounded values. Read our calculation methodology.

Understanding the result

Estimate a value between two known readings using a straight line. A target at 10 between positions 0 and 40 lies one quarter of the way across. Readings of 10 and 30 give an estimate of 15.

When this tool is useful

A target at 10 between positions 0 and 40 lies one quarter of the way across. Readings of 10 and 30 give an estimate of 15.

Understanding your inputs

InputExample
First position x10
First value y110
Second position x240
Second value y230
Target position x10

Frequently asked questions

Which assumptions apply?

The second position must exceed the first and the target must lie between them. A curved trend can differ from the straight-line estimate.

How can I verify the result?

Use the values in the worked example and keep consistent units throughout the calculation.