Math · Every step shown

Completing the Square Calculator

Rewrite a quadratic (ax² + bx + c) in vertex form by completing the square.

Enter your numbers

Press Solve with steps to see the answer and how to get it.

Job: Algebra
Your answer

Press Solve with steps to see the answer and every step.

How it works, examples and FAQ

Find h = −b ÷ (2a) and k = c − a·h², then write a(x − h)² + k.

Example: x² − 6x + 5 — h = 6 ÷ 2 = 3, k = 5 − 9 = −4, giving (x − 3)² − 4.

What is vertex form?
A quadratic written as a(x − h)² + k, where (h, k) is the vertex of the parabola — its highest or lowest point.

What's x² − 6x + 5 in vertex form?
(x − 3)² − 4.

Why complete the square?
It reveals the vertex directly and is also how the quadratic formula itself is derived.

More math calculators

Snap a photo of a problem →   All math tools →   All calculators →

These calculators show the method as well as the answer, so you can learn the steps and check your own work. If a result ever looks wrong, tell us on the Contact page with the numbers you entered.

Save or print your results

On a phone, choose Save as PDF on the next screen to keep a copy.