Key Points
The linear interpolation formula is , estimating at an between two known points.
The fraction is the slope of the line joining the two points, so the formula walks along that line.
The method assumes the quantity changes at a steady rate between the points, which is an approximation rather than an exact result.
Reading at an outside the two known points is extrapolation, not interpolation, and its error grows with distance.
Interpolating at the midpoint gives exactly the average of the two values, which is a quick check on any implementation.
What Is the Linear Interpolation Formula?
The linear interpolation formula estimates a value lying between two known data points and :
It assumes the straight line joining the two points is a reasonable stand-in for whatever happens between them.
Why the Formula Is a Slope Walk
Read the formula from left to right and it describes a journey. Start at the known height , then add the extra height gained by moving sideways from to .
The height gained per unit of sideways movement is the slope, . Multiplying it by the sideways distance gives the rise over that stretch.
That is why the formula has the shape it does: a starting value plus a rate times a distance. It is the same structure as any straight-line equation, written from a point you already know.
Variable Key
Symbol | Meaning | Unit or type | Notes |
|---|---|---|---|
the lower known point | data pair | the starting value | |
the upper known point | data pair | sets the slope | |
where you want an estimate | between and | outside means extrapolation | |
the slope | rate | height gained per unit across |
Examples of the Linear Interpolation Formula
Example 1
Given and , estimate at .
Final answer: 33
Example 2
Given the same points, estimate at by averaging the two values.
Averaging gives , which is at least in the right region.
But 35 is the value at the midpoint , not at . The target sits four tenths of the way along the interval rather than halfway, so the estimate must be lower than the average.
Weighting by position instead of averaging:
Final answer: 33. Averaging is only correct when the target is exactly midway, which is the check in the Key Points.
Example 3
A table gives and . Estimate by interpolation.
Final answer: about 4.444, against a true value of about 4.472.
The estimate is low by 0.028 because the square-root curve bends, and interpolation assumed a straight line. That gap is the method's error, not an arithmetic slip.
Example 4
Estimate at for the points in Example 1, and check the midpoint property.
Final answer: 35, which equals exactly, confirming the midpoint check.
Example 5
Given and , estimate at and comment.
Final answer: 65, but this is extrapolation rather than interpolation, since 30 lies outside both known points.
The arithmetic is identical and the reliability is not. Nothing in the data supports the straight line continuing past .
Interpolation and Its Neighbours
Method | Where it estimates | Assumption |
|---|---|---|
Linear interpolation | between two known points | steady rate between them |
Extrapolation | outside the known points | the trend continues |
Averaging | the midpoint only | target is exactly halfway |
Higher-order interpolation | between several points | a curve fits the points |
The fourth row is what you reach for when linear interpolation is visibly too crude, as with the square-root example. Fitting a curve through three or more points reduces the error at the cost of more arithmetic.
Where Do Students Trip Up on Linear Interpolation?
Mistake 1: Averaging instead of weighting by position
Where it slips in: The target lies between two values, and averaging is the familiar way to land between two numbers.
Don't do this: for any in the interval.
The correct way: Weight by how far along the interval sits. Averaging is the special case where that fraction is exactly one half.
Students who first work out what fraction of the way along the target sits, as a decimal, before touching the values get this right consistently. That fraction is the whole of the interpolation, and the rest is multiplication.
Mistake 2: Extrapolating without saying so
Where it slips in: The formula accepts any and returns a number without complaint.
Don't do this: Report an estimate at from data spanning 10 to 20 as though it were interpolated.
The correct way: Check that lies between and . If it does not, the result is an extrapolation and should be labelled as one.
Mistake 3: Subtracting the coordinates in inconsistent order
Where it slips in: The formula contains three subtractions, and reversing one flips a sign.
Don't do this: Use in the numerator but in the denominator.
The correct way: Keep point 1 first in every subtraction. A sign error makes the estimate fall outside the two known values, which is an impossible result for an interpolation.
Bottom Line
The linear interpolation formula is .
It is a starting value plus a slope times a sideways distance, which is why it reads as a walk along a line.
The method assumes a steady rate between the points, so a curving relationship leaves a predictable error.
An outside the known points makes the result an extrapolation, which should always be labelled.
To work through graphs and rates with a teacher, explore an algebra tutor or math classes online.
Where to Go From Here
Given and , estimate at and confirm it equals the average of the two values. Then estimate at and check your answer lies between 7 and 25.
Want a live Bhanzu trainer to walk through more graph problems? Book a free demo class.
Read More
Was this article helpful?
Your feedback helps us write better content