Algebra

How to Complete the Square: Method, Examples & When to Use It

Completing the square transforms any quadratic into vertex form. Learn the step-by-step method, when to choose it over factoring, and practice with clear worked examples.

Frequently asked questions

What number do you add to complete the square?

For x² + bx, add (b/2)², which is half the x-coefficient, squared. For x² + 6x, half of 6 is 3 and 3² = 9, so x² + 6x + 9 = (x + 3)². When solving an equation, add the same number to both sides so the equation stays balanced.

How do you complete the square when a is not 1?

Factor a out of the x² and x terms first, then complete the square inside the brackets. For 2x² + 8x + 5, write 2(x² + 4x) + 5, add and subtract 4 inside: 2(x² + 4x + 4) − 8 + 5. That gives 2(x + 2)² − 3.

How do you find the vertex by completing the square?

Rewrite the quadratic as y = a(x − h)² + k. The vertex is (h, k). For y = x² − 6x + 5, add and subtract 9: y = (x − 3)² − 4, so the vertex is (3, −4). Watch the sign: (x − 3) means h = +3.

Does completing the square work on every quadratic?

Yes. Unlike factoring, it works on any quadratic, even when the roots are irrational or complex. In fact, completing the square on ax² + bx + c = 0 is how the quadratic formula is derived. For x² + 6x + 2 = 0, you get (x + 3)² = 7, so x = −3 ± √7.

When should you complete the square instead of factoring?

Choose completing the square when the quadratic does not factor with whole numbers, when you need vertex form, or when you are putting a circle or parabola equation into standard form. If the quadratic factors easily, factoring is usually faster. The quadratic formula is the other all-purpose option.

Try these solvers

Algebra9 min read

How to Factor Any Quadratic Equation: Step by Step

Factoring quadratics is a core algebra skill. Learn five reliable methods — from GCF extraction to the AC method — so you can factor any quadratic you encounter.

Algebra10 min read

Solving Inequalities: Linear, Quadratic and Absolute Value

Inequalities are everywhere in algebra. Master the techniques for solving linear, compound, absolute value, quadratic, and rational inequalities with this complete guide.

Geometry13 min read

Conic Sections: Circles, Ellipses, Parabolas and Hyperbolas

Master the four conic sections — circles, ellipses, parabolas, and hyperbolas — with this complete guide. Covers standard equations, key features, graphing, and real-world applications.

Stuck on your own problem?

Snap a photo in Solver AI for iPhone and iPad and see every step, so you can do the next one yourself.