✓ Effortless Math · Free Tool

Completing the Square Calculator

Enter a, b, and c of ax² + bx + c to convert to vertex form a(x − h)² + k — with the vertex, axis of symmetry, and real roots, plus full step-by-step working.

Vertex form:  a(x − h)² + k,  where h = −b / (2a) and k = c − b² / (4a)
a x2 + b x + c

Coefficient a must not be 0 (otherwise it is not a quadratic). Decimals and negatives are fine.

Results

Vertex form
Vertex (h, k)
Axis of symmetry
h = −b / (2a)
k = c − b² / (4a)
Real roots

Step-by-step (completing the square)