🧮 Quadratic Equation Solver

Last updated: January 13, 2026

🧮 Quadratic Equation Solver

Solve ax² + bx + c = 0 — roots, discriminant, vertex & parabola

Enter a, b, c below to preview the equation
x² coefficient
x coefficient
constant
Parabola Plot

How to Solve Any Quadratic Equation: A Step-by-Step Algebra Guide

Every quadratic equation, no matter how it first appears, can be wrestled into the standard form ax² + bx + c = 0. Once it is there, a completely mechanical process — one you can apply without guessing — delivers the exact roots, tells you the shape of the parabola, and even pinpoints the turning point of the curve. This guide walks through that entire process, from identifying coefficients to sketching a graph, with worked examples at every stage.

What Makes an Equation Quadratic?

The word "quadratic" traces back to the Latin quadratus, meaning "square." A quadratic equation is defined by having exactly one term where the variable is raised to the second power, and no term with a higher power. That squared term is what creates the characteristic U-shaped graph — a parabola — rather than the straight line you get from a linear equation. The coefficient a in front of x² must not be zero; if it were, the x² term would vanish and the equation would collapse into a linear one.

Step 1: Identify a, b, and c

Before anything else, rewrite the equation so that all terms are on one side and the right side equals zero. Then read off the three coefficients:

  • a — the number multiplying x² (including its sign)
  • b — the number multiplying x (again, sign included)
  • c — the standalone constant term

For example, 3x² − 7x + 2 = 0 gives a = 3, b = −7, c = 2. If any term is missing, its coefficient is zero. The equation x² − 9 = 0 has b = 0 because there is no x term at all.

Step 2: Compute the Discriminant

The discriminant is the expression b² − 4ac, and it is the single most informative quantity in the entire problem. You should calculate it before doing anything else with the quadratic formula, because it tells you immediately what kind of roots to expect:

  • Δ > 0: two distinct real roots — the parabola crosses the x-axis at two separate points.
  • Δ = 0: one repeated real root — the parabola just grazes the x-axis at a single point (the vertex sits exactly on the axis).
  • Δ < 0: no real roots — the parabola sits entirely above or below the x-axis. The solutions are complex numbers involving the imaginary unit i.

Taking the equation x² − 5x + 6 = 0 as a concrete example: Δ = (−5)² − 4(1)(6) = 25 − 24 = 1. Since 1 > 0, we know right away that two different real roots exist, and their values will be rational numbers (because Δ is a perfect square).

Step 3: Apply the Quadratic Formula

The quadratic formula is derived by completing the square on the general form ax² + bx + c = 0. The result, which is valid for every quadratic equation without exception, is:

x = (−b ± √Δ) / (2a)

The ± symbol means you compute two separate values: one where you add the square root of the discriminant, and one where you subtract it. Continuing with x² − 5x + 6 = 0 (where a = 1, b = −5, Δ = 1):

  • x₁ = (5 + 1) / 2 = 3
  • x₂ = (5 − 1) / 2 = 2

You can verify these by substituting back: (3)² − 5(3) + 6 = 9 − 15 + 6 = 0. Correct.

Handling Negative Discriminants: Complex Roots

When Δ is negative, √Δ is not a real number. Instead you write it as √|Δ| × i, where i is the imaginary unit (i² = −1). The two roots become complex conjugates of each other:

x = −b/(2a) ± (√|Δ| / 2a) × i

For x² + 2x + 5 = 0: a = 1, b = 2, c = 5, Δ = 4 − 20 = −16. So √|Δ| = 4, giving x = −1 ± 2i. Complex roots always appear in conjugate pairs like this — if one root is p + qi, the other is p − qi.

In a physics or engineering context, complex roots mean the system has no real equilibrium crossings of that axis, while in a pure math exam they are valid answers written in the form a ± bi.

Step 4: Find the Vertex

The vertex of a parabola is either its lowest point (when a > 0, the parabola opens upward) or its highest point (when a < 0, it opens downward). The x-coordinate of the vertex is exactly the midpoint between the two roots, which simplifies to:

x_vertex = −b / (2a)

