Bilinear Interpolation Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter the rectangle's corners x₁, x₂, y₁, y₂, the four known values at the corners and the point where you want the estimate.
Result
Estimated value at (x, y)
Interpolated along y = y₁
- Interpolated along y = y₂
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- x₁: enter a number.
- x₂: enter a number.
- y₁: enter a number.
- y₂: enter a number.
- Value at (x₁, y₁): enter a number.
- Value at (x₂, y₁): enter a number.
- Value at (x₁, y₂): enter a number.
- Value at (x₂, y₂): enter a number.
- Point x: enter a number.
- Point y: enter a number.
- Read the result: Estimated value at (x, y); the panel also shows Interpolated along y = y₁ and Interpolated along y = y₂.
How this calculator works
First interpolate linearly along x on both horizontal edges: R₁ = Q₁₁ + (x − x₁)/(x₂ − x₁) × (Q₂₁ − Q₁₁) and R₂ = Q₁₂ + (x − x₁)/(x₂ − x₁) × (Q₂₂ − Q₁₂).
Then interpolate between them along y: f(x, y) = R₁ + (y − y₁)/(y₂ − y₁) × (R₂ − R₁). The order does not matter: starting with y gives the same result. A point outside the rectangle gives an extrapolation, which is less reliable.
The formula
| Symbol | Meaning |
|---|---|
| x₁ | |
| x₂ | |
| y₁ | |
| y₂ | |
| Value at (x₁, y₁) | |
| Value at (x₂, y₁) | |
| Value at (x₁, y₂) | |
| Value at (x₂, y₂) | |
| Point x | |
| Point y | |
| Interpolated along y = y₁ | |
| Interpolated along y = y₂ | |
| Estimated value at (x, y) |
Worked example
| x₁ | 0 |
|---|---|
| x₂ | 10 |
| y₁ | 0 |
| y₂ | 10 |
| Value at (x₁, y₁) | 10 |
| Value at (x₂, y₁) | 20 |
| Value at (x₁, y₂) | 30 |
| Value at (x₂, y₂) | 40 |
| Point x | 4 |
| Point y | 7 |
| Interpolated along y = y₁ | 14 |
|---|---|
| Interpolated along y = y₂ | 34 |
Estimated value at (x, y) 28
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What does bilinear interpolation give at (4, 7) for corners 10, 20, 30 and 40?
14 along the bottom edge, 34 along the top edge, and 28 at the point.
Where is bilinear interpolation used?
Reading values between rows and columns of a two-way table (steam tables, wind charts), and resizing images.