Completing the Square Step by Step: Vertex Form, Turning Points and Roots
Learn completing the square for any quadratic, including negative a and odd b, then read the turning point and solve for exact roots, with full checks.

Completing the Square Step by Step: Vertex Form, Turning Points and Roots
Completing the square rewrites a quadratic so that x appears only once, inside a squared bracket. That single change reveals the turning point of the graph, solves the equation even when factorising fails, and explains where the quadratic formula comes from. The method has four moves, and the only real danger is losing track of a factor or a sign.
The idea in one line
A squared bracket expands as (x + p)^2 = x^2 + 2px + p^2. So if you see x^2 + bx, it is the beginning of a perfect square with p = b/2. The square is "complete" once you add (b/2)^2, and to keep the expression unchanged you subtract the same amount straight away.
Case 1: a = 1
Take x^2 + 5x + 1.
Half of 5 is 2.5, and 2.5^2 = 6.25.
x^2 + 5x + 1 = (x^2 + 5x + 6.25) - 6.25 + 1 = (x + 2.5)^2 - 5.25.
The turning point is (-2.5, -5.25), a minimum because the x^2 term is positive. Odd values of b simply give halves; resist the urge to round them.
Case 2: a negative leading coefficient
Take -3x^2 + 12x + 5.
Move 1: factor a = -3 out of the x terms only: -3(x^2 - 4x) + 5. Check the sign: -3 times -4x is +12x, correct.
Move 2: halve the coefficient of x inside the bracket and square it: half of -4 is -2, and (-2)^2 = 4.
Move 3: add and subtract it inside the bracket: -3(x^2 - 4x + 4 - 4) + 5 = -3((x - 2)^2 - 4) + 5.
Move 4: multiply out the subtracted 4 by -3 and tidy up: -3(x - 2)^2 + 12 + 5 = -3(x - 2)^2 + 17.
Vertex form is -3(x - 2)^2 + 17. Because a is negative the parabola opens downwards, so (2, 17) is a maximum. You can confirm by substituting x = 2 into the original: -12 + 24 + 5 = 17.
Solving from vertex form
Set the expression equal to zero and undo it in reverse order:
-3(x - 2)^2 + 17 = 0 (x - 2)^2 = 17/3 x - 2 = ± sqrt(17/3) x = 2 ± sqrt(17/3)
As decimals, sqrt(17/3) ≈ 2.3805, so x ≈ 4.3805 or x ≈ -0.3805. Notice the roots sit symmetrically either side of x = 2, the axis of symmetry. That is a good sanity check on any answer.
If the right-hand side after isolating the square is negative, there are no real roots. For example, x^2 + 2x + 5 = (x + 1)^2 + 4, and (x + 1)^2 = -4 has only complex solutions, x = -1 ± 2i.
Where the quadratic formula comes from
Repeat the four moves on ax^2 + bx + c with letters. You reach a(x + b/(2a))^2 = b^2/(4a) - c, and isolating x gives x = (-b ± sqrt(b^2 - 4ac)) / (2a). So the formula is just completing the square done once in general.
Common mistakes
- Taking a out of the constant term as well, which forces awkward fractions and often a slip.
- Forgetting to multiply the subtracted square by a when bringing it out of the bracket. In Case 2, that is the step that turns -4 into +12.
- Getting the sign inside the bracket wrong: x^2 - 4x completes to (x - 2)^2, not (x + 2)^2.
- Reading the vertex as (2, 17) from -3(x + 2)^2 + 17. The x-coordinate is the value that makes the bracket zero, here -2.
- Dropping the ± when taking a square root, which loses one root.
How to check your answer
Expand your vertex form and compare it with the original: -3(x^2 - 4x + 4) + 17 = -3x^2 + 12x - 12 + 17 = -3x^2 + 12x + 5. For roots, substitute the decimal values back in; the result should be close to zero. For the turning point, the x-coordinate should equal -b/(2a), which here is -12/(2 × -3) = 2.
Doing it with the tool
Type -3x^2 + 12x + 5 into the Completing the Square Solver. The result boxes show the vertex form, the turning point and both roots in exact and decimal form, and the step list follows the same four moves described above so you can compare line by line with your own working. The graph marks the turning point, axis of symmetry, roots and y-intercept. Try x^2 + 2x + 5 next to see how complex roots are reported, and use practice mode for fresh questions where you type the answer as a(x - h)^2 + k.
Limits
The solver works with numerical coefficients only; it does not complete the square on expressions containing other letters, such as a general ax^2 + bx + c. Decimal inputs are converted to fractions where possible, which can produce long expressions. It is a study aid for learning and checking the method, not a replacement for showing your own working in tests.


