Interpolation Calculator
An interpolation calculator estimates the value of a function at an unsampled point from known values nearby. This one performs linear interpolation only: it draws a straight line between two coordinate points and reads the value off that line, using the ratio of differences between the points. It does not perform polynomial, Lagrange, Newton or spline interpolation, which curved data needs. Science students, engineers, and financial analysts use it to estimate intermediate values from lookup tables, experiment data, or financial curves.
Estimate y values between known data points using the standard linear interpolation formula.
Quick Answer
Estimate a value between two known points. Enter both (x, y) pairs and a target x to get the linearly interpolated y, with the working shown and extrapolation flagged when the target falls outside the pair.
Point 1 (Known)
Point 2 (Known)
Target Point
Estimated y value
35
At x = 25
Step-by-step Calculation
Interpolationy = y₁ + (x - x₁) × (y₂ - y₁) / (x₂ - x₁)
Step 1, the slope between the two known points: m = (y₂ - y₁) / (x₂ - x₁) = 1
Step 2, apply y = y₁ + m × (x - x₁):
y = 20 + (25 - 10) × (40 - 20) / (30 - 10)
y = 20 + (15) × (20) / (20)
y = 20 + (15) × (1)
y = 35
How it works
What is interpolation?
Interpolation is a method of estimating new data points within the range of a discrete set of known data points. In engineering, science, and business, you often have a table of data values (like temperature vs. pressure) but need to know the value at a point that isn't explicitly listed in the table.
The Linear Interpolation Formula
Linear interpolation is the simplest and most common form. It assumes that the line connecting two known points is straight.
y = y1 + (x − x1) × (y2 − y1) / (x2 − x1)
Where:
• (x1, y1) is your first known data point
• (x2, y2) is your second known data point
• x is the target value you want to evaluate
• y is the estimated result
Interpolation vs. Extrapolation
Interpolation occurs when your target x value falls between x1 and x2. This is generally safe and reliable.
Extrapolation occurs when your target x value falls outside the range of x1 and x2. Extrapolation is riskier because you are assuming that the linear trend continues indefinitely past your known data points, which is rarely true in the real world.
Worked Example
Suppose you know the temperature at 11:00 AM (x1=11) is 60°F (y1=60), and the temperature at 1:00 PM (x2=13) is 70°F (y2=70). What was the estimated temperature at 11:30 AM (x=11.5)?
- y = 60 + (11.5 − 11) × (70 − 60) / (13 − 11)
- y = 60 + (0.5) × (10) / (2)
- y = 60 + (0.5) × 5
- y = 60 + 2.5 = 62.5°F
Disclaimer
For educational purposes. Linear interpolation assumes a straight-line relationship between points. Verify results for critical applications.
Related calculators
Related Calculators
More tools from Education



