Solving Quadratic Equations by Completing the Square

Solve a quadratic by completing the square, with exact real or complex roots.

Result
—

How to calculate

Write a(x − h)² + k = 0 and isolate the square. Take both square roots, using i for a negative value under the square root.

Worked example

Use Coefficient a 1 · Coefficient b -6 · Constant c 5. The result is x = 1, 5.

Input notes

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

OpenStax factoring polynomials

Related calculators