Bilinear Interpolation / Double Interpolation
For use by professionals. No warranty; confirm results and design decisions with a licensed engineer. Site Terms
Calculator help
Hi! Ask me anything about using this calculator: what an input means, where to find a value, or why you got a result.
An AI assistant (Claude) that reads this page. It can make mistakes: check important numbers, and confirm design decisions with a licensed engineer.
Click here to provide feedback on this calculator
Your current inputs are sent with it, so we can see what you saw.
Step-by-step guide: How to Use the Bilinear Interpolation Calculator
How to use it
Review the methodology below to make sure it aligns with your project's requirements, then:
The boxes are laid out like the printed table you are reading from, with y1 above y2. Enter the rows in the order your table lists them, whether its y values run up or down. Shaded boxes are the table's own headings; the outlined ones are the point you want.
- Enter x1 and x2, the table's x values on either side of your point, across the top.
- Enter y1 and y2, the table's y values on either side of your point, down the side.
- Enter the four table values where those rows and columns meet: P11 at (x1,y1), P21 at (x2,y1), P12 at (x1,y2) and P22 at (x2,y2).
- Enter the x and y you want, in the outlined boxes.
- The interpolated value appears in the center of the grid and updates as you type. The grey figures around it are the four straight-line steps on the way: along each row at your x, and down each column at your y.
To see it filled in, choose "Show an example". To save typing, copy a block from a spreadsheet and paste it into any box: 2 × 2 table values, 3 × 3 with the x and y headings, or 4 × 4 laid out like the grid.
For interpolating between two points on a line, use the linear interpolation calculator.
Methodology, equations and example
This calculator returns an interpolated value using bilinear interpolation. "Bilinear" refers to a technique that uses the values at the four nearest data points to estimate the value at a point within the grid. The four points form a rectangle, and the interpolation is a weighted average of their values based on the distance of each from the point of interest. The technique is also called double interpolation, or bilinear filtering in some contexts.
The weights come from the distances between the point of interest and each of the four surrounding points: the closer a point is, the more it contributes. Each known value is multiplied by its weight, and the results are summed.
The method of bilinear, or double, interpolation:
Step 1: linear interpolation at point (x,y1): R(x,y1) = P11(x2−x)/(x2−x1) + P21(x−x1)/(x2−x1)
Step 2: linear interpolation at point (x,y2): R(x,y2) = P12(x2−x)/(x2−x1) + P22(x−x1)/(x2−x1)
Step 3: linear interpolation at point (x,y) using the results of Steps 1 and 2: R(x,y) = R(x,y1)(y2−y)/(y2−y1) + R(x,y2)(y−y1)/(y2−y1)
Step 4: substituting R(x,y1) and R(x,y2) gives the interpolated value at (x,y) as a single equation: R(x,y) = P11(x2−x)(y2−y)/((x2−x1)(y2−y1)) + P21(x−x1)(y2−y)/((x2−x1)(y2−y1)) + P12(x2−x)(y−y1)/((x2−x1)(y2−y1)) + P22(x−x1)(y−y1)/((x2−x1)(y2−y1))
The graph with the results above shows the four points and the point being interpolated.
Example
Calculate the total cooling capacity of a 5-ton Bryant® package unit from its performance data table, at design conditions of 79 °F condenser entering air and 65 °F evaporator entering wet bulb.
The example is solved two ways: first by three linear interpolations (Steps 1 to 3), then with the single bilinear equation (Step 4). From the table and the design conditions:
- x1 = 75 °F, x2 = 85 °F, x = 79 °F
- y1 = 67 °F, y2 = 63 °F, y = 65 °F
- P11 = 59.00 MBtuh, P21 = 56.34 MBtuh (the 67 °F row), P12 = 55.04 MBtuh, P22 = 52.59 MBtuh (the 63 °F row)
The values are taken in the table's own order: it lists 67 °F above 63 °F, so 67 °F is y1. The equations give the same answer with the rows in either order.
Solution 1: three linear interpolations
- Step 1, at (x,y1): R = 59.00 (85−79)/(85−75) + 56.34 (79−75)/(85−75) = 57.936 MBtuh
- Step 2, at (x,y2): R = 55.04 (85−79)/(85−75) + 52.59 (79−75)/(85−75) = 54.06 MBtuh
- Step 3, at (x,y): R = 57.936 (63−65)/(63−67) + 54.06 (65−67)/(63−67) = 55.998 MBtuh
Solution 2: the single equation
R(x,y) = 59.00(85−79)(63−65)/((85−75)(63−67)) + 56.34(79−75)(63−65)/((85−75)(63−67)) + 55.04(85−79)(65−67)/((85−75)(63−67)) + 52.59(79−75)(65−67)/((85−75)(63−67)) = 55.998 MBtuh
Solution 3: the calculator. Choose "Show an example" above, or enter the values in the grid as they appear in the performance table; the center shows 55.998.