complete square calculator

Complete the Square Calculator

Enter coefficients for a quadratic expression in the form ax² + bx + c.

Current expression: x² + 6x + 5

What this complete square calculator does

This calculator rewrites a quadratic expression from standard form, ax² + bx + c, into completed-square (vertex) form: a(x - h)² + k. It also gives the vertex, axis of symmetry, discriminant, and roots when applicable.

Completing the square is one of the most important algebra tools because it connects algebra and graphing directly. When you convert to vertex form, you can immediately identify where a parabola turns and whether it opens upward or downward.

How to use the calculator

  • Type values for a, b, and c.
  • Click Calculate.
  • Read the completed-square form and step-by-step transformation.
  • Use the vertex and roots output to analyze the quadratic quickly.

The key idea behind completing the square

For a simple expression like x² + bx, half of b is the value needed inside a perfect square:

x² + bx = (x + b/2)² - (b/2)²

For a general quadratic ax² + bx + c, first factor out a from the x-terms, then create and remove the same square term inside parentheses. Finally, simplify constants outside parentheses.

Why vertex form is useful

1) Faster graphing

In vertex form a(x - h)² + k, the vertex is simply (h, k). You can graph a parabola quickly using that point and opening direction from the sign of a.

2) Better interpretation

Many optimization and modeling problems need maximum or minimum values. Vertex form shows that instantly:

  • If a > 0, the vertex is a minimum.
  • If a < 0, the vertex is a maximum.

3) Clean path to solving equations

Completing the square is also a standard method to solve quadratic equations and is the foundation of the quadratic formula derivation.

Example you can test

Try a = 2, b = -8, c = 1. You will get:

  • Completed-square form: 2(x - 2)² - 7
  • Vertex: (2, -7)
  • Axis: x = 2

Common mistakes to avoid

  • Forgetting to factor out a before completing the square.
  • Adding a square term without subtracting the same amount (must keep equality).
  • Sign errors with the horizontal shift: x - h means vertex x-coordinate is h.
  • Trying to use a = 0, which is not quadratic.

Quick FAQ

Does this work with decimals or negatives?

Yes. You can enter integers, decimals, and negative values.

What if the roots are complex?

The calculator will show the complex pair in real ± imaginary i form.

Can I use this for homework checking?

Yes—especially for verifying each algebra step and your final vertex form.

Final thought

If you want a deeper understanding of quadratics—not just memorized formulas—completing the square is the skill to master. Use this calculator to practice quickly, then try solving a few by hand using the same steps shown in the output.

🔗 Related Calculators