Quadratic Solver Guide: The Formula, the Discriminant & the Vertex

Written and verified by Muhammad Haroon, founder of Numblox · x = (−b ± √(b² − 4ac)) ÷ 2a · Worked examples · Updated 24 November 2026

The quadratic formula is the most-used formula in school algebra, and the least understood — most students memorise it without ever seeing why it works or what its parts mean. This guide fixes that: where the formula comes from, the three cases the discriminant predicts, and worked examples whose answers match the solver exactly.

Try it yourself: use the free Quadratic Solver on Numblox — a, b and c in; discriminant, roots and vertex out. Nothing you enter is stored or sent anywhere.

The formula

For ax² + bx + c = 0 (with a ≠ 0):

x = (−b ± √(b² − 4ac)) ÷ 2a

It is not magic — it is completing the square, done once, in general. Divide the equation by a, move the constant over, add (b ÷ 2a)² to both sides so the left becomes a perfect square, take square roots, and the formula falls out. The ± is why quadratics have up to two roots: a parabola crosses the x-axis at most twice.

The discriminant — the answer before the answer

The part under the root, D = b² − 4ac, decides the case: D > 0 → two different real roots; D = 0 → one repeated root; D < 0 → no real roots (complex roots instead). Checking D first is the professional habit: it tells you what kind of answer to expect and catches sign errors early.

Worked example 1 — two roots: x² − 5x + 6 = 0

a = 1, b = −5, c = 6. D = 25 − 24 = 1 (positive → two roots).
x = (5 ± 1) ÷ 2 → x = 3 and x = 2.
Check by factoring: (x − 3)(x − 2) = x² − 5x + 6 ✓. The vertex sits midway between the roots at x = 2.5, y = −0.25.

Worked example 2 — one repeated root: x² − 6x + 9 = 0

D = 36 − 36 = 0, so the root repeats: x = 6 ÷ 2 = 3 (and indeed (x − 3)² = x² − 6x + 9). The parabola just touches the axis at its vertex (3, 0).

Worked example 3 — complex roots: x² + 2x + 5 = 0

D = 4 − 20 = −16 (negative → no real roots). x = (−2 ± 4i) ÷ 2 = −1 + 2i and −1 − 2i. The parabola floats entirely above the axis — its vertex is ( −1, 4 ), never reaching y = 0.

Check your own numbers

Enter your coefficients in the Numblox Quadratic Solver, predict the case from the discriminant before you look at the roots, and verify any real roots by substitution — 30 seconds that catches most homework errors.

How to use the calculator

Step 1: Write your equation in the form ax² + bx + c = 0 and note a, b and c — watching the signs (x² − 5x + 6 means b = −5).

Step 2: Enter a, b and c in the solver to get the discriminant, the roots and the vertex.

Step 3: Use the discriminant first: it tells you whether to expect two real roots, one repeated root, or complex roots before any solving.

Common questions

What are the roots of x² − 5x + 6 = 0? The discriminant is 25 − 24 = 1, so the roots are x = (5 + 1) ÷ 2 = 3 and x = (5 − 1) ÷ 2 = 2. The parabola's vertex is at (2.5, −0.25).

What does the discriminant tell me? b² − 4ac decides everything before you solve: positive means two different real roots, zero means one repeated root, and negative means no real roots — the roots are complex numbers instead.

How do I find the vertex of a parabola? The vertex x-coordinate is −b ÷ (2a); substitute it back to get y. For x² − 5x + 6, the vertex is (2.5, −0.25) — the lowest point, because a is positive.

Disclaimer: This article and the solver provide general educational information. Always check roots by substitution in coursework, and follow your syllabus's preferred method where it differs.

Related: Quadratic Solver · Scientific Calculator · Standard Deviation Guide · All free calculators