Completing the square calculator
Type the coefficients of a quadratic to complete the square step by step. You get the vertex form, the vertex and the exact solutions, with fractions kept exact, and a graph of the parabola.
- Start with y = x² + 6x + 5
- Take half of the x coefficient and square it: (6 ÷ 2)² = (3)² = 9
- Add and subtract 9 inside the bracket: y = (x² + 6x + 9 − 9) + 5
- The first three terms are a perfect square: x² + 6x + 9 = (x + 3)²
- Multiply out the leftover and combine: 5 − 1·9 = −4
- So y = (x + 3)² − 4
- Setting y = 0: (x + 3)² = 4, so x = −5 −1
How to use it
- 1Write your quadratic as ax² + bx + c and type a, b and c. For x² + 6x + 5, that is 1, 6 and 5.
- 2Follow the steps from the original equation to vertex form.
- 3Read the vertex and the solutions from the results.
How to complete the square
Take x² + 6x + 5:
- Take half the coefficient of x and square it: half of 6 is 3, and 3² = 9.
- Add and subtract it: x² + 6x + 9 − 9 + 5.
- The first three terms are a perfect square: (x + 3)² − 9 + 5.
- Combine the numbers: (x + 3)² − 4.
When a isn’t 1, factor it out of the x terms first. The completing the square guide works through this case, along with why the method works.
Solving an equation by completing the square
From (x + 3)² − 4 = 0, you get (x + 3)² = 4. Taking square roots gives x + 3 = ±2, so x = −1 or x = −5. Applying these same steps to ax² + bx + c = 0 with letters is how the quadratic formula is derived.
Why vertex form is useful
In y = a(x − h)² + k, the vertex is at (h, k), so you can read a parabola’s turning point straight from the equation. For y = (x + 3)² − 4, the vertex is (−3, −4). This is the quickest way to find a maximum or minimum. See vertex form for more.
Frequently asked questions
What does completing the square mean?
What if a isn’t 1?
When should I complete the square rather than use the quadratic formula?
What if the solutions are complex?
Related tools and guides
Step by step, with a ≠ 1 and the picture of why it works.
y = a(x − h)² + k: read the vertex straight off the equation.
Solve any quadratic, with worked examples and the discriminant.
Vertex, axis of symmetry, intercepts, focus and directrix.
Solve ax² + bx + c = 0 by factoring or the quadratic formula.
Factor polynomials with every method shown step by step.
It opens instantly, with no account and nothing to install.