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², the correlation coefficient r, 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 download your full results as a file.
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.
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 how many decimals to show in the results, from 2 up to 8.
Calculate: Click to run the regression and show your input, the full solution steps, the final equation, the stats, and the graph.
Clear / Reset: Click to bring back the sample data and default settings.
Download Results: Click to save your equation, stats, and tables as an HTML file you can keep or print.
Predict ŷ for x: Type any x value and click Predict 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, profit that peaks and drops, or plant growth that slows down 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).
- b shifts the curve left or right and helps set the turning point.
- 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.
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. It runs from 0 to 1. An R² of 0.98 means the curve explains 98% of the change in y. Higher is better.
- Vertex is the turning point of the parabola. Its x value is −b ÷ (2a). This is the highest or lowest point of the curve.
- Axis of symmetry is the vertical line through the vertex. 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.
- 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 exactly 3 points, the curve passes through all of them perfectly, so R² = 1. 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. 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.