Introduction: from standard form to a parabola's turning point
Completing the square is the algebra move that takes a quadratic written the ordinary way, , and rewrites it so the parabola's turning point is sitting right there in the expression. The rewritten shape is , and the pair is the vertex — the lowest point when the curve opens upward, the highest point when it opens downward. Type in your three coefficients and this calculator does the conversion, returning the vertex form so you can read the horizontal and vertical shift straight off the answer.
The two expressions describe the exact same function; the graph does not move an inch. What changes is where the useful facts live. In standard form the vertex is buried inside the coefficients, so you have to do arithmetic to find it. In vertex form the vertex, the axis of symmetry at , and the minimum or maximum value are all visible without another step. That is exactly why the technique shows up so often the moment a quadratic models something real: the peak height of a projectile, the price that maximizes revenue, or the dimensions that enclose the largest area are all just the vertex of some parabola.
Why bother completing the square instead of using the quadratic formula?
Finding roots is not the same job as finding the vertex. The quadratic formula, , answers "where does the curve cross zero," while completing the square answers "where does the curve turn." A parabola can sit entirely above the x-axis with no real roots — that is the case when the discriminant — and it still has a perfectly good vertex, so vertex form works even when the quadratic formula returns complex numbers. Completing the square is also the argument that produces the quadratic formula in the first place — run the same steps with letters instead of numbers and the formula falls out.
Reading the vertex form back geometrically, slides the basic parabola left or right, lifts or lowers it, the sign of decides whether it opens up or down, and the size of makes it narrow or wide. Four separate facts about the graph are packed into one compact line, which is what makes vertex form so quick to sketch from. The name itself is literal: you start with a square that is missing a corner piece, add exactly the piece needed to finish it, and subtract the same amount back so the value never changes.
How to use the a, b, and c inputs
Enter the coefficient of in the field labeled a, the coefficient of in the field labeled b, and the constant term in c, then press Complete the Square. The vertex form appears directly below the form. Integers and decimals both work — , , is fine, and so is something like or . There are no units attached, because the same three coefficients could come from a physics model or a profit curve; whatever units your problem carries stay with your problem.
Read the output as the same quadratic wearing different clothes. If it shows 2(x + 1.0000)² - 1.0000, the vertex form is . The one sign that trips people up is inside the parentheses: because the template is , a plus sign there means is negative. So (x + 1) puts the vertex at , and the constant outside gives the vertex's height. Checking homework? Compare line by line against your own work — the calculator surfaces the vertex first, which is where most sign slips hide in standard form.
The formula the calculator applies
For a quadratic in standard form, the horizontal coordinate of the vertex is
Formula: h = (- b) / (2 a)
and the vertical coordinate is
.
Dropping and into reproduces the original quadratic exactly, which is the whole point. Where do these two formulas come from? The engine is a single identity, — build its left side and the right side falls out. Factor out of the first two terms, take half of the resulting coefficient and square it to build the perfect-square trinomial, then subtract the same square back out so nothing changes:
Formula: = a (x^2 + b / a x) + c
Formula: = a (x^2 + b / a x + (b/(2a))^2) - a (b/(2a))^2 + c
Formula: = a (x+b/(2a))^2 - b^2 / (4 a) + c
That last line is already in disguise: the shift supplies , and the leftover subtraction is precisely the term that lands in . Each coefficient plays a fixed role in the result:
| Coefficient |
Role in the vertex form |
|
Stays out front unchanged; sets the opening direction and how narrow or wide the parabola is. |
|
Drives the horizontal shift . |
|
Anchors the vertical position, finishing the value of once the square is balanced. |
A worked example: rewriting 2x² + 4x + 1
Take , , , so the expression is . The horizontal coordinate is , and the vertical one is . The vertex is therefore .
You can also complete the square directly on the numbers rather than quoting the vertex formulas. Factor the leading out of the first two terms, add and subtract the square that finishes the bracket, then carry the extra term back outside:
Formula: 2 x^2 + 4 x + 1
Formula: = 2 (x^2 + 2 x) + 1
Formula: = 2 (x^2 + 2 x + 1 - 1) + 1
Formula: = 2 (x+1)^2 - 2 + 1
Formula: = 2 (x+1)^2 - 1
Same vertex form, reached without ever leaning on the and shortcuts.
Since , the factor becomes , giving the vertex form . In one glance: the parabola opens upward (because is positive), its lowest value is , and that minimum happens at . To be sure nothing drifted, expand it back: , which is the original quadratic.
Reading the result, and what it assumes
The tool assumes a single-variable quadratic in the pattern ; it never asks what the variable is called, because the conversion depends only on the three numbers. The vertex form it prints is rounded to four decimal places, which keeps decimals like 1.5000 readable while still handling messy coefficients. When you read the answer back, keep the sign rule in mind — means the vertex sits at , while means — and remember the number outside the square is the vertex height .
Limitations to keep in mind
The one hard requirement is that cannot be zero. With the expression is linear (or constant), there is no parabola and no vertex to find, and the formulas would divide by zero — so the calculator refuses that input and says so rather than printing nonsense. Beyond that, the limits are about presentation, not correctness: a repeating value such as shows as 0.3333, so if you need an exact fraction for a proof, redo that last step by hand. The calculator also reports the finished vertex form rather than narrating each intermediate line, so treat it as a fast checkpoint for work you are practicing on paper, and reach for a separate tool if you specifically need the roots or a plotted graph.
Frequently asked questions
Why complete the square?
Completing the square rewrites a quadratic of the general form ax² + bx + c into the vertex form a(x − h)² + k, where h and k reveal the parabola's turning point. This technique exposes the geometric features of the curve, allows effortless graphing, and serves as a gateway to more advanced concepts like conic sections and optimization.
How do I find the vertex from the coefficients?
The vertex x-coordinate is h = −b/(2a) and the vertex y-coordinate is k = c − b²/(4a). Once you have h and k, the parabola's turning point is simply the ordered pair (h, k), and the vertex form a(x − h)² + k follows directly.
What happens if the coefficient a is zero?
If a equals zero the expression is linear rather than quadratic, so there is no parabola and no vertex, and the formulas would divide by zero. The calculator detects this and asks you to enter a non-zero value for a instead of returning a meaningless result.
Does completing the square give the same roots as the quadratic formula?
Yes. The quadratic formula is derived by completing the square on the general quadratic, so both methods describe the same parabola and yield the same roots. Completing the square additionally hands you the vertex directly, which the quadratic formula does not.