Interactive math tool

Lagrange interpolation calculator

Find the polynomial that passes through your data points and visualize the result.

Learn the formula and see a worked example

Data points

At least 2 points

Enter the X and Y coordinates for each point.

X valueY value

Your result

The interpolating polynomial and its curve.

POLYNOMIAL
f(x) = —

Graph

Polynomial & data points

Your graph will appear here

Enter your points, then calculate.

What is Lagrange interpolation?

Lagrange interpolation constructs a polynomial that passes through a set of points with distinct X coordinates. Enter your known values above to calculate the polynomial and plot its curve. For example, the points (1, 2), (2, 5), and (3, 10) lie on f(x) = x² + 1.

Read the step-by-step Lagrange interpolation guide