Fit the best parabola y = ax² + bx + c to your data, with R², the vertex (the peak or trough), a chart and predictions at any X.
y = ax² + bx + c · vertex at x = −b ÷ 2a
Quadratic regression fits a parabola, y = ax² + bx + c, through data that rises then falls, or falls then rises. It picks a, b and c to make the squared vertical distances from the points to the curve as small as possible.
It's the natural model for anything with a single peak or trough: the height of a thrown ball, crop yield against fertiliser (too little and too much both hurt), or a car's fuel use against speed.
The vertex is often the answer people want: the best dose, the top of the flight, the cheapest production level. The sign of a says which: negative a gives a peak, positive a a trough.
Least squares as in the NIST/SEMATECH e-Handbook, section 4.4.3. See Sources.
R² = 0.9999: the parabola fits almost perfectly, and the curvature recovers gravity to within a few percent despite rough measurements.
Small residuals scattered either side of zero are the sign of a good fit.
| Time (s) | Observed | Fitted | Residual |
|---|---|---|---|
| 0 | 1.5 | 1.47 | 0.03 |
| 0.5 | 11.8 | 11.81 | -0.01 |
| 1 | 19.6 | 19.61 | -0.01 |
| 1.5 | 24.8 | 24.87 | -0.07 |
| 2 | 27.6 | 27.59 | 0.01 |
| 2.5 | 27.9 | 27.76 | 0.14 |
| 3 | 25.3 | 25.39 | -0.09 |
At least 3 different X values. With exactly 3 the parabola passes through every point; more points are needed to judge the fit.
Negative a opens downwards with a peak; positive a opens upwards with a trough.
Technically yes: it’s linear in the coefficients a, b and c, so the same least-squares maths applies.
Add a polynomial trendline of order 2 to a scatter chart, or use =LINEST(y, x^{1,2}).
Solve ax² + bx + c = 0 with the quadratic formula using the fitted coefficients.
When the data bend twice, such as rising, levelling and rising again. The cubic regression calculator handles that.
The residual standard error: a typical distance between the points and the curve, in the same units as Y.
You can, but treat it cautiously. Close to the data range is usually fine; far away, the curve shape dominates.
Related Tools
Linear relationship strength.
Linear correlation coefficient.
Rank correlation.
Regression fit quality.
Third-degree polynomial fit.
Higher degree curve fit.