How to use Linear Interpolation Calculator
- For two points, fill in x1, y1, x2 and y2 together. To use Known points instead, leave all four of those controls blank; a partial set is refused.
- In a point list, enter one x,y pair per line, with at least two distinct x values. The tool sorts the points by x.
- Enter the query x. Leave extrapolation off unless you deliberately want to extend the nearest end segment beyond the observed range.
- Calculate and inspect the named segment and substituted formula. Download interpolation-plot.svg if useful; the picture does not validate the assumed relationship.
Example: Linear Interpolation Calculator
Halfway between the known points (0, 0) and (10, 20), estimate y at x = 5.
Options
- Bracketing points
- Supply distinct x values. The page sorts them and uses the adjacent points around the query for a piecewise straight-line estimate.
- Extrapolation
- Enable this only when you intend to extend the nearest end segment outside the entered x range.
Supported inputs and limits
- Use 2 to 1,000 points with unique x values, or the four two-point controls.
- Filled two-point controls replace the list.
- Coordinates and query values have magnitude at most 10¹⁵, with up to 200 digits and exponents bounded by ±1,000.
- Working arithmetic uses 40-digit decimal precision and display rounds to 12 decimal places, retaining tiny nonzero values in scientific notation.
- The estimate is piecewise linear, not a fitted polynomial, spline or uncertainty model.
More details
Outside-range queries are refused unless extrapolation is enabled.
The graph uses rounded coordinates and does not establish that interpolation or extrapolation is appropriate.
Where your input is processed
This tool does not upload your inputs. See the limits for anything saved on your device.
A segment between measurements is still an assumption
The output names the points used, so you can check whether that segment fits the task. Curved relationships and abrupt changes can make a straight-line estimate poor. Extrapolation extends the same assumption beyond the observations without adding evidence or uncertainty bounds.
Questions about Linear Interpolation Calculator
Does the input order matter?
The tool sorts points by x. Duplicate x values are refused because they do not define one y value at that location.
What happens at an entered point?
The result uses that point’s supplied y value.
Is extrapolation as reliable as interpolation?
It extends the nearest end segment beyond the observed range. That linear assumption can be poor, so it requires a separate choice.