Skip to content
ToolUlkaa Tool
All tools

Statistics

Statistics CalculatorRandom Number GeneratorStandard Deviation CalculatorZ-Score CalculatorProbability CalculatorPermutation and Combination CalculatorP-Value CalculatorT-Test CalculatorConfidence Interval CalculatorSample Size CalculatorChi-Square CalculatorCorrelation Coefficient CalculatorLinear Regression CalculatorANOVA CalculatorProbability Distribution Calculator

Categories

AcademicTextMathematicsStatisticsMachine LearningAIData ScienceFile
All tools
Statistics

Polynomial Regression Calculator

Paste x, y data to fit a quadratic, cubic or higher degree curve, up to degree 6.

Try:
One pair per line, separated by a comma, tab or space. Two columns copied from Excel work. A text first line is used as the axis names.
Model
Polynomial degree
Confidence level

Polynomial (degree 2) regression

y^=2.0097+20.03x−5.0082x2\hat{y}=2.0097 + 20.03x - 5.0082x^{2}y^​=2.0097+20.03x−5.0082x2

R² = 0.9997: the polynomial (degree 2) model explains 100% of the variation in y.

R squared0.99972
Adjusted R squared0.99963
Points9

At seconds = 1.25, the predicted metres is 19.221. Intervals are given for the linear model only.

Compare models by R squared

ModelEquationR²Adjusted R²
Lineary^=13.696−0.0033333x\hat{y}=13.696 - 0.0033333xy^​=13.696−0.0033333x3.4509e-7-0.14286
Polynomial (degree 2) (highest)y^=2.0097+20.03x−5.0082x2\hat{y}=2.0097 + 20.03x - 5.0082x^{2}y^​=2.0097+20.03x−5.0082x20.999720.99963
Exponentialy=10.504 e−0.011011xy=10.504\,e^{-0.011011x}y=10.504e−0.011011x-0.21768-0.39164

Logarithmic: Logarithmic regression needs every x to be positive

A higher-degree polynomial always raises R², even when it only follows noise, so look at adjusted R² too. The exponential R² is measured on the original y values.

Residual plot

secondsmetresFittedResidual
02.12.00970.090303
0.510.610.7724-0.17242
117.217.0310.16896
1.520.620.7855-0.18554
222.122.03590.064069
2.520.820.78220.017792
31717.0244-0.024372
3.510.910.76240.13758
41.91.99636-0.096364
  1. Tools
  2. Statistics
  3. Linear Regression Calculator
  4. Polynomial Regression Calculator

About Polynomial Regression Calculator

This polynomial regression calculator fits a curve y = c0 + c1x + c2x² and so on, up to degree 6, by least squares. It opens on the height of a thrown ball over time, which is a parabola. It is free, needs no sign-up and runs in your browser, so nothing you enter is uploaded.

The model is linear in its coefficients, so it is solved exactly from the normal equations. Choose the degree with the picker and the curve, equation and residuals update.

Every extra degree can only raise R², even when it just follows noise. Compare adjusted R², which penalises extra terms, and keep the lowest degree that fits well.

How to use Polynomial Regression Calculator

  1. 1Paste two columns from a spreadsheet or type one x, y pair per line. A text first line is used as the axis names.
  2. 2Choose the model: linear, polynomial, exponential or logarithmic. For a polynomial, pick the degree.
  3. 3Read the equation and the statistics table. For the line, the slope p-value tests whether x helps predict y at all.
  4. 4Type an x value in the prediction box to get the predicted y and, for the linear model, its intervals.
  5. 5Check the residual plot. Residuals should scatter randomly around zero. A curve or a funnel means the model is wrong or the spread changes.
  6. 6Open the comparison table to see which model has the highest R², and look at adjusted R² before trusting a high degree.

Features

  • Least squares line with slope, intercept, r, r², standard error of the estimate and of the slope.
  • t test and p-value for the slope, with confidence intervals for slope and intercept.
  • Prediction interval for one new point and confidence interval for the mean response.
  • Polynomial regression of degree 2 to 6, exponential y = a·e^(bx) and logarithmic y = a + b·ln x.
  • Model comparison table with R² and adjusted R².
  • Equation in KaTeX, scatter plot with fitted curve and prediction band, and PNG download.
  • Residual plot and a residuals table with fitted values.
  • Step by step working for the least squares line, copyable as LaTeX.

