Completing the Square Explained Step by Step
PennPaper Team
Completing the square rewrites a quadratic so one side is a perfect square like (x + 3)². Once it is in that shape, you can solve by taking a square root. It is also the method behind vertex form and the quadratic formula itself.
Quick idea
For x² + bx, adding (b/2)² makes a perfect square: x² + bx + (b/2)² = (x + b/2)². Add the same amount to both sides to keep the equation balanced.
Why it is called completing the square
Picture as a square of side plus a rectangle. Cut the rectangle in half and attach one strip to the right side and one to the bottom. The shape is almost a big square of side — only a corner is missing.
Adding that missing corner, , literally completes the square:
That is where the rule "take half of and square it" comes from.
Steps
- Move the constant term to the right side. If a is not 1, divide every term by a first.
- Take half of b and square it.
- Add that number to both sides, then write the left side as a squared binomial.
- Take the square root of both sides (remember ±) and solve for x.
Worked example
Solve x² + 6x − 7 = 0 by completing the square.
Full solution
Step-by-step walkthrough
Step 1
Add 7 to both sides so the x terms are alone on the left.
Step 2
Half of 6 is 3, and 3² is 9. Add 9 to both sides: the right side becomes 16.
Step 3
The left side is now the perfect square (x + 3)².
Step 4
Square root both sides: x + 3 = ±4, so x = 1 or x = −7.
More worked examples
Example 2: A negative b
Solve .
Step 1. Move the constant.
Step 2. Half of −8 is −4, and (−4)² = 16. Add 16 to both sides.
Step 3. Write as a square and take the square root.
Answer: or .
Example 3: Irrational answers
Solve .
Step 1. Move the constant.
Step 2. Half of 2 is 1, and 1² = 1.
Step 3. Square root both sides.
Answer: or .
Example 4: An odd b (fractions)
Solve .
Step 1. Move the constant, then add (3/2)² = 9/4.
Step 2. Write as a square and take the square root.
Answer: or .
When a is not 1
Divide every term by first so the coefficient is 1. Fractions are fine — keep them exact.
Completing the square to get vertex form
The same move converts into vertex form . Instead of adding to both sides, add and subtract on the same side:
So the vertex is .
The quadratic formula is completing the square in disguise
Complete the square on the general equation and you arrive at . The full derivation is in The Quadratic Formula Explained. In practice, use completing the square when and is even; otherwise the formula is usually faster.
Common mistakes to avoid
- Add (b/2)² to both sides, not just the left. Adding it to one side only changes the equation and gives the wrong answers.
- Adding instead of . For you add 9, not 3.
- Forgetting the when taking the square root, which loses one of the two solutions.
- Completing the square before dividing by . The rule only works when the coefficient is 1.
Practice problems
- Solve x² + 4x − 5 = 0 by completing the square.
- Solve x² − 8x + 12 = 0 by completing the square.
- Solve x² + 2x − 2 = 0 by completing the square.
Answers
- x = 1 or x = −5
- x = 6 or x = 2
- x = −1 ± √3
Frequently asked questions
What does completing the square mean?
It means adding a number to x² + bx so it becomes a perfect square trinomial, (x + b/2)². The number to add is (b/2)².
When should I use completing the square?
It is quickest when a = 1 and b is even, and it is the standard way to convert a quadratic into vertex form. For other equations the quadratic formula is usually faster.
Does completing the square always work?
Yes. It works for every quadratic equation, including ones with irrational or complex solutions. That is why the quadratic formula, which is derived from it, also always works.
Ask PennPaper to explain it live
If the steps make sense but you still feel stuck, start a PennPaper lesson and ask the tutor to draw the problem on the whiteboard. Seeing the symbols move step by step is often what makes the concept click.