Interpolation vs Extrapolation: Differences, Examples and Risks

Interpolation estimates a value inside the range of your known data. Extrapolation estimates a value outside it. Both can use exactly the same formula. The difference is where your x sits, and that changes how far you can trust the answer.

Example: you measure a plant at 10 cm on day 2 and 16 cm on day 6. Estimating its height on day 4 is interpolation, and the answer is 13 cm. Estimating day 30 is extrapolation: the straight line says 52 cm, which assumes it keeps growing at the same rate for another three and a half weeks.

Interpolation vs extrapolation at a glance

InterpolationExtrapolation
Where x isBetween known pointsBefore the first or after the last known point
What you assumeThe pattern holds between the pointsThe pattern carries on past the data
Typical errorSmall, held in check by nearby pointsGrows the further out you go
Common usesReading tables, filling gaps, resizing imagesForecasts, trends, projections
Linear formulay = y1 + (x − x1)(y2 − y1) / (x2 − x1)The same formula
Linear answer stays between y1 and y2YesNo

Same formula, two uses

Take two known points: sales of 40 (thousand) in 2019 and 52 in 2021. The slope is (52 − 40) / (2021 − 2019) = 6 per year.

  • Interpolate 2020: 40 + 1 × 6 = 46
  • Extrapolate 2024: 40 + 5 × 6 = 70

The arithmetic is identical. The 2020 estimate is pinned by real data on both sides. The 2024 estimate depends entirely on the trend carrying on for three more years, through whatever happens to prices, competition and demand.

Why extrapolation goes wrong faster

Suppose the real relationship is curved, y = x², but you only know two points, (1, 1) and (2, 4). The straight line through them is y = 3x − 2. Here is how far it drifts:

xStraight lineTrue valueError
1.5 (interpolation)2.52.250.25
3792
5132512
102810072

Inside the data the error is small, because the curve cannot wander far between two nearby points. Outside, nothing ties the line to the real curve, and the error keeps growing with distance. That is the core reason extrapolation needs more caution.

When to use interpolation

When extrapolation is reasonable

  • Short-range forecasts, when you have a solid reason to expect the trend to hold.
  • Projecting a measurement a little past the last test point, for example the next step in a lab series.
  • Finding where a trend line crosses an axis, such as a starting value or a break-even point.

To extrapolate more safely:

  • Stay close to the data. A step 10% beyond your range is far safer than one 200% beyond it.
  • Check the shape. If the data curves, a straight line will drift, so fit a curve that matches the pattern.
  • Look for limits. Growth slows, tanks fill and prices hit floors. Ask what would break the trend.
  • Give a range. When the result matters, quote a low and high estimate rather than one number.

Our linear extrapolation guide has worked examples, including one where a straight line fails badly.

Tools for both

New to the method? Start with how to interpolate, or see every formula on the interpolation formula page.

FAQs

Is extrapolation less accurate than interpolation?

Usually, yes. Interpolation is checked by known data on both sides, while extrapolation relies on the pattern continuing where you have no data at all. The further past your data you go, the larger the likely error.

Can you use the same formula for interpolation and extrapolation?

Yes. The linear formula, and polynomial or spline formulas, work for any x. What changes is not the maths but how much you should trust the result.

What is an example of interpolation in real life?

Reading a value between two rows of a steam table, estimating a missing temperature reading from the readings before and after it, or a photo editor creating new pixels when it enlarges an image.

What is an example of extrapolation in real life?

Projecting next year’s sales from the last few years, estimating a child’s adult height from a growth chart, or a weather model estimating conditions beyond the last measured point.

Is regression interpolation or extrapolation?

Neither on its own. Regression fits a trend line to data. Using that line inside the range of your data is interpolation, and using it outside the range is extrapolation.

Soren Vance
Soren Vance

Soren Vance is the Director of Quantitative Analysis & Algorithms at Interpolation Calculator, where he leads the design and optimization of the company’s core interpolation engines and data processing frameworks.

With a master’s in Computational Mathematics and over 8 years of experience in analytical modeling and numerical computing, Soren oversees the development of high‑performance methods — from spline interpolation and polynomial regressions to multidimensional estimators for real‑world datasets.

Known for his clarity of thought, Soren builds systems that balance mathematical rigor with computational efficiency. He collaborates closely with product, engineering, and UX teams to ensure users get reliable, transparent, and fast results. Outside of work, he contributes to open‑source math libraries and teaches data science workshops at local universities.

Articles: 21

Interpolation Calculator is a mathematical method used to estimate an unknown value between known data points.

Privacy

Disclaimer

Terms

GDPR

Affiliate

Refund

Company

About Us

Contact Us