Bilinear Interpolation Calculator
Interpolate a value inside a rectangular grid from four known corner values.
About bilinear interpolation
Bilinear interpolation examples
Examples using rectangular grids and internally consistent corner values.
| Grid and target | Result | Explanation |
|---|---|---|
| Unit square; corners 0, 10, 20, 30; target (0.5, 0.5) | 15 | At the center, all four corners have equal weight. |
| Unit square; corners 0, 10, 20, 30; target (0, 0) | 0 | A corner target reproduces that corner value exactly. |
| Rectangle 0 to 2 and 0 to 4; corners 2, 6, 10, 14; target (1, 2) | 8 | The midpoint is the average of the four corner values. |
| Unit square; corners 5, 5, 5, 5; target (0.3, 0.8) | 5 | A constant surface stays constant everywhere. |
How to use the bilinear interpolation calculator
- Enter the left and right x coordinates and the bottom and top y coordinates of the rectangle.
- Enter the known function value at each of the four labeled corners.
- Enter the x and y coordinates of the target point using the same coordinate system.
- Select Calculate Interpolation to evaluate the weighted four-corner estimate.
Bilinear interpolation FAQ
Is bilinear interpolation the same as linear interpolation?
It applies linear interpolation in two coordinate directions instead of one. The resulting surface can contain a cross term even though each one-dimensional slice is linear.
Must the target lie inside the rectangle?
The formula also returns an extrapolated value outside the rectangle. Such results may be less reliable because they extend trends beyond the four known samples.
Why can the rectangle not have zero width or height?
The method divides by both coordinate spans to calculate normalized positions. A zero span makes that fraction undefined and does not describe a two-dimensional cell.
Does the order of interpolation matter?
No. Interpolating horizontally and then vertically gives the same result as interpolating vertically and then horizontally, apart from tiny floating-point rounding differences.
When should I use bicubic interpolation instead?
Bicubic interpolation can produce smoother derivatives and better approximate curved data when more neighboring samples are available. Bilinear interpolation remains faster and is often sufficient for dense grids.