Completing the Square Calculator

Reviewed by CalcMulti Editorial Team·Last updated: ·Algebra Hub

Completing the square converts ax² + bx + c into vertex form a(x − h)² + k, immediately revealing the vertex (h, k) and axis of symmetry. It also yields the roots by solving a(x−h)² = −k.

This method is foundational in algebra: it derives the quadratic formula, solves quadratic equations without memorising the formula, and rewrites parabola equations for graphing. Enter your coefficients below for a full step-by-step solution.

Formula

a(x − h)² + k where h = −b/2a, k = c − b²/4a

h
x-coordinate of the vertex (axis of symmetry: x = h)
k
y-coordinate of the vertex (min if a>0, max if a<0)
a
leading coefficient (controls width and direction)

Complete the Square for ax² + bx + c

Coeff. of x²

Coeff. of x

Constant

Standard Form → Vertex Form Examples

Standard FormVertex FormVertex (h,k)Roots
x² + 6x + 5(x+3)² − 4(−3, −4)x = −1, −5
x² − 4x + 4(x−2)²(2, 0)x = 2 (repeated)
x² + 2x + 5(x+1)² + 4(−1, 4)No real roots
2x² + 12x + 52(x+3)² − 13(−3, −13)x ≈ −0.46, −5.54
x² − 6x + 9(x−3)²(3, 0)x = 3 (repeated)

Disclaimer

This calculator is for educational purposes only and does not constitute professional advice. Results are based on standard mathematical formulas. Always verify critical calculations with a qualified professional before making important decisions.

Frequently Asked Questions