Completing the Square Calculator

Complete the square for any quadratic with every step shown in exact fractions. Get vertex form, the vertex, axis of symmetry, roots and a graph.

Completing The Square Calculator

Transform quadratic equations from standard form (ax² + bx + c = 0) to vertex form by completing the square. Get step-by-step solutions, vertex coordinates, and visualize the parabola graph.

Quadratic Equation Input

Enter coefficients for: ax² + bx + c = 0
Current Equation: x² + 6x + 5 = 0

Display Options

Completing the Square Calculator: What It Really Does

People assume a completing the square calculator is just another equation solver, a faster way to get an x value. That assumption undersells the tool and the method. Completing the square is not primarily a solving technique, though it solves quadratics. It is a rewriting technique, one that restructures ax² + bx + c into a(x − h)² + k, and that rewritten form makes the vertex, the axis of symmetry, and the parabola's direction visible at a glance. A completing the square calculator that only spits out roots has missed the point. The one here walks you through the transformation, step by step, so you can see exactly how the standard form becomes the vertex form, and why that matters for graphing, solving, and even calculus.

When you enter coefficients a, b, and c into the input fields, the calculator first checks your equation's format. It accepts standard form, ax² + bx + c = 0, or a bare expression, ax² + bx + c. Load an example like x² + 6x + 5 = 0, and the calculator displays the current equation, then applies the canonical sequence: factor out the leading coefficient from the x² and x terms, halve the x coefficient, square it, add and subtract that value inside the parentheses, factor the perfect square, and simplify the constant. The output gives you the completed square form, the vertex coordinates (h, k), the axis of symmetry x = h, the direction it opens, and a step-by-step solution you can copy for homework or study.

How to Use the Calculator

Choosing Your Input Format

Start by choosing your input format: standard equation or bare expression. For an equation, enter all three coefficients. For an expression, you still enter a, b, and c, but the calculator treats it as ax² + bx + c without the equals sign.

Setting the Options

You can set decimal places from 0 to 5, toggle the step-by-step solution on or off, show or hide the parabola graph, and request fractions when possible. The 'Show step-by-step solution' option is where the real teaching happens. Each step appears with a description, like 'Calculate the value needed to complete the square' or 'Add and subtract this value inside the parentheses,' followed by the equation at that stage. This is not a black box. It is a worked template you can follow for any quadratic, and it exposes the exact arithmetic that produces the vertex form.

The Method: Step-by-Step, the Way a Human Does It

Add and subtract 9 inside the parentheses: (x² + 6x + 9 − 9) + 5 = 0. The vertex is at (−3, −4), because the form a(x − h)² + k has the vertex at (h, k), and here h = −3, k = −4.

Now try a case where a is not 1, say 2x² + 8x − 5 = 0. Add and subtract 4 inside the parentheses: 2(x² + 4x + 4 − 4) − 5 = 0. This is the step where students often err: the −4 inside is multiplied by the 2 outside, so you have 2(x + 2)² − 8 − 5 = 0, which simplifies to 2(x + 2)² − 13 = 0. The 'forgotten a' failure, where a student forgets to factor out a, is precisely what this calculator prevents by showing every step.

Vertex Form Calculator Outputs: What Each Number Means

Reading the Vertex and Axis

The vertex form calculator provides both the vertex coordinates and the axis of symmetry, in addition to the final expression.

It lists the vertex coordinates (h, k), the axis of symmetry as the vertical line x = h, the direction the parabola opens, and whether the vertex is a minimum or maximum. The graph, when displayed, shows the parabola crossing the x-axis at the roots, which you can find by setting the completed square form to zero and solving.

Interpreting the Discriminant

The calculator also provides a summary of all forms: standard, vertex, and factored. It shows the discriminant, b² − 4ac, which tells you whether the roots are two real, one repeated, or two complex. A positive discriminant means two real roots, zero means one repeated root, and negative means two complex roots. This is not a preference but a theorem. The discriminant's sign determines the root types, and the completing the square process reveals why: after completing the square, you take the square root of both sides, and the expression under the root is exactly the discriminant divided by 4a². If you complete the square on the general quadratic ax² + bx + c = 0, you get x = [−b ± √(b² − 4ac)] / (2a), the formula every student memorizes. The derivation is not magic; it is the same halve, square, add, subtract process the calculator shows step by step. Once you see that, the formula stops being a mystery and becomes a shortcut for a process you already understand.

