How to Use the Linear Interpolation Calculator: Steps and a Worked Example
Estimate a value between two known points on a straight line. This guide shows what to enter, a worked example with real numbers, and the limits to keep in mind. The Linear Interpolation Calculator tool is free, needs no account and runs in your browser.
What you need
- First point: x, for example 0
- Second point: x, for example 4
- First point: y, for example 0
- Second point: y, for example 3
- Interpolate at x, for example 2
Step by step
- Open the Linear Interpolation Calculator tool.
- Fill in First point: x.
- Fill in Second point: x.
- Fill in First point: y.
- Fill in Second point: y.
- Fill in Interpolate at x.
- Read the result, which updates as soon as the inputs change.
Worked example
With these inputs:
- First point: x: 0
- Second point: x: 4
- First point: y: 0
- Second point: y: 3
- Interpolate at x: 2
the tool returns:
Interpolated value: 1.5
A second example
Changing First point: x 0 to 10 gives:
Interpolated value: 4
Comparing two runs like this is a quick way to see how much each input moves the result.
How it works
The calculation is: y = y₁ + (x − x₁) × (y₂ − y₁) ÷ (x₂ − x₁). Enter two known points, x1 with y1 and x2 with y2, then the x value you are interested in. The calculator returns the y value on the straight line between the two points.
Things to keep in mind
Assumes the values change in a straight line between the two points. Results outside the two points are extrapolation and less reliable.
Related tools
If this is not quite what you need, try Slope Calculator, Midpoint Calculator or Distance Between Points Calculator.