Completing the Square Formula

Completing the square is a technique for rewriting ax^2 + bx + c in vertex form a(x - h)^2 + k by adding and subtracting the value (b/2a)^2 to create a perfect square trinomial.

The Formula

x2+bx+c=(x+b2)2−b24+c Add and subtract (b2)2 to complete the square.

Ask yourself: Am I manufacturing a perfect-square trinomial by adding and subtracting the same value to keep it equal?

Quick example

x2+6x+2=(x2+6x+9)−9+2=(x+3)2−7
Vertex form with vertex (−3,−7).

Notation

(b2)2 is the value added and subtracted. The result is a perfect square (x+b2)2 plus a constant.

What this formula means

A technique for rewriting ax2+bx+c in vertex form a(x−h)2+k by adding and subtracting the value (b2a)2 to create a perfect square trinomial.

Completing the square is like finishing a jigsaw that is missing one corner piece: the x2 tile and two strips almost form a square, and (b2)2 is the missing corner. You borrow that piece, so you have to give it back by subtracting it. The tile picture works for positive b; for negative b the algebra is identical, but the drawing has to cut strips away.

Formal view

x2+bx+c=(x+b2)2+(c−b24). More generally, ax2+bx+c=a(x+b2a)2+c−b24a, valid ∀a≠0.

Worked examples

Example 1

medium
Rewrite x2+6x+2 in vertex form by completing the square.
Show solution

Answer

(x+3)2−7

First step

1.
Take half of the coefficient of x: 62=3.

See the full worked solution + why-it-works coaching

SetupKey insightWhy it worksCommon pitfallConnection

Free: full solutions on 3 topics a day. No card.

Every topic, every day: the Family plan

Example 2

hard
Solve x2−4x−5=0 by completing the square.

Example 3

medium
Rewrite x2−10x+18 in vertex form by completing the square.

Common mistakes

  • Adding (b2)2 without also subtracting it - you must keep the expression equal; add and subtract the same amount.
  • Adding (b/2)2 without first factoring out a leading coefficient a≠1 — factor out a, complete the square inside, then distribute.
  • Halving b but not squaring it - the value added is the SQUARE of half the middle coefficient.

Why this formula matters

It is the one method that works on every quadratic: it finds the vertex of x2+6x+2 and solves x2+6x+2=0 even though neither factors nicely. Done once on ax2+bx+c=0 in general, it produces the quadratic formula itself. Later the same move turns a scrambled circle equation into one that shows the centre and the radius.

Frequently asked questions

What is the Completing the Square formula?

A technique for rewriting ax2+bx+c in vertex form a(x−h)2+k by adding and subtracting the value (b2a)2 to create a perfect square trinomial.

How do you use the Completing the Square formula?

Complete the square when you need vertex form from standard form, when a quadratic must be solved but will not factor over the integers, or when an equation with x2 and x terms (and maybe y2 and y terms) must be put into a recognizable shape, such as a circle. If it factors easily and you only need roots, factor. For the roots of a messy quadratic, the quadratic formula is usually quicker. If the quadratic is already a(x−h)2+k, just read it.

What do the symbols mean in the Completing the Square formula?

(b2)2 is the value added and subtracted. The result is a perfect square (x+b2)2 plus a constant.

Why is the Completing the Square formula important in Math?

It is the one method that works on every quadratic: it finds the vertex of x2+6x+2 and solves x2+6x+2=0 even though neither factors nicely. Done once on ax2+bx+c=0 in general, it produces the quadratic formula itself. Later the same move turns a scrambled circle equation into one that shows the centre and the radius.

What do students get wrong about Completing the Square?

The procedure for completing the square is the easy part; the trap is adding (b2)2 without also subtracting it. Asking "Am I manufacturing a perfect-square trinomial by adding and subtracting the same value to keep it equal?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

What should I learn before the Completing the Square formula?

Before studying the Completing the Square formula, you should understand: quadratic standard form, expressions.

The full guide

This formula is covered in depth in Quadratic Equations: Factoring, Completing the Square, and the Quadratic Formula.