Completing the Square Calculator

Rewrite a quadratic equation in vertex form a(x − h)² + k, showing vertex, axis of symmetry, roots, and step-by-step work.

Share this calculator

Quadratic equation: ax² + bx + c

Vertex Form

(x − 3)² − 4

Vertex (h, k)
(3, -4)
Axis of Symmetry
x = 3
Discriminant
16
Real Roots
1, 5

Step-by-step

  1. Start with 1x² − 6x + 5
  2. Half of the x coefficient inside: 6 ÷ 2 = 3
  3. Square it: 3² = 9
  4. Complete the square to get vertex form: (x − 3)² − 4
  5. Vertex is at (3, -4)
  6. Two real roots: x = 1 and x = 5

Also in Functions

Algebra

Completing the square calculator: convert quadratics to vertex form

A completing-the-square calculator rewrites a quadratic expression ax² + bx + c in vertex form a(x − h)² + k. This transformation reveals the vertex of the parabola and makes it easy to identify the axis of symmetry, direction of opening, and minimum or maximum value.

The vertex form transformation

Starting from ax² + bx + c, factor out a from the first two terms: a(x² + (b/a)x) + c. Then add and subtract (b/(2a))² inside the parentheses to create a perfect square trinomial.

The result is a(x − h)² + k where h = −b/(2a) is the x-coordinate of the vertex and k = c − b²/(4a) is the y-coordinate. If a > 0, the vertex is a minimum; if a < 0, it is a maximum.

h = −b / (2a)

X-coordinate of the vertex.

k = c − b² / (4a)

Y-coordinate of the vertex.

Frequently asked questions

Why is completing the square useful?

It converts a quadratic to vertex form, instantly revealing the vertex (minimum or maximum point), axis of symmetry, and whether the parabola opens up or down. It is also the algebraic basis for deriving the quadratic formula.

What happens when a = 1?

When a = 1, the vertex form simplifies to (x − h)² + k with no leading coefficient, making it easier to read. The formulas still apply: h = −b/2 and k = c − b²/4.

Related

More from nearby categories

These related calculators come from the same leaf category, nearby sibling categories, or the same top-level topic.