Polynomial model

A polynomial of degree k has k + 1 coefficients, found by solving the normal equations.

y = c0 + c1·x + c2·x² + ... + ck·x^k
A·c = b, where A[i][j] = Σ x^(i+j) and b[i] = Σ x^i · y

Worked examples

  • Ball height against time, degree 2 (9 points) → gives y = 2.01 + 20.03x − 5.008x^2

    R² = 0.9997 for the curve against 3.451e-7 for a straight line.

Privacy: how it works

  • Everything is calculated by code running in your browser tab. Your data is not sent to Ulkaa or to any other server, and there is nothing to sign in to.

Tips

  • A high R² does not prove a good model. Look at the residual plot as well.
  • Prefer the lowest degree that fits. Adjusted R² drops when an extra term adds nothing.
  • For the exponential model, R² is measured on the original y, so it can be compared fairly with the line.
  • If the points form a curve that rises and levels off, try the logarithmic model.

Frequently asked questions

Is it really free?

Yes. There is no price, no trial and no credit card. Ulkaa Tool does the work with your own device, so there is no server bill to pass on to you.

Do I need an account?

No. There is no sign-up and no login. Open the page and use it. An Ulkaa account is not needed for anything on this tool.

Does it run in my browser?

Yes. Your data are processed by code running in your browser tab, on your own device.

Is my data uploaded?

No. Your data are never sent to Ulkaa or to anyone else. You can check this yourself by watching the Network tab in your browser developer tools while you use the tool.

What degree should I choose?

Use the lowest degree whose curve follows the trend and whose residuals look random. Compare adjusted R² between degrees.

Why can a high degree be a bad idea?

A high degree can wiggle through every point and still predict badly between or beyond them. That is called overfitting.

How many points do I need?

More than the degree. A degree 6 fit needs at least 7 points, and many more for a trustworthy curve.

More Linear Regression Calculator pages

  • Linear Regression CalculatorPaste x, y data to fit a least squares line and compare it with polynomial, exponential and logarithmic models.
  • Least Squares Regression Line CalculatorPaste x, y data to get the line y = b + mx that minimises the squared errors.
  • Line of Best Fit CalculatorPaste your points to see the best fit line on a scatter plot, with its equation and predictions.
  • Exponential Regression CalculatorPaste x, y data to fit y = a·e^(bx) and see the growth factor per step.

Ulkaa Apps

  • Ulkaa
  • Calendar
  • Task
  • Note
  • Disk
  • Call
  • Contact
  • Mail
  • Finance
  • Health
  • Office
  • Work
  • Workspace
  • Halum
  • Jaal
  • Islam
  • Game
  • Weather
  • Campus
  • News
  • Developer
  • Help
  • Account
About·Privacy·Terms·© 2026 Ulkaa

What is Ulkaa Tool?

Ulkaa Tool is a free collection of fast, privacy-friendly online tools from Ulkaa Network. Calculate your GPA and CGPA, edit rich text, count words and characters, replace text and more — all in your browser.

Every tool runs entirely in your browser — no sign-up, and your data never leaves your device.

Academic

  • GPA Calculator
  • CGPA Calculator
  • Citation Generator
  • Quiz Maker

Text

  • Rich Text Editor
  • Word Counter
  • Character Counter
  • Text Replacement

Ulkaa

  • Ulkaa
  • Ulkaa News
  • Ulkaa Campus
  • Ulkaa Tool
  • Ulkaa Game
  • Ulkaa Weather
  • Ulkaa Islam

Company

  • About Ulkaa
  • Careers
  • Support
  • Help
  • Privacy Policy
  • Terms of Service
  • Disclaimer
  • Sitemap

