Skip to content
Calixo
Math

Quadratic Formula vs Completing the Square: Two Paths to the Same Answer

The quadratic formula and completing the square always agree — because one is literally derived from the other. Here's how they connect, with a worked example solved both ways.

Published July 12, 2026

Every quadratic equation ax² + bx + c = 0 can be solved by either the quadratic formula or completing the square, and they always produce identical roots — not because they happen to agree, but because the quadratic formula is literally derived by completing the square on the general equation.

A student writes mathematical notes in a notebook using a pen, focus on studying.
Photo by Louis Bauer on Pexels
Close-up view of a blackboard filled with complex mathematical equations and formulas.
Photo by Vitaly Gariev on Pexels

Solving the same equation both ways

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

The quadratic formula — derived by completing the square on the general equation.

Take x² - 3x - 4 = 0. Via the quadratic formula: discriminant = (-3)² - 4(1)(-4) = 9 + 16 = 25, so x = (3 ± 5)/2, giving x = 4 or x = -1.

Via completing the square: normalize (already a=1), so p = b/2 = -1.5, and q = p² - c = 2.25 - (-4) = 6.25. The equation becomes (x - 1.5)² = 6.25, so x = 1.5 ± 2.5, giving x = 4 or x = -1 — the identical answer, arrived at through a genuinely different mechanical process.

MethodSteps for x² − 3x − 4 = 0Result
Quadratic formuladiscriminant = 25, x = (3 ± 5)/2x = 4 or x = −1
Completing the square(x − 1.5)² = 6.25, x = 1.5 ± 2.5x = 4 or x = −1

Why they always agree

Completing the square on the general equation ax² + bx + c = 0, carried through symbolically instead of with specific numbers, produces x = (-b ± √(b²-4ac)) / (2a) — the quadratic formula itself. This is the actual historical derivation, not a coincidence discovered after the fact. Any specific equation solved by either method is really running the same underlying algebra, just at a different level of abstraction — completing the square works through it with actual numbers, while the quadratic formula has already done that work symbolically once and for all.

When to reach for which method

The quadratic formula is faster when you just need the roots and nothing else — plug in a, b, c and you’re done. Completing the square is worth the extra steps when you also need vertex form, since the p and q values it produces translate directly into a parabola’s vertex coordinates (-p, -q-adjusted-for-a) — information the quadratic formula alone doesn’t hand you. If you’re graphing the parabola or solving an optimization problem (finding a maximum or minimum), completing the square’s byproduct is exactly what you need; if you just need “what are the roots,” the formula is the more direct route.

Using the calculators together

The Quadratic Equation Calculator applies the formula directly with full step display. The Quadratic Formula Calculator with Graph adds the vertex, axis of symmetry, and an actual plotted parabola — useful for seeing the geometric picture, not just the numbers. The Completing the Square Calculator walks through the alternate method explicitly, useful for coursework that specifically requires that technique, or for finding vertex form directly. Try the same a, b, c values in more than one — the roots will always match.

Related calculators