What Is Completing the Square?
Completing the square is an algebraic technique that rewrites a quadratic expression ax² + bx + c into vertex form a(x − h)² + k. The name comes from the geometric idea of literally forming a perfect square from a rectangular area.
a(x − h)² + k instantly tells you the vertex of the parabola — the point (h, k) — and whether it opens upward or downward.Why does this matter? This makes graphing far easier and is essential when solving quadratic equations that do not factor neatly.
Completing the square is also the method used to derive the quadratic formula itself, so understanding it deepens your grasp of where that formula comes from. In calculus and optimization problems, vertex form reveals the maximum or minimum value of a function at a glance.
Whether you are solving equations, graphing parabolas, or deriving formulas, completing the square is a foundational skill every algebra student needs.
Step-by-Step Method
Follow these steps to complete the square for any expression ax² + bx + c.
- Factor out the leading coefficient
If the leading coefficient
ais not 1, factor it out from the first two terms. - Halve and square the x coefficient
Take the coefficient of the
xterm (after factoring), divide it by 2, and square the result. This gives you the number needed to form a perfect square trinomial. - Add and subtract that number
Add and subtract that number inside the expression so the value does not change.
- Rewrite as a binomial squared
Rewrite the perfect-square trinomial as a binomial squared:
(x + d)²wheredis half the coefficient from Step 2. - Simplify constants
Simplify the remaining constant terms.
x² + bx becomes (x + b/2)² − (b/2)². Memorizing this template lets you complete the square quickly on exams.Solver AI can walk you through each step for any specific quadratic — just snap a photo of the problem.
Worked Example — Simple Case
Let's complete the square for x² + 6x + 2 = 0.
Step 1: The leading coefficient is already 1, so no factoring needed.
Step 2: Take the coefficient of x, which is 6. Half of 6 is 3, and 3² = 9.
Step 3: Add and subtract 9: x² + 6x + 9 − 9 + 2 = 0.
Step 4: Rewrite the perfect-square trinomial: (x + 3)² − 9 + 2 = 0.
Step 5: Simplify: (x + 3)² − 7 = 0.
Now solve: (x + 3)² = 7, so x + 3 = ±√7, giving x = −3 ± √7.
x = −3 ± √7The vertex of the parabola y = x² + 6x + 2 is at (−3, −7). Notice how vertex form immediately reveals the minimum value of the quadratic is −7, occurring at x = −3. This approach yields exact answers with radicals, which is often preferred over decimal approximations.
Worked Example — Leading Coefficient Not 1
Now try 2x² + 12x + 5 = 0.
Step 1: Factor out the leading coefficient from the x-terms: 2(x² + 6x) + 5 = 0.
Step 2: Inside the parentheses, take half of 6, which is 3, and square it: 9.
Step 3: Add and subtract 9 inside the parentheses: 2(x² + 6x + 9 − 9) + 5 = 0.
Step 4: Rewrite and distribute: 2(x + 3)² − 18 + 5 = 0.
Step 5: Simplify: 2(x + 3)² − 13 = 0.
Solving: (x + 3)² = 13/2, so x = −3 ± √(13/2).
x = −3 ± √(13/2)A common mistake is forgetting to multiply the subtracted value by the factored-out coefficient (here, 2 × 9 = 18). Always distribute carefully after separating the perfect square from the leftover constant.
If you get tripped up, Solver AI highlights exactly where sign or distribution errors occur so you can fix your technique.
Completing the Square vs Factoring vs the Quadratic Formula
All three methods solve ax² + bx + c = 0, but each has its sweet spot.
| Method | Best For | Drawback | Why |
|---|---|---|---|
| Factoring | Quadratics with integer roots | Many quadratics do not factor over the integers | You can often spot factors mentally — fastest when coefficients are small and roots appear integer-friendly. |
| Quadratic Formula | Every quadratic equation | Can feel mechanical and does not reveal the structure of the expression | A reliable fallback. Use when speed matters and you just need the roots. |
| Completing the Square | Producing vertex form; equations involving parameters | More steps than factoring | Bridges the gap: works for every quadratic (the quadratic formula is derived from it), and produces vertex form, which is invaluable for graphing and optimization. |
In practice, strong algebra students are fluent in all three and choose the tool that fits the problem. Understanding completing the square also prepares you for techniques you will encounter in precalculus and calculus.
Finding the Vertex with Completing the Square
One of the most practical applications of completing the square is finding the vertex of a parabola. Given y = ax² + bx + c, completing the square converts it to y = a(x − h)² + k, where the vertex is (h, k).
a > 0, the parabola opens upward and the vertex is the minimum point. If a < 0, it opens downward and the vertex is the maximum.Find the vertex of y = −x² + 4x + 1.
Factor out −1: y = −(x² − 4x) + 1.
Half of −4 is −2, squared is 4.
Add and subtract: y = −(x² − 4x + 4 − 4) + 1 = −(x − 2)² + 4 + 1 = −(x − 2)² + 5.
The vertex is (2, 5) and it is a maximum because a = −1 < 0. This means the greatest value the function ever reaches is 5.
Vertex = (2, 5), maximumOptimization problems in physics, economics, and engineering regularly require finding maximum or minimum values of quadratic models — and completing the square is the direct route to those answers. Try entering any quadratic into Solver AI to see the vertex form and graph instantly.