Interpolation Calculator

Perform linear interpolation or extrapolation from data points. Performs linear interpolation between known data points to estimate unknown values, with…

Performs linear interpolation between known data points to estimate unknown values, with automatic detection and warning for extrapolation beyond the data range.

What Is Interpolation?

Interpolation estimates unknown values between known data points by assuming a smooth relationship between them. Linear interpolation — the simplest form — draws a straight line between adjacent known points and reads off the intermediate value. It is widely used in engineering lookup tables, calibration curves, and data analysis.

When the target x lies between two known points (x₁, y₁) and (x₂, y₂), linear interpolation computes y by proportional weighting: y = y₁ + (x − x₁)×(y₂ − y₁)/(x₂ − x₁). This assumes a linear relationship within each segment.

Extrapolation extends the estimate beyond the data range. While the same formula can be applied, accuracy degrades rapidly because the true relationship outside the observed range is unknown. Results should always be flagged and treated with caution.

Formula: y = y₁ + (x − x₁) × (y₂ − y₁) / (x₂ − x₁) where (x₁, y₁) and (x₂, y₂) are the bracketing data points and x₁ ≤ x ≤ x₂ for interpolation

Example Calculation

Known points: (10, 50) and (20, 100). Find y at x = 15. y = 50 + (15 − 10) × (100 − 50)/(20 − 10) = 50 + 5 × 5 = 75. The result is exact because the relationship is linear. For x = 25 (extrapolation): y = 50 + 15 × 5 = 125.

When to Use This Calculator

Common Mistakes to Avoid

How to Interpret Results

Related Standards & References

Frequently Asked Questions

When should I use interpolation vs. regression?

Use interpolation when your data points are exact (e.g., from a calibration table or known physical law) and you need values between them. Use regression when your data contains noise or measurement error and you want to find the best-fit trend. Interpolation passes through every data point; regression may not.

How reliable is extrapolation?

Extrapolation is inherently risky because you are assuming the observed trend continues beyond the data range. For short extrapolations (within ~10% of the range), linear extension may be reasonable. For larger extrapolations, the error grows rapidly and the result should be validated against domain knowledge or additional data.