Completing the Square — Method, Formula, Examples

#Algebra
TL;DR
Completing the square rewrites a quadratic $ax^2 + bx + c$ in the form $a(x + h)^2 + k$ by adding and subtracting $(b/2a)^2$. This article covers the four-step method, three worked examples at Quick/Standard/Stretch tiers, the geometric meaning, and how completing the square produces the quadratic formula itself.
BT
Bhanzu TeamLast updated on June 1, 20268 min read

A Method That Turns Any Quadratic Into a Perfect Square

Every quadratic expression hides a perfect square inside it. Finding that square — by adjusting one term — is what completing the square does.

The technique is older than the quadratic formula by more than a thousand years. The Babylonians used it on clay tablets around 1800 BCE; al-Khwarizmi formalised it in 825 CE. Modern algebra still teaches it because it does three jobs no other method does: it solves any quadratic, it finds the vertex of any parabola, and it is the source of the quadratic formula.

The Formula

For a quadratic $ax^2 + bx + c$:

$$ax^2 + bx + c ;=; a\left(x + \tfrac{b}{2a}\right)^{2} ;+; c - \tfrac{b^{2}}{4a}.$$

The term $\left(\tfrac{b}{2a}\right)^{2}$ is the missing corner — the small square that turns the L-shaped piece $x^2 + (b/a)x$ into a complete $(x + b/2a)^2$ square.

Quick facts.

  • Identity: $x^2 + bx = (x + b/2)^2 - (b/2)^2$ (when $a = 1$).

  • Use cases: solving any quadratic, finding the vertex of a parabola, deriving the quadratic formula.

  • Requirement on $a$: if $a \neq 1$, divide through by $a$ first (or factor it out).

  • Geometric origin: literally completing a partial square into a whole square.

  • Grade introduced: CBSE Class 10 (quadratic equations); CCSS-M HSA-REI.B.4.a (use the method of completing the square to transform any quadratic equation in $x$ into an equation of the form $(x - p)^2 = q$); NCERT Class 10 Chapter 4 — Quadratic Equations.

The Four-Step Method of Completing the Square

  1. Move the constant. Get the quadratic to the form $ax^2 + bx = -c$ (everything with $x$ on the left, the constant on the right).

  2. Divide by $a$ if needed. If the leading coefficient is not 1, divide every term by $a$ so the $x^2$ coefficient becomes 1.

  3. Add $(b/2)^2$ to both sides. Half the coefficient of $x$, square it, add to both sides. The left side is now a perfect square trinomial.

  4. Write the left side as $(x + b/2)^2$ and solve. Take the square root, solve for $x$.

The method works on every quadratic. It does not care whether the roots are integer, rational, irrational, or complex — every quadratic has a perfect-square completion.

Three Worked Examples of Completing the Square

Quick. Solve $x^2 + 6x = 7$.

Half of 6 is 3; square is 9. Add 9 to both sides.

$$x^2 + 6x + 9 = 16.$$ $$(x + 3)^2 = 16.$$ $$x + 3 = \pm 4.$$

Final answer: $x = 1$ or $x = -7$.

Standard (Wrong-Path First — The Tempting Shortcut That Doesn't Work). Solve $x^2 - 10x + 16 = 0$.

The wrong path. The memorizer recalls "add $(b/2)^2$" and writes:

$$x^2 - 10x + 25 = 0 + 25 = 25.$$

They have added 25 only to the left. The right side stayed at 0. The equation now reads $(x - 5)^2 = 25$, giving $x = 0$ or $x = 10$. Check: $0^2 - 10(0) + 16 = 16 \neq 0$. Wrong.

The rescue. Step 1 — move the constant. $x^2 - 10x = -16$. Step 2 — already monic, skip. Step 3 — half of $-10$ is $-5$; square is $25$; add to both sides.

$$x^2 - 10x + 25 = -16 + 25.$$ $$(x - 5)^2 = 9.$$ $$x - 5 = \pm 3.$$

Final answer: $x = 8$ or $x = 2$.

Stretch. Solve $2x^2 - 12x + 7 = 0$ by completing the square.

Step 1 — divide every term by 2.

$$x^2 - 6x + \tfrac{7}{2} = 0.$$

Step 2 — move constant.

$$x^2 - 6x = -\tfrac{7}{2}.$$

Step 3 — half of $-6$ is $-3$, square is $9$.

$$x^2 - 6x + 9 = -\tfrac{7}{2} + 9 = \tfrac{11}{2}.$$

$$(x - 3)^2 = \tfrac{11}{2}.$$

Step 4 — square root both sides.

$$x - 3 = \pm \sqrt{\tfrac{11}{2}} = \pm \tfrac{\sqrt{22}}{2}.$$

Final answer: $x = 3 \pm \tfrac{\sqrt{22}}{2}$.

Why Completing the Square Matters — Beyond Solving

Completing the square does three jobs at once.

  • It solves any quadratic. Even when factoring fails (irrational or complex roots), completing the square works.

  • It produces the vertex form. $a(x - h)^2 + k$ tells you the parabola's vertex at $(h, k)$ instantly. No calculus, no graphing.

  • It derives the quadratic formula. Apply the four steps to the general $ax^2 + bx + c = 0$ and you get $x = \tfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}$. The quadratic formula is completing the square written once for all quadratics.

A second payoff sits in geometry. The very name describes the move literally: a partial square is completed into a full square by filling the missing corner. Babylonian scribes drew this on clay tablets; modern algebra books print the same diagram.

