Bilinear Interpolation Calculator

Estimate a value inside a rectangle from the known values at its four corners.

Result
—

How to calculate

Interpolate in the x direction along the two horizontal sides. Interpolate between those results in the y direction.

Worked example

Use First x coordinate 0 · Second x coordinate 2 · First y coordinate 0 · Second y coordinate 4 · Value at first x, first y 1 · Value at second x, first y 5 · Value at first x, second y 9 · Value at second x, second y 21 · Target x 1 · Target y 2. The result is 9.

Input and result notes

Use distinct x coordinates and distinct y coordinates. A target outside the rectangle gives an extrapolated value.

Omni on bilinear interpolation

Related calculators