CCalclabhub

Algebra

Interpolation as a weighted blend

The same result written as a weighted average of the two known values.

The Formula

y = y1 x (1 - t) + y2 x t, where t = (x - x1) / (x2 - x1)

The same result written as a weighted average of the two known values.

SymbolMeaning
tFraction of the way
yInterpolated value
y1, y2Known values

What Each Symbol Means

tunitless

Fraction of the way

Zero at the first point, one at the second.

ysame as y1

Interpolated value

The blended result.

y1, y2same as input

Known values

The two values being blended.

See It Worked With Real Numbers

A formula on its own does not tell you which number goes where. The how to calculate linear interpolation page applies this equation to a concrete case, shows every intermediate step, and names the mistakes that produce a wrong answer even when the algebra is right.

Where This Formula Appears

This equation is the working core of How To Calculate Linear Interpolation, filed under Math. Every number the guide produces comes from substituting into this one line.