Skip to content
One hour with George, then a written plan the next working day. Book yours.

The completing the square formula

To complete the square on x² + bx, add (b ÷ 2)² and the expression becomes (x + b ÷ 2)². That single added number is the whole formula. Use it to rewrite any quadratic so that a squared binomial sits on one side, and then undo the square with a square root.

For students and parents planning test prep or coursework: one hour with George Li, one to one by video, is $180, $200 or $160, by subject. You leave with a written plan within one working day.

Book your first session
Completing the square on x² + bx, for six values of b
Expressionbb ÷ 2Number to addBecomes
x² + 4x424(x + 2)²
x² + 6x639(x + 3)²
x² + 8x8416(x + 4)²
x² − 10x−10−525(x − 5)²
x² − 6x−6−39(x − 3)²
x² + 3x31.52.25(x + 1.5)²

The pattern needs a leading coefficient of 1. With another leading coefficient, divide through first.

The added number is (b ÷ 2) squared, from the perfect square trinomial pattern in the OpenStax section cited above; each row was expanded back by hand to confirm it

Why does adding (b ÷ 2)² make a perfect square?

Multiply out (x + k)² and you get x² + 2kx + k². The middle term is 2k times x, so when the middle term of your expression is bx, the number k must be b ÷ 2. The last term of the square is k², which is why you add (b ÷ 2)². Nothing else is going on. You are reading the pattern of a squared binomial backward.

What are the steps?

  1. Move the constant to the right side, so the left side holds only the x² and x terms.
  2. If the number in front of x² is not 1, divide every term on both sides by it.
  3. Take half of the coefficient of x, square it, and add it to both sides.
  4. Write the left side as a squared binomial.
  5. Take the square root of both sides, remembering the plus and minus, and solve for x.

Adding the number to only one side is the usual slip. An equation stays true only if you do the same thing to both sides.

Worked example: solve x² + 8x + 5 = 0.

  1. Move the 5: x² + 8x = −5.
  2. Half of 8 is 4, and 4 squared is 16. Add 16 to both sides: x² + 8x + 16 = 11.
  3. The left side is (x + 4)², so (x + 4)² = 11.
  4. Take square roots: x + 4 = ±√11.
  5. Subtract 4: x = −4 + √11 or x = −4 − √11.

Answer: x = −4 ± √11, which is about −0.683 and −7.317.

Method: checked by substituting x = −4 + √11 into the original equation, which gives 0.

What if the number in front of x² is not 1?

Divide first. The pattern needs a leading 1, so divide every term by the leading coefficient before you find the number to add.

Worked example: solve 3x² + 12x − 6 = 0.

  1. Divide every term by 3: x² + 4x − 2 = 0.
  2. Move the constant: x² + 4x = 2.
  3. Half of 4 is 2, and 2 squared is 4. Add 4 to both sides: x² + 4x + 4 = 6.
  4. Factor the left side: (x + 2)² = 6.
  5. Take square roots and subtract 2: x = −2 ± √6.

Answer: x = −2 ± √6, which is about 0.449 and −4.449.

Method: both roots were substituted into 3x² + 12x − 6 and returned 0 to rounding.

How does it give you the vertex of a parabola?

Completing the square on a parabola's equation produces vertex form, y = (x − h)² + k, where (h, k) is the vertex. For this you add the number and then subtract it on the same side, because the right side holds y and must not change.

Worked example: find the vertex of y = x² − 6x + 5.

  1. Half of −6 is −3, and −3 squared is 9.
  2. Write y = (x² − 6x + 9) − 9 + 5. The added 9 is cancelled by the subtracted 9.
  3. Simplify: y = (x − 3)² − 4.

Answer: the vertex is (3, −4). Check: at x = 3 the original gives 9 − 18 + 5, which is −4.

Method: vertex form compared with the original at x = 3, and with the roots 1 and 5 from factoring.

This is the same move that rewrites the equation of a circle in standard form, and that is where the technique shows up in higher math. For the parabola route in more detail, see the guide on vertex form versus standard form.

When should you complete the square instead of using another method?

Students have four ways in: a direct square root, factoring, this method, and the quadratic formula. Take square roots when there is no x term. Factor when the numbers cooperate. Complete the square when the leading coefficient is 1 and the x coefficient is even, because the arithmetic is light, and when the question asks for vertex form. The quadratic formula is completing the square done once for every quadratic, so it works when nothing else is convenient. On a test with a calculator, many students go straight to the formula. Knowing the square-completing route still matters, because it is how you read a vertex and how you handle circles.

What mistakes should you watch for?

  • Adding the new number to one side only.
  • Taking half of b but forgetting to square it.
  • Dropping the plus and minus after the square root. A quadratic can have two solutions.
  • Forgetting to divide through when the leading coefficient is not 1.
  • Using the sign wrong in the binomial. The sign inside the binomial is the sign of b.

When does a tutor help?

A tutor helps when algebra slips are costing points on timed tests, because this method has several places to lose a sign. A session can work a short set of quadratics each way and compare answers. See the SAT® math tutoring page, the high school courses page, the packages, or book a first session.

Common questions

What is the completing the square formula?

For x² + bx, add (b ÷ 2)² to make the perfect square (x + b ÷ 2)².

Do you add the number to both sides?

Yes, when you are solving an equation. When you are rewriting an expression such as a parabola's right side, add and subtract the same number instead.

What if the leading coefficient is not 1?

Divide every term by it first, then complete the square on what remains.

Does it work on every quadratic?

Yes. It handles every quadratic equation, and the quadratic formula comes from applying it to ax² + bx + c = 0.

What is it used for besides solving equations?

It gives the vertex of a parabola and puts the equation of a circle in standard form.

Sources