🧮
🧮 Math & statistics

Linear Interpolation Calculator (find y between two points)

Results update as you type.

Your numbers

Understanding the linear interpolation calculator — concept and principle

This calculator estimates a value between two known points by assuming a straight line between them. It gives the interpolated y, the slope, the position between the points and whether you are interpolating or extrapolating. Use it to read between the rows of tables, fill a gap in measurements or estimate values on a scale.

Reading between two pointsReading between two points(10, 50)(20, 80)(14, 62)14Slope30 ÷ 10 = 3Position t0.4y50 + 4 × 3 = 62
x = 14 is 40 % of the way from 10 to 20, so y is 40 % of the way from 50 to 80.

How it is calculated

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

Equivalently, with t = (x − x₁) ÷ (x₂ − x₁): y = (1 − t)·y₁ + t·y₂

The principle

Over a short interval, many smooth quantities change almost in a straight line. Linear interpolation uses that line: the fraction of the way you are from x₁ to x₂ is the same fraction of the way from y₁ to y₂. Its error grows with the curvature of the true function and with the square of the interval width, which is why finely spaced tables interpolate accurately.

Worked example

Default inputs: (10, 50) and (20, 80); look up x = 14.

  1. Slope = (80 − 50) ÷ (20 − 10) = 3.
  2. Position t = (14 − 10) ÷ (20 − 10) = 0.4, inside the two points — interpolation.
  3. y = 50 + (14 − 10) × (80 − 50) ÷ (20 − 10) = 50 + 4 × 3 = 62.
How Interpolated y changes with x to look upHow Interpolated y changes with x to loo…204060801001203.5710.51417.52128Example: 62x to look up
Each point is the calculator re-run with only “x to look up” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
x to look upInterpolated y
3.530.5
741
10.551.5
1462
17.572.5
2183
28104

How to read the result

x = 14 is 40 % of the way from 10 to 20, so y is 40 % of the way from 50 to 80. If the data curve between the points, the true value can be above or below 62; for strongly curved data, use more points or a higher-order method. Extrapolated values beyond the points are much less reliable.

Common mistakes

Keep in mind: Interpolation assumes smooth change between the points. For official tables, use the method the table specifies.

Frequently asked questions

What is the linear interpolation formula?

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

What is the difference between interpolation and extrapolation?

Interpolation estimates inside the known range; extrapolation goes beyond it.

How accurate is linear interpolation?

Exact for straight lines; for curves the error grows with curvature and interval width.

Sources: NIST Digital Library of Mathematical Functions (DLMF), §3.3(ii) Linear Interpolation

Checked 9 Nov 2026. NIST Digital Library of Mathematical Functions, §3.3(ii) Linear Interpolation, eq. 3.3.14 (f(x₀ + th) = (1 − t)f₀ + t·f₁ + R, 0 < t < 1) and the error bound in eqs. 3.3.13 and 3.3.15 (c₁ = 1/8).

🧮 All math & statistics tools →🌍 Calculators by country →