Beyond Parabolas

Completing the square also appears in contexts far beyond parabolas. In coordinate geometry, completing the square for a circle, grouping x-terms and y-terms, and adding (D/2)² and (E/2)² to both sides, reveals the center and radius. The center is (−D/2, −E/2), not (D/2, E/2), a sign error that trips up many students. The method is not just for quadratics; you can use the solve by completing the square calculator to get the roots, but you should also look at the intermediate steps. The calculator displays this reasoning in the step-by-step solution, which is exactly what a tutor would write.

This is particularly valuable when factoring is not possible. For example, x² + 4x + 1 = 0 does not factor into integers. The calculator shows the exact radical form, not a rounded decimal, when you enable the 'Display as fractions when possible' option. The rounding is only applied to the display, not to the underlying calculation, so you can copy the exact answer for homework. That precision is the difference between a calculator that gives you a number and one that teaches you the method.

Comparison of Methods for Solving Quadratics

MethodBest ForWhen It FailsWhat It Reveals
FactoringSimple quadratics with integer rootsRoots are irrational or complexRoots, not vertex
Quadratic formulaAny quadratic, always worksOverkill for simple factoring casesRoots, but not vertex
GraphingVisualizing roots and vertexPrecision is limited by hand-drawn graphsShape and approximate roots
Completing the squareVertex form, deriving the formulaMessy coefficients without careVertex, axis, and exact roots

Common Mistakes and How to Avoid Them

The 'forgotten a' mistake happens when you complete the square on an expression like 2x² + 8x without factoring out the 2 first. The calculator prevents this by always factoring a out of the x² and x terms before doing anything else. The 'add to one side only' mistake happens when solving an equation: you add (b/2)² to one side but forget to add it to the other. The calculator handles both sides, but if you are working by hand, write both sides of the equation at every step.

Another error is the 'circle sign' failure. When completing the square for a circle, the center is (−D/2, −E/2), not (D/2, E/2). For example, x² + y² + 4x − 6y + 9 = 0 becomes (x + 2)² + (y − 3)² = 4, so the center is (−2, 3), not (2, −3). The calculator does not handle circles, but the method is the same, and the sign error is a classic. Finally, do not assume completing the square works for all quadratics without thought. The calculator is not a crutch; it is a check on your own work.

The Honest Caveat: When to Walk Away from This Calculator

The results panel lists vertical asymptotes as x = a, one per line. If the denominator has a squared factor at that x-value, the left and right sides of the graph both go to the same infinity (both +∞ or both −∞). An odd multiplicity flips the sign across the asymptote. Horizontal asymptotes show as y = b. If the calculator returns 'None', check the slant asymptote section, a slant line appears when the numerator degree is exactly one more than the denominator degree. For degree differences of two or more, neither horizontal nor slant exists; the end behaviour follows a polynomial (the quotient from long division, shown in the steps).

There is also a limit to what the calculator shows. It does not derive the quadratic formula for you, though you can follow the general steps to do so. It does not handle circles or integrals, though the same technique applies. In those cases, the quadratic formula is faster and less error-prone.

Frequently Asked Questions

What exactly does the calculator output when I enter a quadratic?

The calculator outputs the completed square form a(x − h)² + k, the vertex coordinates (h, k), the axis of symmetry x = h, the direction the parabola opens, and a step-by-step solution you can copy.

How does the calculator handle the 'forgotten a' mistake?

The calculator prevents this by always factoring the leading coefficient a out of the x² and x terms before doing anything else, showing every step so you see the arithmetic.

Does the calculator show exact answers or just decimals?

When you enable the 'Display as fractions when possible' option, the calculator shows the exact radical form, not a rounded decimal; rounding is only applied to the display, not the underlying calculation.

What does the discriminant tell me, and how does completing the square relate to it?

A positive discriminant means two real roots, zero means one repeated root, and negative means two complex roots. After completing the square, the expression under the square root is exactly the discriminant divided by 4a².

Can I use this calculator for circles or other shapes?

No, the calculator does not handle circles. However, the same completing the square method applies: for a circle, the center is (−D/2, −E/2), not (D/2, E/2).

When should I use the quadratic formula instead of this calculator?

The quadratic formula is faster and less error-prone for messy coefficients or when you only need roots. Completing the square is best for finding the vertex, axis, and exact roots.

Guides on this site