Curve Fitting Calculator
Fit a polynomial, exponential, logarithmic or power curve to your x and y data and get the equation, R squared, the residuals, a chart and a prediction for any x.
- Free
- No sign-up
- Works on any device
About Curve Fitting Calculator
Paste your x and y pairs, pick the curve type and the calculator returns the best-fit equation, the coefficient of determination R squared, the residual of every point and a chart of the data against the curve. Polynomials from degree 1 to 6 are fitted by least squares on centred data for numerical stability; exponential y = a e^(bx), logarithmic y = a + b ln x and power y = a x^b use the usual straight-line fit of transformed data. A table compares R squared of the other curve types so you can see which shape suits the data best.
How to use Curve Fitting Calculator
- Enter one point per line as x then y, separated by a comma or space, and choose a curve type (and the degree for polynomials).
- Optionally type an x value to predict the matching y.
- Read the equation, R squared and the residuals, and compare the chart and the table of alternative curve types.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
- Free to embed on your own website, with a ready-made code to copy.
Also known as
Frequently asked questions
What does R squared tell me about the fit?
R squared is the share of the variation in y that the curve explains, from 0 to 1. A value of 1 means the curve passes through every point. A high value does not prove the model is right, especially with few points.
Why are exponential and power fits done on logarithms?
Taking the logarithm turns y = a e^(bx) and y = a x^b into straight lines, which can be fitted exactly by least squares. This minimises errors on the log scale, so the result can differ slightly from a direct nonlinear fit.
Can I use the equation to predict outside my data?
You can, but extrapolation is risky, particularly for high-degree polynomials that swing wildly beyond the data. Prefer predictions inside the range of your x values and the simplest curve that fits well.
Is Curve Fitting Calculator free?
Yes. Curve Fitting Calculator on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.
Can I put Curve Fitting Calculator on my own website?
Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.