Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Bilinear Interpolation Calculator

x₁: enter a number. Prefilled example: 0.

x₂: enter a number. Prefilled example: 10.

y₁: enter a number. Prefilled example: 0.

y₂: enter a number. Prefilled example: 10.

Value at (x₁, y₁): enter a number. Prefilled example: 10.

Value at (x₂, y₁): enter a number. Prefilled example: 20.

Value at (x₁, y₂): enter a number. Prefilled example: 30.

Value at (x₂, y₂): enter a number. Prefilled example: 40.

Point x: enter a number. Prefilled example: 4.

Point y: enter a number. Prefilled example: 7.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. x₁: enter a number.
  2. x₂: enter a number.
  3. y₁: enter a number.
  4. y₂: enter a number.
  5. Value at (x₁, y₁): enter a number.
  6. Value at (x₂, y₁): enter a number.
  7. Value at (x₁, y₂): enter a number.
  8. Value at (x₂, y₂): enter a number.
  9. Point x: enter a number.
  10. Point y: enter a number.
  11. 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

  1. R1=q11+x−x1x2−x1×(q21−q11)
  2. R2=q12+x−x1x2−x1×(q22−q12)
  3. F=R1+y−y1y2−y1×(R2−R1)
Symbols used in the formula
SymbolMeaning
x1x₁
x2x₂
y1y₁
y2y₂
q11Value at (x₁, y₁)
q21Value at (x₂, y₁)
q12Value at (x₁, y₂)
q22Value at (x₂, y₂)
xPoint x
yPoint y
R1Interpolated along y = y₁
R2Interpolated along y = y₂
FEstimated 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 x4
Point y7
Interpolated along y = y₁14
Interpolated along y = y₂34
  1. R1=10+4−010−0×(20−10)=14
  2. R2=30+4−010−0×(40−30)=34
  3. F=14+7−010−0×(34−14)=28

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.

Related calculators