Bilinear Interpolation Calculator
Enter four corner values of a rectangular grid cell and a query point (x, y) to calculate the bilinearly interpolated value.
Use the Bilinear Interpolation Calculator
Grid Cell Definition
X-Axis Range
Y-Axis Range
Corner Values
Query Point
Result
Step-by-Step Breakdown
Note: query point is outside the grid cell — this is extrapolation, not interpolation.
Grid Cell Diagram
Bilinear Interpolation Formula
t = (x − x1) / (x2 − x1)
u = (y − y1) / (y2 − y1)
R1 = (1−t) × Q11 + t × Q21
R2 = (1−t) × Q12 + t × Q22
P = (1−u) × R1 + u × R2
Summary
Bilinear interpolation estimates an unknown value at an interior point (x, y) of a rectangular grid cell by performing linear interpolation first along one axis and then along the other. It requires the four corner coordinates and their known values: Q11 (x1,y1), Q12 (x1,y2), Q21 (x2,y1), and Q22 (x2,y2). This tool computes the result entirely in your browser with a step-by-step breakdown.
How it works
- Enter the x-axis range: the left edge x1 and right edge x2 of the grid cell.
- Enter the y-axis range: the bottom edge y1 and top edge y2 of the grid cell.
- Enter the four corner values: Q11, Q12, Q21, Q22 at (x1,y1), (x1,y2), (x2,y1), (x2,y2).
- Enter the query point coordinates (x, y) where you want to estimate the value.
- Click Calculate — the tool interpolates first along x, then along y, and shows all steps.
Use cases
- Estimate temperature or pressure at an interior grid point in meteorology.
- Resample image pixel colors during texture mapping or image scaling.
- Interpolate elevation values in a digital terrain model.
- Find intermediate stress or strain values in a finite-element grid.
- Estimate a lookup-table output between four neighboring entries.
- Perform 2D function approximation in numerical analysis coursework.
- Derive intermediate values from tabulated engineering data with two parameters.
- Reconstruct missing sensor readings on a 2D measurement grid.