How to complete the square, step by step
Completing the square turns a quadratic into something of the form , which you can solve with a square root. It works on every quadratic, including the ones that will not factor.
The five steps
For an equation :
- Move the constant to the right side.
- Halve the middle number and square it. Add that to both sides.
- Write the left side as a square: .
- Take the square root of both sides. Remember the ±.
- Solve for .
Example 1
Solve .
Move the 5:
Half of 6 is 3, and . Add 9 to both sides:
The left side is now a perfect square:
Take the square root of both sides:
So or .
Example 2: an answer with a square root
Solve . This one does not factor.
Half of −4 is −2, and . Add 4 to both sides:
As decimals, or .
Example 3: the first number is not 1
Solve .
The method needs a plain , so divide everything by 2 first:
Half of 4 is 2, and :
So or .
Why adding (b/2)² works
Expand a squared bracket: . The middle number, 6, is twice the 3, and the last number, 9, is the 3 squared. So if you have and want a perfect square, the missing piece is always (half the middle number) squared.
Common mistakes
- Adding to one side only. The 9 in Example 1 goes on both sides.
- Forgetting the ±. A square root gives two values, and that is where the second solution comes from.
- Not dividing first when the number in front of is not 1.
- Sign of the bracket. is , with the same sign as the middle term.
You can check any answer with our quadratic equation solver. If the numbers are simple, factoring is usually quicker.
Practice problems
1.
Answer
, so and . or .
2.
Answer
, so and . or .
3.
Answer
, so and .
4.
Answer
Divide by 3: . Then , so and .
More on algebra
How to solve systems of equations by substitution
Solve a system of two equations by substitution in four steps. Worked examples, what no solution looks like, and practice problems with answers.
AlgebraHow to solve two-step equations
Solve two-step equations by undoing addition or subtraction first, then multiplication or division. Worked examples, common mistakes and practice.
AlgebraHow to solve quadratic equations by factoring
Learn to solve quadratic equations by factoring in four steps, with worked examples, the mistakes to avoid, and practice problems with answers.