← All guides

Completing the square, step by step

How to complete the square to solve x² + 6x − 7 = 0 and to find a parabola’s vertex, with the picture of why it works.

Video lesson: Completing the square (free, with subtitles)

Completing the square rewrites x² + bx as a perfect square, (x + b/2)², minus a little bit. It's how the quadratic formula is built, and how you find a parabola's vertex.

The key fact

x² + bx + (b/2)² = (x + b/2)²

Picture it: an x-by-x square plus a strip of area bx, cut in half and placed on two sides. The missing corner is (b/2)²; adding it "completes the square".

Solving an equation

Solve x² + 6x − 7 = 0.

Check: 1 + 6 − 7 = 0 ✓ and 49 − 42 − 7 = 0 ✓

Finding the vertex

y = x² − 4x + 1. Half of −4 is −2; (−2)² = 4. Add and subtract 4: y = (x² − 4x + 4) − 4 + 1 = (x − 2)² − 3. The vertex is (2, −3), the lowest point of the parabola.

If there's a number in front of x²

Divide everything by it first (for an equation), or factor it out of the x-terms (for a function), then complete the square as above.

Common mistakes

Practice it free

Watch the full lesson and try questions with new numbers every time, with the worked steps shown if you get one wrong.

Practice: Completing the square All courses