How to Complete the Square, Step by Step
- If a ≠ 1, factor it out of the x-terms: 2x² − 8x = 2(x² − 4x).
- Take half of the x-coefficient and square it: (−4 ÷ 2)² = 4.
- Add and subtract that number inside the bracket: 2(x² − 4x + 4 − 4).
- Rewrite the perfect square: 2[(x − 2)² − 4], then multiply out: 2(x − 2)² − 8.
- Add back the constant.
2x² − 8x + 5
- Factor 2 from the x-terms: 2(x² − 4x) + 5.
- Half of −4 is −2, and (−2)² = 4: 2(x² − 4x + 4 − 4) + 5.
- 2(x − 2)² − 8 + 5.
Answer: 2(x − 2)² − 3, so the vertex is (2, −3)
Solve a Quadratic by Completing the Square
x² + 6x + 2 = 0
- Move the constant: x² + 6x = −2.
- Add (6/2)² = 9 to both sides: x² + 6x + 9 = 7.
- (x + 3)² = 7.
- Take the root of both sides: x + 3 = ±√7.
Answer: x = −3 ± √7
When a ≠ 1 you divide through first. 3x² + 12x = 7 becomes x² + 4x = 7/3, so (x + 2)² = 19/3 and x = −2 ± √57/3. If the number on the right is negative, you get complex roots: x² + 2x + 5 = 0 becomes (x + 1)² = −4, so x = −1 ± 2i.
Why the Quadratic Formula Works
Complete the square on ax² + bx + c = 0 in general and out falls the formula. Divide by a: x² + (b/a)x = −c/a. Add (b/2a)² to both sides: (x + b/2a)² = (b² − 4ac)/4a². Take roots: x = (−b ± √(b² − 4ac))/2a. This is the real reason the formula exists, and understanding it is why exam questions often ask for completing the square in the first place.
Vertex Form of a Parabola
y = a(x − h)² + k puts the vertex at (h, k). For y = x² − 4x + 3 you get (x − 2)² − 1, so the vertex is (2, −1). For y = −x² + 2x + 8 it is −(x − 1)² + 9 with the vertex (1, 9), a maximum because a is negative. The axis of symmetry is the line x = h.
Circles: From General Form to Centre and Radius
A circle written as x² + y² − 6x + 4y − 12 = 0 hides its centre. Complete the square twice, once for x and once for y: (x − 3)² − 9 + (y + 2)² − 4 = 12, so (x − 3)² + (y + 2)² = 25. The centre is (3, −2) and the radius is 5. The calculator also handles coefficients in front of x² and y², as in 2x² + 2y² + 8x − 4y − 2 = 0 with centre (−2, 1) and radius √6.
The Area Model: Seeing the Square
For x² + 6x, draw an x by x square and two thin 3 by x rectangles, one on each side. They almost form a larger square, with a 3 by 3 corner missing. That missing corner, 9, is the number you add to complete it. The Square tab draws this for any coefficient, which makes the process stick in a way that algebra alone does not. For x² − 7x you add 49/4, and for 3x² + 12x you factor 3 first and add 4 inside.
Our Take: What Is Overrated, Underrated and Plain Wrong
Overrated: learning it as a trick for solving quadratics. The quadratic formula is built from it.
Underrated: vertex form. Completing the square turns x² + 6x + 2 into (x + 3)² − 7, which shows the minimum −7 at x = −3 at a glance.
Plain wrong: forgetting to balance. Adding (b/2)² on one side without taking it back off or adding it to the other side changes the equation.
A Short History
Completing the square is old. Al-Khwarizmi’s algebra text from about 820 CE (the source of the word “algebra”) solves quadratics by exactly this geometric idea: add a small square to make a bigger one.
Practice Problems with Answers
- Complete the square: x² + 6x + 2
Answer
(x + 3)² − 7 - Solve x² + 6x − 7 = 0
Answer
x = 1 or −7 - Vertex of y = x² − 4x + 3
Answer
(2, −1) - Centre and radius of x² + y² + 10x = 0
Answer
(−5, 0), r = 5 - What do you add to x² − 8x?
Answer
16
Why Students Get Stuck on Completing the Square, and What a Good Calculator Should Do
Searching for help with completing the square usually starts late at night with one problem that will not work out. A quadratic will not factor, and the half-and-square trick feels like magic. A good calculator fixes that by showing each step, checking its own answer and explaining the idea in plain words. This section covers what students struggle with, what they want, and how this page responds.
In short: students need to see why half of b is squared and how the vertex form appears, not just see a final number, and a calculator earns trust only when its steps can be checked.
Understand the pain points
What students get stuck on
Most mistakes here are not about arithmetic. They come from one rule applied the wrong way round, which is why seeing every step matters.
- Forgetting to add the same number to both sidesComplete the square for x^2 + 6x + 2↗
- Not knowing when the leading coefficient must be factored out firstSolve x^2 - 8x + 5 = 0 by completing the square↗
- Mixing up the vertex signs, such as (x + 3)² giving x = −3Complete the square for x^2 + 3x - 1↗
- Not seeing why this method gives the quadratic formula
Understand the frustrations and desires
What they feel, and what they want
Each frustration points to a wish: a clearer step, a built-in check, an explanation in plain words.
- Wants each added term shown, so the balance is clear
- Wants the vertex and a graph from the same steps
- Wants a check by expanding the square back
Build the page around their intent
Each intent has a place on this page
The page follows intent, not features, so each need has a clear starting point.
- I need an answer now: type the problem into the calculator at the top of this page.Complete the square for x^2 + 6x + 2↗
- I need to understand: the sections below explain the idea in plain words and list the common mistakes.
- I need to check my work: every step is shown, so the first line that differs from yours is the one to study.
- I need practice: open the solver, tap + and choose Create Practice Test.
- I need it explained aloud: in the solver, tap + and choose Create Video.