Category

Quadratic Regression Calculator | y = a + bx + cx² | Parabola of Best Fit

Free quadratic regression calculator. Find the parabola of best fit y = a + bx + cx² for any dataset. Computes coefficients a, b, c, R², vertex, and a predicted-vs-actual table. Supports metric, US customary units and 20 world currencies including USD and RUB.

0 calculations

Calculation Parameters

One pair per line: x, y — at least 3 points required

Enter Parameters

Enter data points and click Calculate to find the quadratic regression equation.



What Is a Quadratic Regression?

Quadratic regression is a statistical technique used to model the relationship between an independent variable x and a dependent variable y when the data follows a curved (parabolic) pattern rather than a straight line. It finds the parabola of best fit for your dataset using the least-squares method.

Quadratic Regression Model

Let x be the explanatory variable and y the response variable. The aim of quadratic regression is to find an equation of the form:

y = a + bx + cx²

that best fits the data points (x₁, y₁), …, (xₙ, yₙ). In the special case where c = 0, the model reduces to a simple linear regression.

Quadratic Regression Formula

The coefficients a, b, and c are determined by solving the following normal equations derived from the least-squares criterion:

  • n·a + (Σx)·b + (Σx²)·c = Σy
  • (Σx)·a + (Σx²)·b + (Σx³)·c = Σxy
  • (Σx²)·a + (Σx³)·b + (Σx⁴)·c = Σx²y

This 3×3 linear system is solved using Gaussian elimination with partial pivoting for numerical stability.

Coefficient of Determination R²

After finding a, b, c, we measure model quality with R²:

R² = 1 − SSres / SStot

where SStot = Σ(yᵢ − ȳ)² and SSres = Σ(yᵢ − ŷᵢ)². R² ranges from 0 to 1: the closer to 1, the better the fit.

How to Calculate Quadratic Regression by Hand

  1. Compute the sums: n, Σx, Σx², Σx³, Σx⁴, Σy, Σxy, Σx²y.
  2. Set up the 3×3 normal-equation system and solve for a, b, c.
  3. Calculate predicted values ŷᵢ = a + bxᵢ + cxᵢ² for each data point.
  4. Compute SStot and SSres, then find R².

How to Use This Quadratic Regression Calculator

  1. Enter your data — one (x, y) pair per line, separated by a comma, space, or semicolon.
  2. Choose a measurement system — dimensionless, metric (SI), US customary, or a world currency (USD, RUB, EUR, and more).
  3. Click Calculate to instantly get the equation y = a + bx + cx², the R² value, the parabola vertex, and a full predicted-vs-actual table.
  4. Use the Share button to send results to colleagues, or Print for a clean report.

Example: Quadratic Regression Step by Step

Suppose you have the following data points:

xy
12.1
25.0
39.9
417.1
526.0

After solving the normal equations you get approximately: y ≈ 0.04 + 0.03x + 1.00x², with R² ≈ 99.99% — an excellent fit. The vertex of the parabola is near x ≈ −0.015, confirming that the parabola opens upward.

When Is Quadratic Regression the Right Choice?

  • Your scatter plot resembles a U-shape or inverted-U rather than a line.
  • A linear model leaves large, systematic residuals.
  • You're modelling physical phenomena like projectile motion, cost curves, or dose-response relationships.

For straight-line data use linear regression. For S-curves try exponential regression. For higher-degree polynomials, a dedicated polynomial regression tool is recommended.

Calculation History

Loading...