Polynomial Regression Calculator (Cubic, Quartic Curve Fitting)
Fit a polynomial of degree 1–6 to data — linear, quadratic, cubic, quartic — with coefficients, R², adjusted R² and predictions.
Fit a polynomial of degree 1–6 to data — linear, quadratic, cubic, quartic — with coefficients, R², adjusted R² and predictions.
Results
Enter your details and click Calculate to see your results.
About This Calculator
Least squares with columns 1, x, x², …, xᵈ via the normal equations.
Example
Example: cubic fit → y = 1.13889x^3 − 1.00238x^2 + 1.52063x + 0.861905.
Assumptions
Needs more distinct x values than the degree. High degrees overfit and swing wildly outside the data.
Frequently Asked Questions
Which degree should I choose?
The lowest that fits well — check adjusted R² and whether the curve makes physical sense.
Related Calculators
About the Author

Imran Hossain
Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile