Linear Interpolation Calculator

Estimate a value between two known points assuming a straight-line relationship.

Free & Instant•Version: v1.0•Formula, examples and assumptions

Calculator InputsFormula v1.0

Calculated Output

y = y₀ + (x − x₀)(y₁ − y₀)/(x₁ − x₀)

Interpolated y value

20.000000
First point(2, 10)
Second point(6, 30)
Target x4
Instant Browser CalculationNo Server Logging

Formula and method

y = y₀ + (x − x₀)(y₁ − y₀)/(x₁ − x₀)

Interpolation assumes a linear relationship within the chosen interval and should not be treated as a forecast outside it.

Variables

x0
First x value
y0
First y value
x1
Second x value
y1
Second y value
x
Target x value

Worked example

Between (2, 10) and (6, 30), the interpolated value at x = 4 is 20.

Who this calculator is for

Students and analysts estimating intermediate values from a known table or line segment.

Complete guide to the linear interpolation calculator

Every figure below comes from this calculator itself. The method is y = y₀ + (x − x₀)(y₁ − y₀)/(x₁ − x₀), applied to the tool's default inputs and then stress-tested one input at a time.

What the Linear Interpolation Calculator works out

Linear Interpolation Calculator answers one specific question: Estimate a value between two known points assuming a straight-line relationship. It is written for students and analysts estimating intermediate values from a known table or line segment.

The method is y = y₀ + (x − x₀)(y₁ − y₀)/(x₁ − x₀). The inputs are First x value (x), First y value (y), Second x value (x), Second y value (y), Target x value (x). With the default values - First x value = 2 x, First y value = 10 y, Second x value = 6 x, Second y value = 30 y, Target x value = 4 x - the result is Interpolated y value: 20.000000. Raising First x value from 2 x to 2.20 x moves the headline result from 20.000000 to 19.473684.

Reading the output line by line

Alongside 20.000000 this method reports 3 supporting quantities: First point: (2, 10); Second point: (6, 30); Target x: 4. Reading them together shows which part of the calculation is doing the work.

The worked example is: Between (2, 10) and (6, 30), the interpolated value at x = 4 is 20. Use it to confirm the direction of the calculation before entering your own figures, and keep intermediate values unrounded until the final step.

How to interpret the answer

Interpolation assumes a linear relationship within the chosen interval and should not be treated as a forecast outside it.

Read it as one scenario: 20.000000 with first point at (2, 10) holds only for the inputs shown. Change whichever input you are genuinely unsure about and read the pair of figures together.

Work the relationship both ways: start from the inputs, arrive at 20.000000, then ask what input value would be needed to produce a target you already have in mind.

Common mistakes to avoid

Check units, timing and the source of each input. Use the output as an estimate within the assumptions shown.

Before relying on the figure, re-read First x value (x), First y value (y), Second x value (x), Second y value (y), Target x value (x) and confirm each entry matches its label, including whether a quantity is entered in the unit the label names. Adjust First x value on its own and watch whether the result behaves as the method says it should - here 20.000000 should shift smoothly rather than jump.

Limitations and responsible use

General estimate only; fees, taxes, changing conditions and local rules may not be included.

The figures above hold within those limits and not outside them. The formula, the substitution and the units are all printed so you can check the arithmetic yourself; whether the inputs describe your real situation is something only you can confirm. For a consequential decision, check the current figure against a primary source, since published values are revised.

Frequently asked questions

Which formula does the linear interpolation calculator use?

y = y₀ + (x − x₀)(y₁ − y₀)/(x₁ − x₀) Enter values that match the input labels and units.

Related Mathematics Calculators

Explore another calculator in this subject.