Linear Interpolation Calculator

Estimate a value between supplied points using piecewise linear interpolation, with extrapolation only when selected.

On-device No sign-up Free to use

Interpolate value controls

Showing an example. Edit to see your own.

?

For the two-point form. Fill in x1, y1, x2 and y2 together and the list below is not read.

?

The value paired with x1.

?

The second x. It must differ from x1.

?

The value paired with x2.

?

One x,y pair per line with a unique x. Up to 1,000 points; the tool orders them by x itself.

?

When off, a query outside the known x range stops with an explanation instead of extending a segment.

Processed in your browser. Your inputs stay on this device.

Result

Showing an example.

Halfway between the known points (0, 0) and (10, 20), estimate y at x = 5.

At x = 5, y = 10.

https://usefreetools.net/interpolation-calculator · 20 November 2026

Was this helpful?

How to use Linear Interpolation Calculator

  1. 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.
  2. 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.
  3. Enter the query x. Leave extrapolation off unless you deliberately want to extend the nearest end segment beyond the observed range.
  4. 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.

You add
First known x (x1): (blank) First known y (y1): (blank) Second known x (x2): (blank) Second known y (y2): (blank) Known points (x,y one per line): 0,0 10,20 Value to interpolate (x): 5 Allow extrapolation outside the known range: false
You get
At x = 5, y = 10.

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.

Page updated · Project managed by Tony Hines · Report a problem with Linear Interpolation Calculator