Completing the Square

Definitionnoun phrase

What is completing the square?

Completing the square is a method that rewrites x2 + bx as a perfect square by adding (b2)2: x2 + bx + (b2)2 = (x + b2)2. It is used to solve quadratic equations, to write a quadratic in vertex form, and to derive the quadratic formula.

In Spanish
completar el cuadrado
Also called
complete the square, completing the square method
Grade level
Algebra 1
Algebra 1Algebra 2PrecalculusCCSS HSA-REI.B.4.aCCSS HSA-SSE.B.3.bSATACTACCUPLACER

Completing the Square in a picture

Completing the square with area tilesAn x by x square and two 3 by x strips, which together are x squared + 6x, form a square with one corner missing. The missing 3 by 3 corner holds 9 unit squares. Adding 9 makes a full square with side x + 3, so x squared + 6x + 9 = (x + 3) squared.x²3x3x9x3x3missingcornerx² + 6x + 9 = (x + 3)²half of 6 is 3, and 3² = 9 completes the square
x2 + 6x is a square with a 3 by 3 corner missing. Adding 9 fills it, making a square of side x + 3.

Formal definition and notation

Completing the square transforms a quadratic expression ax2 + bx + c into the form a(x − h)2 + k, where h = −b2a and k = c − b24a. For an equation, it produces an equivalent equation (x − p)2 = q with the same solutions, which is then solved by taking square roots: x = p ± √q when q ≥ 0.

Symbol Read it as Meaning
(b2)2 b over 2, squared the number that completes x2 + bx to a perfect square
(x − p)2 = q x minus p, squared, equals q the completed-square form of an equation
a(x − h)2 + k a times x minus h squared plus k vertex form, the result for a function

Key facts

  • The added number is always positive, (b2)2, even when b is negative: for x2 − 10x, add 25.
  • The sign inside the binomial matches the sign of b: x2 − 10x + 25 = (x − 5)2.
  • The method works on every quadratic, including ones that do not factor.
  • Completing the square on ax2 + bx + c = 0 in general gives the quadratic formula.
  • In vertex form the vertex can be read off: (x − 4)2 − 5 has vertex (4, −5).

Steps to solve by completing the square

Steps to solve by completing the square
x2 + bx = c ⇒ (x + b2)2 = c + (b2)2
1.
If a ≠ 1, divide every term by a. Move the constant to the right side.
2.
Take half of b, square it, and add it to both sides.
3.
Write the left side as (x + b2)2.
4.
Take the square root of both sides (use ±) and solve for x.

Adding the same number to both sides keeps the equation balanced. For a function, add and subtract it on the same side instead.

Completing the Square examples, step by step

Example 1: Find the missing term

Warm-up

What number completes the square for x2 + 14x? Write the perfect square.

  1. Half of 14 is 7.
  2. Square it: 72 = 49.
  3. x2 + 14x + 49 = (x + 7)2.

Answer: Add 49: x2 + 14x + 49 = (x + 7)2.

Example 2: Solve an equation

Core

Solve x2 − 10x + 18 = 0 by completing the square.

  1. Move the constant: x2 − 10x = −18.
  2. Half of −10 is −5; (−5)2 = 25. Add 25 to both sides: x2 − 10x + 25 = 7.
  3. Write as a square: (x − 5)2 = 7.
  4. Square roots: x − 5 = ±√7, so x = 5 ± √7.

Answer: x = 5 + √7 or x = 5 − √7 (about 7.65 and 2.35).

Example 3: Vertex form with a not 1

Test-style

Write y = 2x2 + 12x + 11 in vertex form and give the vertex.

  1. Factor 2 from the x-terms: y = 2(x2 + 6x) + 11.
  2. Inside, add and subtract 9: y = 2(x2 + 6x + 9 − 9) + 11.
  3. y = 2(x + 3)2 − 18 + 11.
  4. y = 2(x + 3)2 − 7.

