Curve Fitting Tool

Enter your data as (x, y) pairs, choose the model (Linear, Log, Power, Exponential), or enter your own function, to find the curve that best fits the data.

How to Use It

What's Σd²?

The value Σd² (Sum of Squares) represents the total "error" of your line.

The vertical lines on the graph show the residual (the distance) between each point and the line. By squaring these distances and adding them up, we get a single number that tells us how well the line fits the data. The lower the number, the better the fit!

Note: the Least Squares Calculator can calculate the best linear (straight line) fit using Least Squares Regression.