Enter your quadratic
Type the coefficients for ax² + bx + c. We’ll rewrite it by completing the square and show the vertex form, vertex, axis of symmetry, and a quick expansion check.
Convert any quadratic ax² + bx + c into vertex form a(x − h)² + k in seconds — with the full step-by-step “completing the square” work shown automatically.
Type the coefficients for ax² + bx + c. We’ll rewrite it by completing the square and show the vertex form, vertex, axis of symmetry, and a quick expansion check.
Completing the square rewrites a quadratic from standard form ax² + bx + c into vertex form a(x − h)² + k. Vertex form makes the vertex and axis of symmetry obvious: the vertex is (h, k) and the axis is x = h.
It means rewriting a quadratic expression so it contains a perfect-square trinomial like (x − h)². You do this by adding and subtracting the same value so the expression stays equal.
No — it’s the same parabola, just written in a different form. Vertex form simply reveals the vertex and axis of symmetry immediately.
Then it’s not a quadratic. This calculator will tell you it’s a linear (or constant) expression instead.
When you complete the square, the x-term turns into (x − h)². Expanding gives x² − 2hx + h², so matching coefficients leads to −2ah = b, which simplifies to h = −b/(2a).
Yes. If you set ax² + bx + c = 0, convert to vertex form and then isolate the square: a(x − h)² = −k. Then take square roots to solve for x.
Quick links from the Math & Conversions hub:
Example 1: Convert x² + 8x + 5.
Example 2: Convert 2x² − 12x + 1.
MaximCalculator provides simple, user-friendly tools. Always treat results as entertainment and double-check any important numbers elsewhere.
“Completing the square” is one of those algebra moves that feels like a trick the first time you see it, but it’s actually a structured way to rewrite a quadratic so the important geometry pops out. A quadratic in standard form ax² + bx + c hides its vertex. You can still find the vertex, but you either have to memorize formulas or do extra steps. Vertex form a(x − h)² + k is the opposite: it shows the vertex immediately, and from that you can sketch the parabola, find maximums/minimums, and solve equations by taking square roots.
The big idea is this: a perfect square looks like (x + d)². When you expand it you get x² + 2dx + d². Notice the middle term coefficient is always 2d. So if you want an expression like x² + bx to become a perfect square, you should pick d = b/2. That’s why “take half the x coefficient” is the key move. The only catch is that once you add (b/2)², you changed the value of the expression — so you subtract the same amount to keep things equal. Add and subtract the same number = no net change, but now you have a clean square you can factor.
Start with x² + bx + c. Ignore c for a moment and focus on the x-terms: x² + bx. Half of b is b/2, and its square is (b/2)². Then:
Final result: x² + bx + c = (x + b/2)² + (c − b²/4). That’s already vertex form with a = 1, h = −b/2, and k = c − b²/4.
If a is not 1, you do one extra step first: factor a out of the x-terms. This makes the coefficient of x² inside the parentheses equal to 1 (which is what we need for the perfect-square pattern).
From ax² + bx + c: a(x² + (b/a)x) + c. Now the inside is like the simple case with b replaced by b/a. Half of b/a is b/(2a), and the square is b²/(4a²).
Final result: ax² + bx + c = a(x + b/2a)² + (c − b²/(4a)). Most textbooks prefer a(x − h)² + k, so we set h = −b/(2a) and k = c − b²/(4a).
Once you have a(x − h)² + k:
Completing the square is also a full solution method. If you have an equation ax² + bx + c = 0, convert it to vertex form: a(x − h)² + k = 0. Then isolate the square: a(x − h)² = −k → (x − h)² = −k/a. Finally take square roots: x − h = ±√(−k/a), so x = h ± √(−k/a). This is exactly where the quadratic formula comes from, which is why mastering this method gives you “why”, not just “what”.
Completing the square connects algebra to geometry. If you think of a square of side length x, its area is x². Adding a strip of area bx can be visualized as attaching rectangles around the square and then filling in a missing corner to form a larger perfect square. That “missing corner” corresponds to the (b/2)² term you add. This geometric picture is also the gateway to conic sections (rewriting equations to see circles and ellipses) and later optimization in calculus (finding min/max).
Use the calculator above to check your answers, then do the expansion check yourself by hand — that’s the fastest way to build confidence and speed.
To keep the output readable and “homework friendly,” the calculator simplifies fractions whenever possible and shows both the symbolic vertex form and the numeric vertex (h, k). When decimals are needed, it also shows a rounded value. If your input contains decimals, the exact fraction form may not always be representable; in that case the calculator focuses on a clean decimal step display.