Algebra
Intermediate

Completing the Square

Rewrite a quadratic as a perfect square plus a constant.

Formula

x2+bx=(x+b2)2−b24x^2 + bx = \left(x+\frac{b}{2}\right)^2 - \frac{b^2}{4}

Variables

bLinear coefficient

Example

x²+6x = (x+3)²-9

How it works

Completing the square turns a quadratic with an x² term and a linear x term into a square of a binomial, which is often easier to solve or interpret. It works because if you expand (x + b/2)², you get x² + bx + b²/4, so subtracting b²/4 keeps the expression equivalent to the original. This rearrangement exposes the vertex form of a parabola and makes many algebraic steps simpler.

When to use it

Use this when solving quadratic equations, especially if factoring is awkward or impossible. It is also useful in graphing parabolas, finding turning points, and converting quadratic expressions into a form that is easier to integrate or analyze.

Worked example, step by step

Rewrite x² + 10x in completed-square form. Start with x² + 10x. Take half of 10: 10/2 = 5. Square it: 5² = 25. Add and subtract 25: x² + 10x = x² + 10x + 25 - 25. Group the perfect square: x² + 10x + 25 = (x + 5)². So x² + 10x = (x + 5)² - 25. Final answer: x² + 10x = (x + 5)² - 25.

Common mistakes to avoid

  • Forgetting to subtract the square of half the coefficient, which changes the value of the expression
  • Using b instead of b/2 inside the bracket, which does not form a perfect square
  • Dropping the x² term or writing the result as a solved equation instead of an equivalent expression

Did You Know?

Completing the square is the ancient geometric trick, dating to Babylon, that eventually produced the quadratic formula.

Share this formula

Reviewed & maintained by the FormulaWon editorial teamLast reviewed September 2026