Complete the Square Calculator
This complete the square calculator rewrites a quadratic as a perfect square plus a number. Type an equation to solve it, or an expression to get its vertex form. Every step is shown, it is free, and it is part of our math solver.
How to Use the Complete the Square Calculator
Enter an Equation or an Expression
With an equals sign, such as x^2+6x+5=0, it solves for . Without one, such as 2x^2+8x+3, it gives the vertex form.
Read the Steps
Watch for the line that takes half of the middle number and squares it. That is the key move.
Use the Graph
For an expression, the graph marks the vertex, and a table gives the axis of symmetry and the smallest or largest value.
The Completing the Square Formula
In words: x squared plus bx, plus the square of half of b, equals the square of (x plus half of b).
The left side is called a perfect square trinomial. For any quadratic, the full version is:
The picture shows why. For , split into two strips of width 3 and place them on two sides of the square. The gap in the corner is 3 by 3, so adding 9 completes it.
How Do You Complete the Square?
Make the number in front of x squared equal to 1. Move the plain number to the other side. Take half of the number in front of x, square it, and add it to both sides. The left side is now a perfect square. Take square roots of both sides and solve.
When a Is 1
Go straight to halving and squaring. For , half of 6 is 3, and .
When a Is Not 1
In an equation, divide every term by first. In an expression you can't divide, so take out of the first two terms instead.
When b Is Odd
Use fractions. For , half of 3 is , and squaring gives .
When b Is Zero
There is nothing to complete. becomes , so .
When should you choose it? Use it to find a vertex or when a problem asks for it. To just find the roots, the quadratic formula calculator is quicker.
Using It as a Vertex Form Calculator
Vertex form is . The vertex is the point , and the axis of symmetry is the line . If is positive, the vertex is the lowest point. If is negative, it is the highest.
For example, a ball's height in feet is after seconds. In vertex form, that is . So the ball is highest at 2 seconds, at 69 feet.
Worked Examples
Example 1: A Simple Equation
Solve .
- Subtract 5: .
- Half of 6 is 3. Square it and add 9 to both sides: .
- Write the square: .
- Take square roots: , so or .
Example 2: A Leading Number Other Than 1
Write in vertex form.
- Take 2 out of the first two terms: .
- Half of 4 is 2, and . Add and subtract 4 inside: .
- Move the out, times 2: .
- The answer is . The vertex is .
Example 3: Complex Roots
Solve .
- Subtract 10: .
- Half of 2 is 1. Add 1 to both sides: .
- Take square roots: , so .
Common Mistakes to Check
Adding to Only One Side
If you add 9 on the left of an equation, add 9 on the right too.
Forgetting to Factor Out a First
Halving the middle number only works when has 1 in front. In , halving 8 would be wrong. Take out the 2 first.
Taking Only the Positive Root
gives and . Missing the second one loses an answer.
Practice Problems
- Solve .
- Solve .
- Write in vertex form.
- Write in vertex form.
- Solve .
Show the answers
- or
- or
- or
Related Calculators
- Quadratic Formula CalculatorThis quadratic formula calculator shows every step, the discriminant and a graph. A free quadratic equation solver for real and complex roots. Try it now.
- Factoring CalculatorThis factoring calculator can factor polynomials and whole numbers with steps. Get factor pairs, trinomials and more for free. Enter a problem to start.
- Equation SolverThis equation solver handles linear, radical, log and more equation types. Solve equations step by step and see each answer checked. Free, with no sign-up.
- Polynomial CalculatorUse this polynomial calculator to add, multiply, divide and solve with steps. A free polynomial solver that finds roots and remainders. Enter yours now.
Learn More
FAQ
Why Do You Add Half of b Squared?
Because . The middle number is , so is half of it, and the missing last number is .
When Should You Complete the Square?
When you need the vertex, when you want to prove the quadratic formula, or when you rewrite the equation of a circle.
How Do You Find the Vertex?
Read it from vertex form. In , the vertex is .
Why Is the Sign of h Opposite?
Vertex form has a minus sign built in: . So is , and .
Does It Work When the Roots Are Not Real?
Yes. A negative number under the square root gives . This completing the square calculator shows those steps too.
Is It the Same as the Quadratic Formula?
It is where the formula comes from. Complete the square on with letters, solve for , and you get the formula. If the trinomial factors neatly, the factoring calculator may be faster than both.
Next step: write down half of the middle number, square it, and then check your work with the complete the square calculator above.