Algebra 1 · Algebra 2 · Grades 9, 10
Completing the Square, Step by Step
Quick answer
Completing the square rewrites a quadratic as a perfect square plus a constant. Take half the coefficient of x, square it, and add that number to both sides. For x squared plus 6x = 7, half of 6 is 3 and 3 squared is 9, so add 9 to both sides to get (x + 3) squared = 16, giving x = 1 or x = -7.
What you'll learn
- Complete the square to solve a quadratic equation
- Explain geometrically why the method is called completing the square
- Rewrite a quadratic in vertex form to find its maximum or minimum
What completing the square does
Completing the square rewrites a quadratic so the variable appears only once, inside a squared bracket:
That matters because once the variable appears once, you can undo the square directly and solve. It is the same “isolate the variable” goal you have had since one-step equations, and this is the detour that gets you there.
Why it is called completing the square
The name is literal. Drawing the picture shows you where the algebra comes from.
Think of as area. Draw a square with side — area . Attach the as two rectangles of width along two adjacent sides, each of area .
You now have an L-shape. It is almost a bigger square with side , but the corner is missing. That corner is a square, area .
Adding completes the square. The half-of- rule comes straight from the width of those rectangles: you split into two strips of , so the corner is .
The algebra behind the rule
Compare the middle term with : you need , so . The constant you must add is .
Take half of the coefficient of , square it, and add it to both sides.
How to complete the square
- Move the constant to the right side.
- If the leading coefficient is not , divide every term by it.
- Take half the coefficient of , square it, add to both sides.
- Factor the left side as a perfect square.
- Take the square root of both sides — remember .
- Solve for .
Worked examples
Common mistakes
Where the quadratic formula comes from
Completing the square on the general equation produces the quadratic formula — the same five steps, done once with letters instead of numbers:
That is the payoff. Do this once symbolically and you never have to do it again numerically.
Practice problems
-
What number completes the square for ?
Hint
Half the coefficient of , then square it.
Answer
Full solution
Half of is , and . So .
-
Solve by completing the square.
Answer
or
Full solution
. Half of is , .
, so and .
or . Check: ✓
-
Solve .
Answer
Full solution
. Half of is , .
, so and .
.
-
Solve .
Hint
Half of is . Expect fractions.
Answer
Full solution
. Add to both sides: .
, so .
-
Solve .
Hint
Divide through by before completing the square.
Answer
or
Full solution
Divide by : , so .
Half of is , : , so .
or . Check: ✓
-
Write in vertex form.
Answer
Full solution
Half of is , . Add and subtract :
. Vertex .
-
What is the minimum value of , and where does it occur?
Answer
Minimum at
Full solution
Half of is , .
.
Since , the minimum is , at .
-
Solve by completing the square. What happens?
Hint
Complete the square as usual and look at the right-hand side.
Answer
No real solutions
Full solution
. Add : .
A real number squared is never negative, so there are no real solutions. The parabola sits entirely above the -axis.
Frequently asked questions
Why do you take half of b and then square it?
Expanding (x + k) squared gives x squared plus 2kx plus k squared. Matching the middle term 2kx to bx means k is half of b, and the constant you need is k squared. So halving b and squaring is not a trick — it is reading off the value of k that makes the trinomial a perfect square.
When should I complete the square instead of using the quadratic formula?
Use the quadratic formula when you only need the roots. Complete the square when you need vertex form, when you are finding a maximum or minimum, or when deriving a result. The quadratic formula is itself completing the square done once in general.
Key terms in this lesson
- Constant
- A constant is a term with a fixed value and no variable attached. In 3x + 7, the constant is 7, because it stays the same whatever x turns out to be.
- Quadratic equation
- A quadratic equation is one that can be written as ax squared plus bx plus c = 0, with a not equal to zero. The squared term is what makes it quadratic rather than linear.
Standards alignment
This lesson covers the following Common Core State Standards for Mathematics.
- CCSS.MATH.CONTENT.HSA.REI.B.4aReasoning with Equations and InequalitiesUse the method of completing the square to transform any quadratic equation in x into an equation of the form (x - p)² = q that has the same solutions. Derive the quadratic formula from this form.