Completing the Square Calculator

Solve quadratic equations by completing the square. Enter coefficients a, b, c and see the step-by-step solution, vertex form, discriminant, roots, and graph properties.

Planning notes, formulas, and examples

About the Completing the Square Calculator

Completing the square is an algebraic technique that rewrites any quadratic expression ax² + bx + c into the equivalent vertex form a(x − h)² + k. This transformation reveals the vertex of the parabola (h, k), makes finding roots straightforward, and is the method behind the derivation of the quadratic formula itself. Our Completing the Square Calculator accepts the three coefficients a, b, and c of the standard-form equation ax² + bx + c = 0 and walks you through every algebraic step: dividing by the leading coefficient, halving the linear term, adding and subtracting the perfect square, and isolating x. The output includes the discriminant (b² − 4ac), the nature of the roots (real, repeated, or complex), the exact root values, the vertex coordinates, the axis of symmetry, and the direction the parabola opens. A detailed steps table shows each transformation so you can follow along or check your own homework. Visual bars compare the magnitudes of the coefficients, discriminant, and roots. Eight presets range from simple integer-solution equations to ones with complex roots, giving you instant practice problems. Whether you are learning this technique for the first time or reviewing it for an exam, this calculator makes the process transparent and error-free.

When This Page Helps

Completing the square is one of the most instructive ways to solve a quadratic because it exposes the structure of the parabola, but it is also the method where small algebra slips are most common. Dividing by the leading coefficient, moving the constant, and adding the correct square term all have to happen in the right order. This calculator shows each transformation explicitly, so you can verify the method itself instead of checking only the final roots.

It is also valuable when you need more than solutions. Completing the square converts standard form into vertex form, which immediately reveals the vertex, axis of symmetry, opening direction, and graph behavior. That makes the tool useful for graphing, test preparation, and understanding how the coefficients affect the parabola.

How to Use the Inputs

  1. Enter the coefficient a (must be non-zero) for the x² term.
  2. Enter the coefficient b for the x term.
  3. Enter the constant term c.
  4. Review the step-by-step solution in the steps table.
  5. Check the roots, vertex form, and discriminant in the output cards.
  6. Use presets to load classic quadratic equations.
Formula used
Standard form: ax² + bx + c = 0. Vertex form: a(x − h)² + k, where h = −b/(2a) and k = c − b²/(4a). Discriminant Δ = b² − 4ac. Roots: x = (−b ± √Δ) / (2a).

Example Calculation

Result: 0

Solve x² + 6x + 5 = 0. Step 1: x² + 6x = −5. Step 2: x² + 6x + 9 = −5 + 9 = 4. Step 3: (x + 3)² = 4. Step 4: x + 3 = ±2, so x = −1 or x = −5. Vertex form: (x + 3)² − 4, vertex (−3, −4).

Tips & Best Practices

  • Always divide by "a" first if a ≠ 1 to simplify the completing-the-square process.
  • The number you add to both sides is always (b/(2a))², which guarantees a perfect square.
  • Negative discriminant means the roots are complex — the parabola does not cross the x-axis.
  • The vertex (h, k) is the minimum point when a > 0 and the maximum when a < 0.
  • Completing the square also works for converting circle equations to standard form.

How Completing The Square Changes The Equation

The goal of completing the square is to turn the variable part of a quadratic into a perfect-square binomial. After factoring out or dividing by the leading coefficient when necessary, you add the square of half the linear coefficient to both sides. That step transforms an expression like $x^2 + 6x$ into $(x + 3)^2$. Once the quadratic is written that way, solving for $x$ becomes a square-root problem rather than a factoring problem, and the geometry of the graph becomes easier to read.

Why Vertex Form Is So Useful

Standard form $ax^2 + bx + c$ is convenient for input, but vertex form $a(x - h)^2 + k$ is better for interpretation. The values $h$ and $k$ locate the turning point of the parabola directly, and the sign of $a$ tells you whether the graph opens upward or downward. That means completing the square does more than find roots: it shows the axis of symmetry, identifies the minimum or maximum value, and clarifies how far the parabola is shifted from the origin.

When To Prefer This Method Over Factoring

Factoring is faster when the quadratic splits cleanly into simple binomials, but many equations do not cooperate. Completing the square works for every quadratic with $a eq 0$, including cases with irrational or complex roots. It is therefore the more reliable general method, especially in lessons that connect algebra to graphing, conic sections, or the derivation of the quadratic formula. Using a calculator that displays the intermediate steps helps you practice the structure of the method until it becomes predictable.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • It rewrites ax² + bx + c into vertex form a(x − h)² + k, revealing the vertex of the parabola and making it easy to solve for x.