STEM-TutorLearn • Practice • ExcelBook Free DemoFree demo

Completing the square, explained with examples

Completing the square rewrites a quadratic in the form (x + p)² + q. It solves equations, finds the turning point of a graph in one step, and is the idea behind the quadratic formula.

On this page
  1. The idea
  2. The method when a = 1
  3. Worked examples
  4. When a is not 1
  5. Solving equations by completing the square
  6. Finding the turning point
  7. Proving an expression is always positive
  8. The link to the quadratic formula
  9. Common mistakes
  10. Practice questions
  11. Frequently asked questions
  12. Key takeaways
  13. Related guides

The idea

A perfect square such as (x + 3)² expands to x² + 6x + 9. Notice the pattern: the number inside the bracket is half the coefficient of x, and the constant is that number squared. Completing the square uses this pattern in reverse. Given x² + 6x + 5, we write it as (x + 3)² − 9 + 5 = (x + 3)² − 4. We “complete” a perfect square, then adjust the constant so the expression is unchanged.

The method when a = 1

  1. Halve the coefficient of x. Call it p.
  2. Write (x + p)².
  3. Subtract p², because (x + p)² added an extra p².
  4. Add the original constant and simplify.

In short: x² + bx + c = (x + b/2)² − (b/2)² + c.

Worked examples

Example 1: a positive coefficient

Write x² + 8x + 3 in the form (x + p)² + q.

Example 2: a negative coefficient

Write x² − 10x + 7 in completed square form.

Example 3: an odd coefficient

Write x² + 3x − 1 in completed square form.

When a is not 1

If the x² term has a coefficient other than 1, factor it out of the first two terms first, complete the square inside the bracket, then multiply back out.

Example 4: a = 2

Write 2x² + 12x + 5 in the form a(x + p)² + q.

Example 5: a negative a

Write −x² + 4x + 1 in completed square form.

Solving equations by completing the square

Once a quadratic is in completed square form, you can solve it by isolating the bracket and taking square roots. Remember the ±: a square root has a positive and a negative value.

Example 6: solving an equation

Solve x² + 6x − 2 = 0, leaving your answer in surd form.

Finding the turning point

The completed square form shows the turning point of the graph immediately. For y = (x + p)² + q, the turning point is at (−p, q). The squared bracket is never negative, so its smallest value is 0, which happens when x = −p. At that point y = q, the minimum value. If the x² coefficient is negative, the turning point is a maximum instead.

Example 7: a turning point

Find the turning point of y = x² − 4x + 7 and state whether it is a maximum or minimum.

Example 8: sketching a graph

Sketch y = x² + 2x − 3.

Proving an expression is always positive

A favourite exam question asks you to show that an expression such as x² − 6x + 11 is always positive. Complete the square: (x − 3)² + 2. Since (x − 3)² ≥ 0 for every x, the whole expression is at least 2, so it is always positive. Write that final sentence in words; it is where the reasoning mark comes from.

If you complete the square on the general quadratic ax² + bx + c = 0, you get x = (−b ± √(b² − 4ac))/2a. In other words, the quadratic formula is just completing the square done once, in general. That is why the two methods always give the same answers.

Common mistakes

Practice questions

Try each one before opening the answer.

Q1. Write x² + 12x + 30 in completed square form.

Show answer
(x + 6)² − 6.

Q2. Write x² − 2x − 8 in completed square form and find the turning point.

Show answer
(x − 1)² − 9; turning point (1, −9).

Q3. Solve x² − 8x + 9 = 0 by completing the square.

Show answer
(x − 4)² = 7, so x = 4 ± √7.

Q4. Write 3x² − 6x + 1 in the form a(x + p)² + q.

Show answer
3(x − 1)² − 3 + 1 = 3(x − 1)² − 2.

Q5. Show that x² + 4x + 9 > 0 for all x.

Show answer
(x + 2)² + 5 ≥ 5 > 0, so it is always positive.

Frequently asked questions

Is completing the square on GCSE Maths?

Yes, on the Higher tier. It is used to solve quadratics, find turning points and sometimes in proof questions.

Is completing the square in A level Maths?

Yes. It is in the first year and is used heavily, for example to find the centre and radius of a circle from its equation.

Why not always use the quadratic formula?

The formula only solves equations. Completing the square also gives the turning point and the minimum or maximum value, which the formula does not.

Key takeaways