This is actually the same as the real part of the roots when they are complex. Once you have the x-coordinate, substitute it back into the original equation to get the y-coordinate:

y_vertex = a(x_vertex)² + b(x_vertex) + c

For x² − 5x + 6 = 0: x_vertex = 5/2 = 2.5, y_vertex = (2.5)² − 5(2.5) + 6 = 6.25 − 12.5 + 6 = −0.25. The vertex is (2.5, −0.25), which is the minimum point of this upward-opening parabola.

Reading the Parabola Graph

A plotted parabola communicates a great deal at a glance. The points where the curve crosses the x-axis are the real roots. The vertex is the point where the curve turns around. The axis of symmetry is the invisible vertical line passing through the vertex — the parabola is a perfect mirror image on either side of it.

If the parabola does not touch the x-axis at all, that is a visual confirmation that the discriminant is negative and the roots are complex. When it just barely touches the x-axis at one point, that is the repeated-root case, and that single touch point is the vertex itself.

Common Mistakes to Avoid

Forgetting the sign of b: In the formula −b/(2a), be careful when b is already negative. If b = −4, then −b = +4, not −4 again. Sign errors here shift the vertex in the wrong direction.

Dividing only part of the numerator by 2a: The full expression (−b ± √Δ) must be divided by 2a. A frequent error is writing −b/2a ± √Δ, which gives the wrong answer.

Declaring "no solution" when Δ < 0: There are no real solutions, but complex solutions do exist. On exams that require complex answers, always write them out in a ± bi form.

When to Use Other Methods

The quadratic formula always works, but for simpler equations other approaches can be faster. Factoring is usually quickest when the coefficients are small integers and the roots are obvious — for example, x² − 7x + 12 = 0 factors neatly into (x − 3)(x − 4) = 0. Completing the square is valuable when you need to rewrite the quadratic in vertex form for graphing purposes. For equations with a = 1 and small integer b, the "sum and product" trick (finding two numbers that add to b and multiply to c) can save several steps.

The calculator tool above handles all cases automatically, but understanding the underlying steps means you can catch errors, interpret unusual results, and adapt the technique to problems that do not arrive pre-formatted as homework questions.

FAQ

What does it mean when the discriminant is zero?
When b² − 4ac = 0, both roots are identical — the parabola's vertex sits exactly on the x-axis. The formula gives x = −b / (2a), and that single value is called a repeated or double root. Geometrically, the parabola touches the x-axis at exactly one point rather than crossing it twice.
Can a quadratic equation have no solution at all?
It depends on what number system you're working in. If the discriminant is negative, there are no real-number solutions, but there are always two complex solutions of the form p ± qi. In most high-school algebra courses, 'no real solution' is the expected answer when Δ < 0, while college and university courses often require the full complex form.
How do I verify my roots are correct without a calculator?
Substitute each root back into the original equation and check that the result equals zero. You can also use Vieta's formulas as a quick sanity check: the sum of the two roots should equal −b/a, and their product should equal c/a. For example, if your equation is 2x² − 7x + 3 = 0, the roots should add up to 7/2 and multiply to 3/2.
Why does the quadratic formula use ± instead of just + or −?
The ± symbol accounts for the fact that squaring removes sign information: both +√Δ and −√Δ, when squared, produce the same discriminant Δ. Because a quadratic equation of degree 2 has exactly two roots (counted with multiplicity, over the complex numbers), we need both possibilities, and ± is compact notation for writing both at once.
What is the axis of symmetry and how do I find it?
The axis of symmetry is the vertical line that passes through the vertex, dividing the parabola into two mirror-image halves. Its equation is simply x = −b / (2a), the same expression used to find the x-coordinate of the vertex. Every parabola has exactly one axis of symmetry, and the two real roots (when they exist) are always equidistant from it.
Does it matter which root I call x₁ and which I call x₂?
No — the labels x₁ and x₂ are purely conventional. By tradition, the root obtained by adding the square root of the discriminant is written first (x₁), and the one obtained by subtracting is written second (x₂). The roots themselves are equally valid solutions regardless of which label they carry, and the equation is satisfied by both values independently.