Linear Interpolation Calculator

Estimate a y-value between two points using linear interpolation or extend the line by extrapolation.

Result
—

How to calculate

Find the fraction of the horizontal distance to the target, then take the same fraction of the total vertical change and add it to the first y-value.

Worked example

Use First point x 1 · First point y 3 · Second point x 4 · Second point y 9 · Target x 2.5. The result is 6.

Input notes

Enter integers, decimals, or fractions. Fractions in the result are in lowest terms.

OpenStax linear equation forms

Related calculators