Algebra

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

  1. Write the expression

    x2+6x+5x^2 + 6x + 5

    Write x² + 6x + 5 in the form a(x + p)² + q.

  2. Halve the x coefficient

    62=3\frac{6}{2} = 3

    Half of 6 is 3, so the bracket is (x + 3).

  3. Write the square and subtract the extra

    (x+3)2−32+5\left(x + 3\right)^2 - 3^2 + 5

    (x + 3)² gives an extra 9 when expanded, so subtract it.

  4. Simplify the constant

    (x+3)2−4\left(x + 3\right)^2 - 4

    5 − 9 = −4. Completed square form: (x + 3)² − 4.

    Result:(x + 3)² − 4
  5. Read off the turning point

    (−3,−4)(-3, -4)

    The turning point of y = (x + 3)² − 4 is at (−3, −4). It is a minimum because a is positive.

    Result:(−3, −4)
  6. Solve = 0

    (x+3)2=4  ⟹  x=−3±2\left(x + 3\right)^2 = 4 \implies x = -3 \pm 2

    Square root both sides (remember ±), then subtract 3: x = −1 or x = −5.

    Result:x = −1 or x = −5

Completed square form

x2+bx+c=(x+b2)2−(b2)2+cx^2 + bx + c = \left(x + \frac{b}{2}\right)^2 - \left(\frac{b}{2}\right)^2 + c
b/2b/2Half the coefficient of x goes inside the bracket
(b/2)²Subtract this to cancel the extra term from squaring the bracket
(−p, q)The turning point of y = (x + p)² + q

Example substitution

x2+6x+5=(x+3)2−9+5=(x+3)2−4x^2 + 6x + 5 = (x + 3)^2 - 9 + 5 = (x + 3)^2 - 4

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

  1. 1
    Half of 8: 4
  2. 2
    Write the square: (x + 4)² − 16 + 10
  3. 3
    Simplify: (x + 4)² − 6
Answer: (x + 4)² − 6, turning point (−4, −6)

Complete the square for x² − 6x + 2

  1. 1
    Half of −6: −3
  2. 2
    Write the square: (x − 3)² − 9 + 2
  3. 3
    Simplify: (x − 3)² − 7
Answer: (x − 3)² − 7, turning point (3, −7)

Complete the square for 2x² + 12x + 7

  1. 1
    Take out 2: 2(x² + 6x) + 7
  2. 2
    Complete inside: 2[(x + 3)² − 9] + 7
  3. 3
    Expand and simplify: 2(x + 3)² − 18 + 7
Answer: 2(x + 3)² − 11

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.

Related calculators