Introduction
This Quadratic Regression Calculator finds the best-fit parabola for your data. You type in your x and y values, and it gives you the equation y = ax² + bx + c. Use it when your data points curve instead of forming a straight line.
Every step is shown along with the answer: the sums table, the normal equations, the row work, and the back-substitution. You also get R², an r value (the square root of R², given the sign of b), standard errors, the vertex, the axis of symmetry, and a scatter plot with the fitted curve drawn on top.
You can paste values as a list or type them into a table. Pick how many decimal places you want. Check the box to force the curve through the origin (c = 0) if your model needs that. Then use the prediction tool to find ŷ for any x, and use the Export button to download, print or copy your results.
How to use our Quadratic Regression Calculator
Enter your x and y data points, and the calculator finds the best-fit parabola y = ax² + bx + c. You get the equation, R², the vertex, step-by-step math, and a scatter plot with the fitted curve.
Input Mode: Pick Text Mode to paste lists of numbers, or Table Mode to type each point in its own row.
X Values: Type your x numbers, split by commas, spaces, or new lines. You need at least 3 points and at least 3 different x values. With Force c = 0 checked, 2 different x values other than 0 are enough.
Y Values: Type your y numbers in the same order as the x values. The count must match the x list.
Add Row (Table Mode): Click it to add one more data point. Use the red trash button to delete a row you do not want.
Force c = 0: Check this box if the curve must pass through the origin. The model then becomes y = ax² + bx.
Decimal Places: Choose 2, 3, 4, 5, 6 or 8 decimal places for the results.
Calculate: Click to run the regression and show your input, the full solution steps, the final equation, the stats, and the graph.
Reset: Click to bring back the sample data and default settings.
Export: Use the Export button to download, print or copy your results.
Predict ŷ for x: Type any x value and click Calculate to get the y value from your fitted curve.
Reset Zoom: Click to return the chart to its full view after you zoom in.
What Is Quadratic Regression?
Quadratic regression is a way to find the curved line that best fits a set of data points. The curve is a parabola, and its equation looks like this:
y = ax² + bx + c
You use it when your data does not follow a straight line. Instead, it rises and then falls, or falls and then rises. Things like the path of a thrown ball or profit that peaks and drops often fit a parabola better than a line.
What the Letters Mean
- a sets how wide or narrow the curve is. If a is positive, the parabola opens up (it has a low point). If a is negative, it opens down (it has a high point).3
- b works with a to set the x value of the turning point.3
- c is the y-intercept. It is the y value when x = 0.
How the Best Curve Is Found
The method is called least squares. For each data point, you find the gap between the real y value and the y value the curve predicts. That gap is called a residual. The best curve is the one that makes the total of all the squared residuals as small as possible.2
To get there, you add up columns of numbers from your data: Σx, Σx², Σx³, Σx⁴, Σy, Σxy, and Σx²y. Those sums go into three equations called the normal equations. Solving them gives you a, b, and c.
Key Terms to Know
- R² (R-squared) shows how well the curve matches the data.5 For a normal fit that includes c, it runs from 0 to 1.5 It can drop below 0 when c is forced to 0. An R² of 0.98 means the curve explains 98% of the change in y. A higher R² means a closer fit, but adding the x² term never lowers R², so a higher R² alone does not prove the curve beats a straight line.5
- Vertex is the turning point of the parabola. Its x value is −b ÷ (2a).3 This is the highest or lowest point of the curve.
- Axis of symmetry is the vertical line through the vertex.3 The parabola looks the same on both sides of it.
- Discriminant (Δ = b² − 4ac) tells how many times the curve crosses the x-axis: twice if Δ is positive, once if Δ is zero, never if Δ is negative.4
- Standard error shows how much each coefficient might be off. Smaller numbers mean more trust.
Things to Remember
- You need at least 3 data points, and at least 3 different x values, to fit a parabola. With c forced to 0, 2 different x values other than 0 are enough.
- With exactly 3 points at 3 different x values, the curve passes through all of them perfectly, so R² = 1 (unless c is forced to 0 or all the y values are the same). That does not prove the model is good.
- Compare the quadratic R² with the linear R². If they are close, a straight line may be the simpler, better choice.
- Predictions are safest inside your range of x values.6 Going far outside that range can give strange results, since a parabola always turns around at some point.
- Force c = 0 only when you know the curve must pass through the origin, like distance that starts at zero.