DEGREE-TWO CURVE FIT

Quadratic Regression Calculator

Fit a parabola to paired observations using least squares. Inspect the fitted curve, vertex, R-squared, RMSE and residuals. Use a quadratic model when a single bend is meaningful for your data.

Ordinary least squaresBrowser-basedNo sign-in

YOUR DATA

Enter paired observations

Paste or upload numeric X and Y columns. Use a comma, tab or semicolon between columns and a period as the decimal mark. The first non-empty line is a header by default. Up to 5 MB and 5,000 observations are accepted.

The file is read locally in your browser.

At least three complete pairs with distinct X values are needed.

Formula and calculation method

The calculator fits ŷ = α + βz + γz² by least squares, where z = (x − μ) / s, μ is the mean X value, and s is the root mean square distance of X from μ. Centering and scaling X helps the numerical calculation. The displayed equation uses these normalized coordinates; the exported JSON includes α, β, γ, μ and s.

R² = 1 − SSE/SST and RMSE = √(SSE/n). The vertex is reported when γ is nonzero and the values are within the numeric range.

When a quadratic fit is useful

A degree-two curve can describe one broad bend, such as a U-shaped or inverted-U-shaped pattern. It should be chosen because the shape is plausible and supported by the data, not simply because it raises R². The curve can turn sharply outside the observed X range, so avoid extrapolating without domain knowledge.

Assumptions and limitations

Back to regression calculators