Calculateus

Linear Interpolation Calculator

Estimate an unknown value between two known data points using linear interpolation.

Result

Interpolated y
40
Pointxy
Known 100
Target440
Known 210100

About the Interpolation Calculator

When you have two known data points but need to estimate a value somewhere between them, linear interpolation provides a straightforward, widely used method. Our Linear Interpolation Calculator finds that estimated value instantly.

How It Works

The calculator finds the linear relationship (a straight line) between your two known points, then evaluates that line at your target x-value to estimate the corresponding y-value - assuming the relationship between the two known points is approximately linear.

y = y1 + ((y2 − y1) × (x − x1)) ÷ (x2 − x1)

Formula & Methodology

This formula finds the slope between the two known points ((y2−y1)/(x2−x1)) and uses it to project forward from one known point to the target x-value, effectively drawing a straight line through the two known points and reading off the y-value at any x-position along that line. It's mathematically the same slope-based reasoning used in the Slope Calculator, just rearranged to solve for an unknown y directly rather than producing a full line equation.

Step-by-Step: Calculating It By Hand

  1. 1Identify the two known points (x1,y1) and (x2,y2), and the target x-value to interpolate at.
  2. 2Find the difference between y2 and y1, and separately between x2 and x1.
  3. 3Multiply the y-difference by (x minus x1), then divide by the x-difference.
  4. 4Add that result to y1 to find the estimated y-value at the target x.

Examples

Estimating a middle value

Given points (0,0) and (10,100), interpolating at x=4 gives an estimated y-value of 40, following the straight-line relationship between the two known points.

Real-world application

If a table only lists values at every 10 units of x, interpolation estimates the value at any point in between, like x=4, without needing the full underlying dataset.

Advantages

  • Provides a quick, reasonable estimate between two known data points
  • Simple, widely applicable formula used across science, engineering, and finance
  • Fast way to fill in gaps in a lookup table or dataset
  • Works for any two known points and any target x-value

Common Mistakes

  • Using linear interpolation when the actual underlying relationship is significantly non-linear, which introduces real error
  • Extrapolating far beyond the range of the two known points, where linear interpolation becomes much less reliable
  • Mixing up which point is (x1,y1) versus (x2,y2)
  • Treating an interpolated estimate as an exact measured value rather than an approximation

Edge Cases to Watch For

  • This assumes the relationship between the two known points is approximately linear - if the true underlying relationship curves significantly, linear interpolation introduces real error.
  • Extrapolating to an x-value outside the range of the two known points is far less reliable than interpolating within that range.
  • If x1 equals x2, the formula divides by zero and produces no valid result, since two points with identical x-values can't define a slope.
  • For more accuracy with non-linear data, more advanced interpolation methods (polynomial, spline) use additional known points rather than just two.

Common Use Cases

  • Estimating values between known data points in a table or dataset
  • Engineering and scientific calculations involving lookup tables
  • Finance and statistics applications requiring intermediate value estimates
  • Filling gaps in incomplete datasets with reasonable estimates
Written & fact-checked by the Calculateus TeamLast updated August 5, 2026How we verify our formulas

Frequently asked questions

What is linear interpolation used for?

It estimates a value between two known data points assuming a straight line connects them - common in engineering tables, graphing, and filling gaps in measured data.

Conclusion

Linear interpolation is a simple, practical tool for estimating between known points - just remember it assumes a straight-line relationship, which works well for closely-spaced points but becomes less reliable the further you stray from the known data.