© 2015-26, Ulkaa. All rights reserved.
Facebook PageLinkedIn CompanyX (Twitter) ProfileInstagram ProfileGitHub Account
Table of values
metres against seconds with the polynomial (degree 2) fit
PointDataPolynomial (degree 2) fit
1(0, 2.1)(-0.16, -1.3232443290043534)
2(0.5, 10.6)(-0.106, -0.16970956017318217)
3(1, 17.2)(-0.05199999999999999, 0.9546172398268202)
4(1.5, 20.6)(0.0020000000000000018, 2.0497360709956536)
5(2, 22.1)(0.05600000000000002, 3.115646933333318)
6(2.5, 20.8)(0.11000000000000001, 4.152349826839814)
7(3, 17)(0.164, 5.1598447515151395)
8(3.5, 10.9)(0.218, 6.138131707359298)
9(4, 1.9)(0.272, 7.087210694372287)
10(0.32600000000000007, 8.007081712554108)
11(0.38, 8.897744761904757)
12(0.43400000000000005, 9.759199842424241)
13(0.488, 10.591446954112554)
14(0.542, 11.394486096969699)
15(0.596, 12.168317270995672)
16(0.6500000000000001, 12.912940476190482)
17(0.7040000000000001, 13.628355712554118)
18(0.7579999999999999, 14.314562980086585)
19(0.812, 14.971562278787887)
20(0.8660000000000002, 15.59935360865802)
21(0.92, 16.19793696969698)
22(0.9739999999999999, 16.76731236190477)
23(1.0280000000000002, 17.3074797852814)
24(1.0820000000000003, 17.818439239826855)
25(1.1360000000000001, 18.300190725541142)
26(1.1900000000000002, 18.75273424242426)
27(1.2440000000000002, 19.176069790476205)
28(1.2980000000000003, 19.570197369696984)
29(1.352, 19.935116980086597)
30(1.4060000000000001, 20.270828621645045)
31(1.4600000000000004, 20.57733229437231)
32(1.5140000000000002, 20.85462799826842)
33(1.5680000000000003, 21.102715733333355)
34(1.622, 21.321595499567117)
35(1.676, 21.511267296969713)
36(1.7300000000000002, 21.67173112554115)
37(1.7840000000000003, 21.802986985281407)
38(1.838, 21.9050348761905)
39(1.8920000000000006, 21.977874798268417)
40(1.9460000000000004, 22.021506751515176)
41(2, 22.035930735930755)
42(2.054, 22.021146751515175)
43(2.1079999999999997, 21.977154798268415)
44(2.162, 21.903954876190497)
45(2.216, 21.801546985281405)
46(2.27, 21.669931125541147)
47(2.3240000000000003, 21.509107296969717)
48(2.378, 21.31907549956712)
49(2.432, 21.09983573333335)
50(2.4859999999999998, 20.85138799826842)
51(2.54, 20.573732294372313)
52(2.5940000000000003, 20.26686862164503)
53(2.648, 19.930796980086598)
54(2.702, 19.565517369696984)
55(2.7560000000000002, 19.171029790476204)
56(2.81, 18.74733424242426)
57(2.864, 18.29443072554114)
58(2.918, 17.812319239826852)
59(2.972, 17.300999785281395)
60(3.0260000000000002, 16.76047236190477)
61(3.0800000000000005, 16.19073696969697)
62(3.1340000000000003, 15.591793608658014)
63(3.188, 14.963642278787882)
64(3.242, 14.306282980086586)
65(3.2960000000000003, 13.619715712554118)
66(3.35, 12.903940476190478)
67(3.404, 12.15895727099567)
68(3.4579999999999997, 11.384766096969706)
69(3.5119999999999996, 10.58136695411256)
70(3.5660000000000003, 9.748759842424235)
71(3.62, 8.88694476190475)
72(3.6740000000000004, 7.9959217125541)
73(3.728, 7.075690694372279)
74(3.782, 6.126251707359288)
75(3.836, 5.147604751515143)
76(3.8899999999999997, 4.139749826839816)
77(3.944000000000001, 3.102686933333306)
78(3.998, 2.0364160709956405)
79(4.0520000000000005, 0.9409372398268057)
80(4.106, -0.18374956017318267)
81(4.16, -1.337644329004355)
Table of values
Residuals against x. Random scatter around zero means the model fits well.
PointResidualsZero
1(0, 0.09030303030304809)(0, 0)
2(0.5, -0.17242424242424192)(4, 0)
3(1, 0.16896103896102588)
4(1.5, -0.18554112554114255)
5(2, 0.0640692640692464)
6(2.5, 0.017792207792194148)
7(3, -0.024372294372305703)
8(3.5, 0.13757575757575857)
9(4, -0.09636363636361667)