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.
Completing the Square in a picture
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
- 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
What number completes the square for x2 + 14x? Write the perfect square.
- Half of 14 is 7.
- Square it: 72 = 49.
- x2 + 14x + 49 = (x + 7)2.
Answer: Add 49: x2 + 14x + 49 = (x + 7)2.
Example 2: Solve an equation
Solve x2 − 10x + 18 = 0 by completing the square.
- Move the constant: x2 − 10x = −18.
- Half of −10 is −5; (−5)2 = 25. Add 25 to both sides: x2 − 10x + 25 = 7.
- Write as a square: (x − 5)2 = 7.
- 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
Write y = 2x2 + 12x + 11 in vertex form and give the vertex.
- Factor 2 from the x-terms: y = 2(x2 + 6x) + 11.
- Inside, add and subtract 9: y = 2(x2 + 6x + 9 − 9) + 11.
- y = 2(x + 3)2 − 18 + 11.
- y = 2(x + 3)2 − 7.
Answer: y = 2(x + 3)2 − 7, with vertex (-3, -7).
Common mistakes
An equation stays true only if both sides change the same way.
Halve b before squaring. (x + 3)2 has middle term 2 · 3x = 6x, which is why half of 6 is used.
The (b2)2 rule only works when the coefficient of x2 is 1.
Not to be confused with
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.
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
Which number completes the square for x2 − 18x?
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.Show answer and explanation
Completing the square turns x2 + 4x − 1 = 0 into which equation?
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.Show answer and explanation
What is the vertex of y = x2 − 6x + 2?
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.Show answer and explanation
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
- OpenStax, Elementary Algebra 2e, 10.2 Solve Quadratic Equations by Completing the Square
- Common Core State Standards, High School Algebra: Reasoning with Equations and Inequalities (HSA-REI.B.4.a)
- 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
Browse all terms in the Math Dictionary · More algebra terms · Random term