Answer: y = 2(x + 3)2 − 7, with vertex (-3, -7).

Common mistakes

✗ Mistakex2 + 8x = 3. Add 16 to the left only: (x + 4)2 = 3.
✓ InsteadAdd 16 to both sides: (x + 4)2 = 19.

An equation stays true only if both sides change the same way.

✗ MistakeFor x2 + 6x, add 62 = 36.
✓ InsteadAdd (62)2 = 9: x2 + 6x + 9 = (x + 3)2.

Halve b before squaring. (x + 3)2 has middle term 2 · 3x = 6x, which is why half of 6 is used.

✗ Mistake3x2 + 12x = 9: add (122)2 = 36.
✓ InsteadDivide by 3 first: x2 + 4x = 3, add 4: (x + 2)2 = 7.

The (b2)2 rule only works when the coefficient of x2 is 1.

Not to be confused with

Completing the Squarevs.Perfect square trinomial

A perfect square trinomial, such as x2 + 6x + 9, is the result. Completing the square is the process of adding the 9 to make one.

Completing the Squarevs.Quadratic formula

The quadratic formula is completing the square done once in general. Completing the square works step by step on a specific equation and also gives vertex form.

Quick check: 3 questions

Question 1 of 3

Which number completes the square for x2 − 18x?

Show answer and explanation

Answer: B. Half of −18 is −9, and (−9)2 = 81. The added number is always positive, so −81 is wrong; 9 forgot to square; 324 squared 18 without halving.

Question 2 of 3

Completing the square turns x2 + 4x − 1 = 0 into which equation?

Show answer and explanation

Answer: D. x2 + 4x = 1; add 4 to both sides: (x + 2)2 = 5. The first added 4 to the left only, the second used b instead of b2, and the third has the wrong sign inside.

Question 3 of 3

What is the vertex of y = x2 − 6x + 2?

Show answer and explanation

Answer: A. x2 − 6x + 9 − 9 + 2 = (x − 3)2 − 7, so the vertex is (3, −7). (−3, −7) misread the sign, (3, 2) forgot to subtract the 9, and (6, 2) did not complete the square.

Completing the Square: frequently asked questions

Why is it called completing the square?

Because of the area picture. x2 + bx can be drawn as an x by x square plus two strips of width b2, which form a square with one corner missing. The missing corner has area (b2)2. Adding it literally completes the square, whose side is x + b2.

When should you complete the square instead of factoring?

Complete the square when you need vertex form, when you want the maximum or minimum of a quadratic, or when the equation does not factor and the x coefficient is even, which keeps the numbers simple. Factoring is faster when it works. The quadratic formula is often easier when a is not 1.

What if the coefficient of x squared is not 1?

Make it 1 first. For an equation, divide every term by a. For a function you want in vertex form, factor a out of the x2 and x terms only, complete the square inside the parentheses, and remember that the number you subtract gets multiplied by a when it leaves the parentheses.

Practice and tools

Sources

  1. OpenStax, Elementary Algebra 2e, 10.2 Solve Quadratic Equations by Completing the Square
  2. Common Core State Standards, High School Algebra: Reasoning with Equations and Inequalities (HSA-REI.B.4.a)
  3. Common Core State Standards, High School Algebra: Seeing Structure in Expressions (HSA-SSE.B.3.b)

Updated November 2026·Reviewed by the Effortless Math team·Standards: CCSS HSA-REI.B.4.a, CCSS HSA-SSE.B.3.b

Cite this entry

Effortless Math Team. “Completing the Square.” Effortless Math Dictionary. Updated November 2026. https://www.effortlessmath.com/math-dictionary/completing-the-square/

Flashcard

TermCompleting the Squareadd (b2)2
DefinitionAdd half of b, squared, to make a perfect square. x2 + 6x + 9 = (x + 3)2. Used for solving and vertex form.
Study the full deck

Browse all terms in the Math Dictionary · More algebra terms · Random term