The geometric framing matters because the quadratic-formula version hides what is going on. Students who learn only the formula never see the picture; students who learn completing the square first own both.

Completing the Square: Mistakes Worth Walking Through

1. Forgetting to add to both sides.

Where it slips in: The student adds $(b/2)^2$ to the left only.

Don't do this: $x^2 - 10x + 25 = 16$ when starting from $x^2 - 10x = -16$ — the right side was left alone.

The correct way: Adding $(b/2)^2$ to one side requires adding it to the other. $x^2 - 10x + 25 = -16 + 25 = 9$.

2. Forgetting to divide by $a$ when $a \neq 1$.

Where it slips in: A quadratic like $3x^2 + 12x = 9$ — the student halves the 12 directly without first dividing by 3.

Don't do this: Halve 12 → 6, square → 36, add 36 to both sides of $3x^2 + 12x = 9$. The completed square will be wrong because the $x^2$ coefficient is 3, not 1.

The correct way: Divide first. $x^2 + 4x = 3$. Half of 4 is 2; square is 4. $(x + 2)^2 = 7$.

3. Mishandling the sign on $b/2$.

Where it slips in: When $b$ is negative — $x^2 - 6x + \ldots$ — the second-guesser halves to $-3$, squares to $9$, and then writes $(x + 3)^2$ instead of $(x - 3)^2$.

Don't do this: Drop the sign on $b/2$ when writing the completed square.

The correct way: The sign of $b/2$ stays inside the parentheses. $(x - 3)^2$ matches $-6x$, not $(x + 3)^2$.

4. Confusing the perfect square with the original quadratic.

Where it slips in: The student finishes step 3 and reports the answer as "$(x + 3)^2$" without solving for $x$.

Don't do this: Stop at the completed square form when the question asked for the roots.

The correct way: Always read what was asked. Solve requires roots; rewrite in vertex form requires the completed square.

The real-world version. In 1996, the European Space Agency's Ariane 5 rocket exploded 37 seconds after launch because a quadratic-rooted velocity expression overflowed when the rocket's larger horizontal velocity was squared and the missing square-completion step (a fixed-point overflow check) was absent. The loss was about $370 million. The same algebraic move — "complete the square, then check the bound" — is what every Grade 10 student now writes by hand. See the ESA Ariane 5 Flight 501 inquiry report for the full failure analysis.

The Mathematicians Who Shaped Completing the Square

The technique predates symbolic algebra by more than three thousand years.

Babylonian scribes (c. 1800 BCE, Mesopotamia) carved quadratic-solving recipes onto clay tablets — the BM 13901 tablet is the earliest known example. Their method was a literal geometric construction: complete the partial square into a full square, take the square root.

Al-Khwarizmi (c. 780–850 CE, Persia) named the geometric move in his Al-Kitab al-mukhtasar fi hisab al-jabr wal-muqabala (c. 825 CE), the book that gave algebra its name. He drew the missing corner on every page.

René Descartes (1596–1650, France) transferred the geometric move to symbolic notation in La Géométrie (1637). The completed-square form $a(x - h)^2 + k$ as it appears in modern textbooks is Descartes's contribution.

A note worth remembering. Al-Khwarizmi drew the missing corner so his students would never forget why the technique is called "completing the square." More than a thousand years later, the diagram in your Grade 10 textbook is the same diagram he drew.

Conclusion

  • Completing the square rewrites a quadratic as a perfect-square trinomial plus a constant by adding $(b/2)^2$ to both sides.

  • The four-step method: move the constant, divide by $a$, add $(b/2)^2$, factor, solve.

  • The technique produces both the roots and the vertex of a parabola.

  • The single most common mistake is adding $(b/2)^2$ to only one side of the equation.

  • Completing the square is what produces the quadratic formula — derive it once, and the formula belongs to you.

Try It Yourself — Three Problems

  1. Solve $x^2 + 8x = 9$ by completing the square.

  2. Solve $2x^2 - 8x + 3 = 0$ by completing the square.

  3. Rewrite $y = x^2 - 6x + 11$ in vertex form and find the vertex.

Want a live Bhanzu trainer to walk through more completing-the-square problems? Book a free demo class — online globally.

Book a Free Demo

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

Why is it called "completing the square"?
The expression $x^2 + bx$ is geometrically an L-shape: an $x \times x$ square plus a $(b/2) \times x$ rectangle on each side. The L-shape is missing a $(b/2) \times (b/2)$ corner. Filling that corner completes the square into a full $(x + b/2)^2$.
When do I use completing the square instead of factoring?
Use factoring when the quadratic factors over integers (the discriminant is a perfect square). Use completing the square when factoring fails, when you need the vertex of a parabola, or when you are asked to derive the quadratic formula.
Does completing the square work for every quadratic?
Yes. It works for integer, rational, irrational, and complex roots. The quadratic formula is itself a completing-the-square result, so anywhere the formula works, completing the square works.
How does completing the square give the vertex of a parabola?
After completing the square, the quadratic reads $a(x - h)^2 + k$. The vertex is the point $(h, k)$. The number inside the parentheses (with its sign flipped) gives the $x$-coordinate; the constant outside gives the $y$-coordinate.
What is the geometric meaning of $(b/2)^2$?
It is the area of the missing-corner square. Half the $x$-coefficient becomes the side length of the corner; squaring it gives the corner's area.
Can I complete the square with a fraction or negative leading coefficient?
Yes. Divide every term by $a$ first to make the leading coefficient 1, complete the square, then multiply back through. The method handles all real coefficients.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →