Completing the Square Calculator

Rewrite a quadratic in completed square form and find its vertex.

Result
—

How to calculate

Divide the x coefficient by twice the leading coefficient, then reverse its sign to find the vertex’s x-coordinate h. Substitute h into the polynomial for k and write a(x − h)² + k.

Worked example

Use Coefficient a 1 · Coefficient b -6 · Constant c 5. The result is (x − 3)² − 4.

Input notes

Enter integers, decimals, or fractions. Fractions in the result are in lowest terms.

OpenStax factoring polynomials

Related calculators