Completing the Square Calculator
Complete the square for any quadratic ax² + bx + c and write it in the form a(x + p)² + q. The calculator also finds the turning point and solves the equation, with step-by-step working for each stage.
Write ax² + bx + c in the form a(x + p)² + q
Completed square
Completed square form
(x + 3)² − 4
Turning point
(−3, −4)
Solutions when = 0
x = −1 or x = −5
How it works
Write the expression
Write x² + 6x + 5 in the form a(x + p)² + q.
Halve the x coefficient
Half of 6 is 3, so the bracket is (x + 3).
Write the square and subtract the extra
(x + 3)² gives an extra 9 when expanded, so subtract it.
Simplify the constant
5 − 9 = −4. Completed square form: (x + 3)² − 4.
Result:(x + 3)² − 4Read off the turning point
The turning point of y = (x + 3)² − 4 is at (−3, −4). It is a minimum because a is positive.
Result:(−3, −4)Solve = 0
Square root both sides (remember ±), then subtract 3: x = −1 or x = −5.
Result:x = −1 or x = −5
Completed square form
Example substitution
Half of 6 is 3. (x + 3)² expands to x² + 6x + 9, so subtract 9 and add 5. Turning point: (−3, −4).
Worked examples
Complete the square for x² + 8x + 10
- 1Half of 8: 4
- 2Write the square: (x + 4)² − 16 + 10
- 3Simplify: (x + 4)² − 6
Complete the square for x² − 6x + 2
- 1Half of −6: −3
- 2Write the square: (x − 3)² − 9 + 2
- 3Simplify: (x − 3)² − 7
Complete the square for 2x² + 12x + 7
- 1Take out 2: 2(x² + 6x) + 7
- 2Complete inside: 2[(x + 3)² − 9] + 7
- 3Expand and simplify: 2(x + 3)² − 18 + 7
Frequently asked questions
What is completing the square?+
Rewriting a quadratic ax² + bx + c in the form a(x + p)² + q. It shows the turning point of the graph and lets you solve quadratics that do not factorise.
How do you complete the square?+
Halve the x coefficient to get p, write (x + p)², then subtract p² and add the constant. For x² + 6x + 5: half of 6 is 3, so (x + 3)² − 9 + 5 = (x + 3)² − 4.
How do you find the turning point from completed square form?+
For a(x + p)² + q the turning point is (−p, q). So y = (x + 3)² − 4 has its turning point at (−3, −4). It is a minimum if a is positive and a maximum if a is negative.
How do you complete the square when a is not 1?+
Take a out of the x² and x terms first: 2x² + 8x + 3 = 2(x² + 4x) + 3 = 2[(x + 2)² − 4] + 3 = 2(x + 2)² − 5.
What is vertex form?+
Vertex form is the US name for completed square form: y = a(x − h)² + k, where (h, k) is the vertex, or turning point, of the parabola.