Active experiment

Completing the Square Calculator

Rewrite a quadratic in vertex form.

Step 01 · Set up

Fill in the mathematics

Replace the highlighted values below. Tab moves naturally through the equation.

Step 03 · Answer

Ready when you are

Substitution & process

Enter the known values, then select Calculate. Your working steps will appear here.

Understand the method

What does the completing the square calculation mean?

Completing the square rewrites a quadratic as a perfect square plus a constant, exposing the vertex and the axis of symmetry. It works for every quadratic because any expression x² + bx can be turned into (x + b/2)² by adding (b/2)² and subtracting it again, and a leading coefficient other than one is first factored out.

When to use it

Use it to find a parabola vertex, solve a quadratic that does not factor, or derive the quadratic formula.

Formula

ax2+bx+c=a(x−h)2+k

In plain text: ax² + bx + c = a(x − h)² + k

Variables and units

SymbolMeaning
a, b, ccoefficients of ax² + bx + c, with a nonzero
hvertex x-coordinate, −b/(2a)
kvertex y-coordinate, the minimum or maximum value

How to use the calculator

  1. Enter each known value in its labeled field.
  2. Select the answer precision you want.
  3. Choose Calculate answer to see the result and working.

Worked example

For x² + 6x + 5, half of 6 is 3, so add and subtract 9: x² + 6x + 9 − 4 = (x + 3)² − 4. The vertex is (−3, −4).

Common mistakes

  • Half of the x-coefficient is squared, not the coefficient itself.
  • The sign inside the square is the opposite of the sign in the vertex coordinate.
  • Factor out a non-unit leading coefficient before completing the square.

Interpret the result

The constant left outside the square is the vertex height, so it shows the minimum value when a is positive and the maximum when a is negative.