Linear Interpolation
Calculator

Inputs

Interpolated y
8

Results

Interpolated y
8

Results

Interpolated y8

formula-map diagram

Interpolated y
8

Formula map

Formula

y = y₁ + (x − x₁) × (y₂ − y₁) ÷ (x₂ − x₁)

= 8

Note

Simplified model: these are exact results of the stated idealised formulas, assuming perfect shapes and exact inputs. Real measurements carry error, and the ellipse perimeter is a Ramanujan approximation. Verify independently before relying on these figures.

Example: with the default inputs, calculator.mathematics.interpolated_y is 8.

More in Mathematics

See all →

Frequently asked questions

How does linear interpolation work?+

Given two known points (x₁, y₁) and (x₂, y₂), it finds y at a target x on the straight line between them: y = y₁ + (x − x₁) × (y₂ − y₁) ÷ (x₂ − x₁).

What inputs do I need?+

You need the two known points (x₁, y₁) and (x₂, y₂), plus the target x for which you want y.

Can the target x be outside the two points?+

Yes. The same formula is applied, so a target outside the range gives a value extrapolated along the same line. Extrapolated values may be less reliable.

What happens if x₁ and x₂ are equal?+

The line is undefined because the denominator would be zero. In that case the calculator returns y₁.

When is linear interpolation accurate?+

It is exact if the data really lies on a straight line. For curved data it is only an approximation between the two points.