331+ free tools. No sign-up. No hidden fees. Explore the toolkit

Quadratic Formula Calculator

A quadratic equation has the form ax² + bx + c = 0, where a is not zero. Its solutions — the roots — are the x-values where the parabola y = ax² + bx + c crosses the x-axis. The quadratic formula finds them every time, whether the roots are real, repeated or complex. If you want to work through the steps by hand, see how to solve quadratic equations.

Enter the coefficients a, b and c to get both roots, the discriminant, the vertex and the axis of symmetry, with the working shown step by step.

Must not be 0 for a quadratic equation.

Equation: ax² + bx + c = 0

Roots

Save to Pinterest
Roots can be complex: when the discriminant is negative, the parabola never crosses the x-axis and the roots are a pair of complex conjugates, written with i (the square root of −1). This calculator shows them in the form −1 + 2i.

How It Works

The quadratic formula is x = (−b ± √(b² − 4ac)) / 2a. The part under the square root, D = b² − 4ac, is called the discriminant, and it decides what kind of roots you get before you calculate anything else. If D is positive, there are two different real roots. If D is zero, there is exactly one root, counted twice — the parabola just touches the x-axis. If D is negative, there are no real roots at all, and the two roots are complex conjugates.

The same coefficients describe the parabola's shape. The vertex — the turning point — sits at x = −b / 2a, and its y-value is found by substituting that x back into the equation, or with k = c − b² / 4a. The axis of symmetry is the vertical line x = −b / 2a. If a is positive the parabola opens upward and the vertex is the lowest point; if a is negative it opens downward and the vertex is the highest point. The y-intercept is simply c.

When a is 0, the x² term vanishes and the equation is no longer quadratic — it is the linear equation bx + c = 0, with the single root x = −c / b. This calculator handles that case too and says so clearly, rather than dividing by zero. If b is also 0, there is either no solution (when c is not 0) or every value of x is a solution (when c is 0).

Worked Example

Solve x² − 3x + 2 = 0. Here a = 1, b = −3 and c = 2. The discriminant is D = b² − 4ac = (−3)² − 4 × 1 × 2 = 9 − 8 = 1. Because D is positive, there are two distinct real roots: x = (−(−3) ± √1) / (2 × 1) = (3 ± 1) / 2, so x₁ = 2 and x₂ = 1. Check: 2² − 3 × 2 + 2 = 4 − 6 + 2 = 0.

The vertex is at h = −b / 2a = 3 / 2 = 1.5, and k = c − b² / 4a = 2 − 9 / 4 = −0.25, so the vertex is (1.5, −0.25) and the axis of symmetry is x = 1.5. Since a = 1 is positive, the parabola opens upward and the vertex is its lowest point.

For a complex example, take x² + 2x + 5 = 0. The discriminant is 4 − 20 = −16, so the roots are x = (−2 ± √−16) / 2 = (−2 ± 4i) / 2, giving x₁ = −1 + 2i and x₂ = −1 − 2i. The vertex is (−1, 4), above the x-axis — which is why the parabola never crosses it.

Assumptions

Sources: No external data is used on this page — every figure is calculated from the numbers you enter. Last reviewed: 21 November 2026.

Built and tested by SumKitTool — see how we check our numbers.

How to Use This Calculator

Enter the three coefficients — a (the x² coefficient), b (the x coefficient) and c (the constant) — and the results update live. The headline shows the roots; the table lists the discriminant, vertex, axis of symmetry, y-intercept and which way the parabola opens; the step-by-step working underneath shows every substitution so you can follow the arithmetic or check your homework. Try a = 1, b = 2, c = 5 to see complex roots, or set a = 0 to see the linear case.

Tips and Practical Advice

The Vertex in Real Life: Projectiles, Profit and Peaks

The vertex is where a quadratic equation stops being abstract. Take a ball thrown straight up, with its height in metres after t seconds given by h(t) = −4.9t² + 20t + 1.5 — an initial speed of 20 metres per second from a height of 1.5 metres, with gravity pulling it down at 4.9 m/s². The vertex sits at t = −b/2a = 20/9.8 = 2.0408 seconds, and the height there is 21.9082 metres: that is the highest the ball ever gets, and the moment it gets there. Because a is negative, the parabola opens downward and the vertex is a maximum — the same formula with a positive a would give a minimum instead.

The roots tell the rest of the story. Setting h(t) = 0 gives the discriminant D = 20² − 4 × (−4.9) × 1.5 = 429.4, and the roots are t = −0.0737 and t = 4.1553 seconds. The ball hits the ground 4.1553 seconds after the throw — the negative root is the time the ball would have left the ground if the same arc had started below it, before the throw, so it has no meaning in this story and is discarded. A quick check ties the two answers together: the vertex always sits exactly halfway between the roots, and (−0.0737 + 4.1553)/2 = 2.0408, the vertex time. If your roots and vertex do not line up this way, something went wrong.

Business problems use the same shape. Suppose a stall's daily profit in dollars is P(x) = −2x² + 40x − 50, where x is the number of items sold. The vertex is at x = −40/(2 × −2) = 10 items, giving a maximum profit of P(10) = −200 + 400 − 50 = $150 a day. The roots are x = 1.3397 and x = 18.6603 — the break-even points: sell fewer than about 1.34 items or more than about 18.66 and the stall loses money. Selling whole items, the profitable range is 2 to 18 items a day, with the sweet spot at 10. Enter a = −2, b = 40, c = −50 above to check all of this.

Two habits make these problems reliable. First, always ask what each root means in context before reporting it: a negative time, a negative length or a fractional number of items usually means one root is the answer and the other is a mathematical artefact of the model. Second, verify by substitution — put each root back into the equation and confirm the result is 0, and check the vertex against the midpoint of the roots. The calculator above shows the discriminant, the vertex and the step-by-step working for every case, so a word problem that starts as a story ends as a number you can trust.

Frequently Asked Questions

What is the discriminant and what does it tell you?

The discriminant is D = b² − 4ac. If D is positive, the equation has two different real roots. If D is zero, it has one repeated root. If D is negative, it has two complex roots, which are conjugates of each other. This calculator shows the discriminant before the roots so you can see which case applies.

What does a complex root mean?

A complex root appears when the parabola never crosses the x-axis — the equation has no real solution. The roots are written as a pair, for example −1 + 2i and −1 − 2i, where i is the square root of −1. They still satisfy the equation when you substitute them back in.

What happens if a is 0?

If a is 0, the x² term disappears and the equation is linear, not quadratic. This calculator solves it as a linear equation instead — for example, 0x² + 2x − 4 = 0 gives x = 2 — and says so clearly in the result.

What is the vertex of a parabola?

The vertex is the turning point of the parabola — its lowest point if a is positive, its highest if a is negative. It sits at x = −b / 2a, and the axis of symmetry is the vertical line through the vertex. For x² − 3x + 2, the vertex is (1.5, −0.25).

How do I find the maximum height of a thrown ball?

Write the height as a quadratic in time, then find the vertex. For h(t) = −4.9t² + 20t + 1.5, the vertex is at t = −b/2a = 2.0408 seconds and the maximum height is 21.9082 metres. The ball lands when h(t) = 0, which is 4.1553 seconds after the throw. Enter a = −4.9, b = 20 and c = 1.5 above to see the full working.

Why does a quadratic sometimes give a root I should ignore?

Both roots are mathematically correct, but only one may fit the story. A ball thrown upward has roots of −0.0737 and 4.1553 seconds — the negative root is a time before the throw, so it is discarded and the ball lands after 4.1553 seconds. Whenever a root means a negative time, length or quantity, check the context before reporting it.

Last updated: