Completing the Square Notes

Published on: November 24, 2026

These Completing the Square Notes explain how to rewrite a quadratic expression as a number times a bracket squared, plus a number on its own, with the working shown line by line. If the x squared term has a number in front, that number is taken out of the x squared and x terms first. The number in front of x is then halved and squared, and that square is added and taken away inside the bracket. The first three terms then make a perfect square, and the numbers left over are tidied into one.

Step-by-step method

  1. Set up the problem.
  2. Write the completing the square formula.
  3. Substitute a, b and c into the formula.
  4. Work out the numbers.

Depending on the expression, some of these steps are not needed, so they are skipped.

Formula: Completing the Square

This formula rewrites any quadratic ax² + bx + c as a bracket squared plus a number. Halve b/a to get the number in the bracket, then work out what is left over.

\(ax^{2} + bx + c = a\left(x + \frac{b}{2a}\right)^{2} + c - \frac{b^{2}}{4a}\)

Useful Tips to Remember

Make the coefficient of \(x^2\) equal to 1 first, then take half of the coefficient of \(x\), square it, and add and subtract it. The bracket becomes \(\left(x + \frac{b}{2}\right)^2\), with the half coefficient inside the bracket. When solving an equation, taking a square root gives both a positive and a negative answer. The completed form shows the vertex of the parabola directly.

Required knowledge

Where Is Completing the Square Used?

Completing the square rewrites a quadratic in the form \(a(x - h)^2 + k\), which shows its turning point straight away. That makes it the method for finding the highest or lowest value of anything that follows a quadratic pattern, such as the height of a thrown ball or the price that gives the most profit. It is also how the quadratic formula itself is proved, and it is used to find the centre and radius of a circle from its equation. In physics and engineering, it rewrites equations into forms that are easier to read and solve.

  • Finding the maximum height of a thrown ball or a water jet
  • Finding the price or size that gives the most profit or the least cost
  • Finding the centre and radius of a circle from its equation
  • Deriving the quadratic formula
  • Sketching parabolas by locating the vertex

Completing the Square Practice Problems

Example 1 completes the square for \(x^2 + 8x + 7\), and Example 2 handles \(x^2 - 6x + 2\). Example 3, \(x^2 + 5x + 3\), has an odd middle coefficient, so halving it gives a fraction, and Example 4, \(3x^2 + 6x - 2\), needs the leading coefficient taken out first. Try each one yourself, then compare each step.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(x^{2} + 8x + 7\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the completing the square formula.
  3. Substitute a, b and c into the formula.
  4. Work out the numbers.

Depending on the expression, some of these steps are not needed, so they are skipped.

Formula

Formula: Completing the Square

This formula rewrites any quadratic ax² + bx + c as a bracket squared plus a number. Halve b/a to get the number in the bracket, then work out what is left over.

\(ax^{2} + bx + c = a\left(x + \frac{b}{2a}\right)^{2} + c - \frac{b^{2}}{4a}\)

Step 1

Step 1 - Set up the problem.

In this problem: The quadratic is \(x^{2} + 8x + 7\), so \(a = 1\), \(b = 8\) and \(c = 7\).

\(x^{2} + 8x + 7\)

Step 2

Step 2 - Write the completing the square formula.

In this problem: Completing the square writes a quadratic as a number times a bracket squared, plus a number on its own.

\(ax^{2} + bx + c = a\left(x + \frac{b}{2a}\right)^{2} + c - \frac{b^{2}}{4a}\)

Step 3

Step 3 - Substitute a, b and c into the formula.

In this problem: Put \(a = 1\), \(b = 8\) and \(c = 7\) into the formula.

\(x^{2} + 8x + 7 = \left(x + \frac{8}{2 \cdot 1}\right)^{2} + 7 - \frac{8^{2}}{4 \cdot 1}\)

Step 4

Step 4 - Work out the numbers.

In this problem: \(\frac{b}{2a}\) is \(4\) and \(c - \frac{b^{2}}{4a}\) is \(-9\).

\(\left(x + \frac{8}{2 \cdot 1}\right)^{2} + 7 - \frac{8^{2}}{4 \cdot 1} = \left(x + 4\right)^{2} - 9\)

Final Answer

\(x^{2} + 8x + 7 = \left(x + 4\right)^{2} - 9\)
See Example 2 Hide Example 2

Problem

\(x^{2} - 6x + 2\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the completing the square formula.
  3. Substitute a, b and c into the formula.
  4. Work out the numbers.

Depending on the expression, some of these steps are not needed, so they are skipped.

Formula

Formula: Completing the Square

This formula rewrites any quadratic ax² + bx + c as a bracket squared plus a number. Halve b/a to get the number in the bracket, then work out what is left over.

\(ax^{2} + bx + c = a\left(x + \frac{b}{2a}\right)^{2} + c - \frac{b^{2}}{4a}\)

Step 1

Step 1 - Set up the problem.

In this problem: The quadratic is \(x^{2} - 6x + 2\), so \(a = 1\), \(b = -6\) and \(c = 2\).

\(x^{2} - 6x + 2\)

Step 2

Step 2 - Write the completing the square formula.

In this problem: Completing the square writes a quadratic as a number times a bracket squared, plus a number on its own.

\(ax^{2} + bx + c = a\left(x + \frac{b}{2a}\right)^{2} + c - \frac{b^{2}}{4a}\)

Step 3

Step 3 - Substitute a, b and c into the formula.

In this problem: Put \(a = 1\), \(b = -6\) and \(c = 2\) into the formula.

\(x^{2} - 6x + 2 = \left(x + \frac{-6}{2 \cdot 1}\right)^{2} + 2 - \frac{\left(-6\right)^{2}}{4 \cdot 1}\)

Step 4

Step 4 - Work out the numbers.

In this problem: \(\frac{b}{2a}\) is \(-3\) and \(c - \frac{b^{2}}{4a}\) is \(-7\).

\(\left(x + \frac{-6}{2 \cdot 1}\right)^{2} + 2 - \frac{\left(-6\right)^{2}}{4 \cdot 1} = \left(x - 3\right)^{2} - 7\)

Final Answer

\(x^{2} - 6x + 2 = \left(x - 3\right)^{2} - 7\)
See Example 3 Hide Example 3

Problem

\(x^{2} + 5x + 3\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the completing the square formula.
  3. Substitute a, b and c into the formula.
  4. Work out the numbers.

Depending on the expression, some of these steps are not needed, so they are skipped.

Formula

Formula: Completing the Square

This formula rewrites any quadratic ax² + bx + c as a bracket squared plus a number. Halve b/a to get the number in the bracket, then work out what is left over.

\(ax^{2} + bx + c = a\left(x + \frac{b}{2a}\right)^{2} + c - \frac{b^{2}}{4a}\)

Step 1

Step 1 - Set up the problem.

In this problem: The quadratic is \(x^{2} + 5x + 3\), so \(a = 1\), \(b = 5\) and \(c = 3\).

\(x^{2} + 5x + 3\)

Step 2

Step 2 - Write the completing the square formula.

In this problem: Completing the square writes a quadratic as a number times a bracket squared, plus a number on its own.

\(ax^{2} + bx + c = a\left(x + \frac{b}{2a}\right)^{2} + c - \frac{b^{2}}{4a}\)

Step 3

Step 3 - Substitute a, b and c into the formula.

In this problem: Put \(a = 1\), \(b = 5\) and \(c = 3\) into the formula.

\(x^{2} + 5x + 3 = \left(x + \frac{5}{2 \cdot 1}\right)^{2} + 3 - \frac{5^{2}}{4 \cdot 1}\)

Step 4

Step 4 - Work out the numbers.

In this problem: \(\frac{b}{2a}\) is \(\frac{5}{2}\) and \(c - \frac{b^{2}}{4a}\) is \(- \frac{13}{4}\).

\(\left(x + \frac{5}{2 \cdot 1}\right)^{2} + 3 - \frac{5^{2}}{4 \cdot 1} = \left(x + \frac{5}{2}\right)^{2} - \frac{13}{4}\)

Final Answer

\(x^{2} + 5x + 3 = \left(x + \frac{5}{2}\right)^{2} - \frac{13}{4}\)
See Example 4 Hide Example 4

Problem

\(3x^{2} + 6x - 2\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the completing the square formula.
  3. Substitute a, b and c into the formula.
  4. Work out the numbers.

Depending on the expression, some of these steps are not needed, so they are skipped.

Formula

Formula: Completing the Square

This formula rewrites any quadratic ax² + bx + c as a bracket squared plus a number. Halve b/a to get the number in the bracket, then work out what is left over.

\(ax^{2} + bx + c = a\left(x + \frac{b}{2a}\right)^{2} + c - \frac{b^{2}}{4a}\)

Step 1

Step 1 - Set up the problem.

In this problem: The quadratic is \(3x^{2} + 6x - 2\), so \(a = 3\), \(b = 6\) and \(c = -2\).

\(3x^{2} + 6x - 2\)

Step 2

Step 2 - Write the completing the square formula.

In this problem: Completing the square writes a quadratic as a number times a bracket squared, plus a number on its own.

\(ax^{2} + bx + c = a\left(x + \frac{b}{2a}\right)^{2} + c - \frac{b^{2}}{4a}\)

Step 3

Step 3 - Substitute a, b and c into the formula.

In this problem: Put \(a = 3\), \(b = 6\) and \(c = -2\) into the formula.

\(3x^{2} + 6x - 2 = 3\left(x + \frac{6}{2 \cdot 3}\right)^{2} + \left(-2\right) - \frac{6^{2}}{4 \cdot 3}\)

Step 4

Step 4 - Work out the numbers.

In this problem: \(\frac{b}{2a}\) is \(1\) and \(c - \frac{b^{2}}{4a}\) is \(-5\).

\(3\left(x + \frac{6}{2 \cdot 3}\right)^{2} + \left(-2\right) - \frac{6^{2}}{4 \cdot 3} = 3\left(x + 1\right)^{2} - 5\)

Final Answer

\(3x^{2} + 6x - 2 = 3\left(x + 1\right)^{2} - 5\)

Calculator and Practice Mode