Completing the Square Calculator

Complete the square on any quadratic exactly, and see the four steps carried out on your own numbers rather than described. Completing the square is not a technique that sits alongside the quadratic formula. It is where the formula comes from. Run the same four steps on ax² + bx + c using letters i...

ax² + bx + c = a(x h)² + k,   h = b/2a,   k = c b²/4a

Run these four steps on letters instead of numbers and the last line is the quadratic formula. They are not two methods.

THE QUADRATIC

+x+= 0

COMPLETED SQUARE

(x − 3)² − 4

Expanded again it is x² − 6x + 5 — the original, exactly. Checked on every keystroke.

VERTEX

(3, −4)

AXIS

x = 3

MINIMUM

−4

QuantityExact valueWhere it comes from
h3−b / 2a
k−4c − b² / 4a
(b/2a)²9the corner that completes the square
Discriminant16b² − 4ac, after clearing denominators
Roots1, 5h ± √(−k/a)

These four steps are the quadratic formula. Carry them out on ax² + bx + c with letters rather than the numbers above and the final line reads x = (b ± √(b² 4ac)) / 2a. Nothing else is needed to derive it, and nothing else was ever used to: the formula is the general answer to this procedure, which is why every quadratic yields to it. Being taught them as two separate things to remember is a quirk of curriculum rather than of mathematics.

Why the vertex is worth more than the roots. The completed form gives the minimum value −4 at x = 3 directly, with no calculus and no guessing, and the range follows immediately: the expression takes every value at or above −4 and none below it. That is the answer to most real questions asked of a quadratic — the cheapest price, the highest point, the best setting — none of which the roots tell you.

THE SQUARE

WHY IT IS CALLED COMPLETING THE SQUAREthe two strips are the bx term, split in half and laid against the x² squarex²(b/2a)x(b/2a)xxxthe figure so far is short of being a square by exactly one cornerthe middle term is negative, so the strips are subtracted; the algebra is unchanged

The corner is the only thing the method does. Everything else is bookkeeping: you add 9 to finish the square, then subtract it again so the expression still means what it did before.

THE VERTEX FORM IS THE GRAPH, WRITTEN DOWNthe curve meets the axis at both marked points, one on each side of the dashed axis of symmetryh moves it sideways, k moves it up and down, a stretches it — the three numbers of the completed form
THE FOUR STEPS, ON YOUR NUMBERSdone with letters instead, these same four lines are the quadratic formula

Live calculation · updates as you type

Created with❤️byeaglecalculator.com

HOW TO USE

  1. 1

    Type the three coefficients a, b and c. Whole numbers, decimals and fractions written as 3/4 are all read exactly, and an empty box counts as zero. If a is zero there is no square to complete, because dividing by a is the first thing the method does.

  2. 2

    Read the completed form, then the line beneath it. That line multiplies the square back out and compares all three coefficients with what you entered, so the result is checked rather than merely asserted.

  3. 3

    Take h and k as the answer to most questions. h is the axis of symmetry and k is the minimum or maximum value, both exact fractions — that is the range, the turning point and the best-case value, none of which the roots tell you.

  4. 4

    Use the four-line derivation on the right as a worked template. The same four steps on letters rather than your numbers produce the quadratic formula, which is the fastest way to stop treating them as separate things to remember.

REFERENCE FORMULAS

QuantityFormulaWhat it is for
Vertex formax² + bx + c = a(x − h)² + kThe whole method in one line. Everything below follows from it.
The axish = −b / 2aHalf the middle coefficient, negated. The axis of symmetry and the x of the vertex.
The extreme valuek = c − b² / 4aThe minimum when a > 0, the maximum when a < 0. Equivalently k = −D/4a.
The piece you add(b / 2a)²Added and subtracted in the same line, so the value never changes.
DiscriminantD = b² − 4ac = −4akIts sign is the sign of −k/a, which is why the vertex tells you the root count.
Quadratic formulax = (−b ± √(b² − 4ac)) / 2aWhat these four steps produce when you run them on letters rather than numbers.
Roots from vertex formx = h ± √(−k/a)The same answer, read straight off the completed square. Real exactly when −k/a ≥ 0.
Sum and product of rootsr₁ + r₂ = −b/a, r₁r₂ = c/aVieta’s relations. The sum is 2h, because the roots straddle the axis evenly.

FREQUENTLY ASKED QUESTIONS

RELATED CALCULATORS

MORE ALGEBRA CALCULATORS

Was this calculator helpful?

Last updated: August 3, 2026 · Exact rational arithmetic · the completed form is expanded back and checked against the input on every keystroke