Completing the Square Calculator
Solve ax² + bx + c = 0 by completing the square. See the vertex form a(x − h)² + k, the 9-step method, and the exact roots with decimals.
What completing the square means
To complete the square is to rewrite a quadratic so its variable terms form a single squared binomial: . This is called vertex form, because is the vertex of the parabola . Once the equation is in this shape, solving for is just arithmetic — no factoring required.
The 9-step method
- Write the equation as .
- If , divide every term by .
- Move the constant term to the right side.
- Take half of the -coefficient and square it: .
- Add that value to both sides.
- Write the left side as a perfect square, .
- Take the square root of both sides — remember .
- Move the remaining constant to isolate .
- Simplify: the gives the two roots.
Worked example — a ≠ 1
Solve .
- Divide by : .
- Move the constant: .
- Half the -coefficient, squared: .
- Add 9 to both sides: .
- Perfect square: .
- Square root both sides: .
- Isolate : or .
The vertex form is , so the vertex of this parabola is — and it matches the roots you would get from the Quadratic Formula calculator for the same equation.
Worked example — no linear term
Solve . There is no term, so steps 3–6 are trivial: , so . Vertex form is simply , with vertex .
Why (b/2)² completes the square
Expand . Compare that to — the only thing missing is the constant . Adding it turns the expression into a perfect square, which is exactly why the method is called "completing" the square.
Common mistakes
- Forgetting to divide by first when .
- Adding to only one side — it must go on both sides to keep the equation balanced.
- Squaring before halving — it is , not .
- Dropping the when taking the square root, which loses one of the two roots.
Vertex form and the quadratic formula
Vertex form directly gives the vertex of the parabola — useful for graphing, and for optimization problems (maximum height, minimum cost, and so on). It is also where the quadratic formula comes from: complete the square on the general equation and solving for reproduces the formula exactly, with and .
Where this shows up
Completing the square is the standard route to a parabola's vertex — the highest or lowest point of anything modeled by a quadratic: projectile height, profit curves, or the minimum of a cost function. It is also the technique behind deriving the general formula for solving any quadratic equation.
Frequently asked questions
- What does 'completing the square' mean?
- It means rewriting so the variable terms form a perfect square binomial, . Once the left side is a single squared term, you can take the square root of both sides and solve directly for .
- Why do you add (b/2a)²?
- Expanding gives . So is only missing the constant to become a perfect square — adding it "completes" the square. You must add it to both sides of the equation to keep it balanced.
- What do h and k mean in vertex form?
- Vertex form is . The point is the vertex of the parabola — its minimum point when , or maximum when . Completing the square is the standard way to find it.
- Is completing the square the same as the quadratic formula?
- Yes. Completing the square on the general equation and solving for produces exactly the quadratic formula, . The formula is this method done once, symbolically, for every quadratic.
- What if a is not 1?
- Divide every term by first, so the coefficient is 1 — this is step 2 of the method. For example becomes before completing the square.
- What happens when a = 0?
- If the term disappears and the equation is linear (), not quadratic — there is nothing to complete the square with. This calculator reports that case as "not quadratic"; enter a nonzero .