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
- Compute the sums: n, Σx, Σx², Σx³, Σx⁴, Σy, Σxy, Σx²y.
- Set up the 3×3 normal-equation system and solve for a, b, c.
- Calculate predicted values ŷᵢ = a + bxᵢ + cxᵢ² for each data point.
- Compute SStot and SSres, then find R².
How to Use This Quadratic Regression Calculator
- Enter your data — one (x, y) pair per line, separated by a comma, space, or semicolon.
- Choose a measurement system — dimensionless, metric (SI), US customary, or a world currency (USD, RUB, EUR, and more).
- Click Calculate to instantly get the equation y = a + bx + cx², the R² value, the parabola vertex, and a full predicted-vs-actual table.
- 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:
| x | y |
|---|---|
| 1 | 2.1 |
| 2 | 5.0 |
| 3 | 9.9 |
| 4 | 17.1 |
| 5 | 26.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.