Completing the Square Formula: Derivation and Applications

What Is the Completing the Square Formula?

Completing the square is an algebraic technique that transforms a quadratic equation from standard form ax² + bx + c = 0 into vertex form a(x - h)² + k = 0. This reveals the parabola’s vertex (h, k) and axis of symmetry x = h. The formula itself is derived from a simple but powerful idea: turning a quadratic into a perfect square trinomial plus a constant.

The core formula for completing the square (when a = 1) is:

x² + bx + c = (x + b/2)² - (b/2)² + c

When a ≠ 1, we first factor out a:

ax² + bx + c = a[x² + (b/a)x] + c = a[(x + b/(2a))² - (b/(2a))²] + c

Simplifying gives the vertex coordinates:

h = -b/(2a)
k = c - b²/(4a)

Let’s break down each variable:

  • a: coefficient of x²; determines parabola’s width and direction (up if a>0, down if a<0)
  • b: coefficient of x; influences horizontal shift and vertex location
  • c: constant term; vertical offset of the parabola
  • h: x-coordinate of vertex = -b/(2a)
  • k: y-coordinate of vertex = c - b²/(4a)

The term (b/(2a))² is the number we add and subtract to create a perfect square.

Why This Formula Works: Intuition and Derivation

Imagine you want to rewrite x² + 6x as a square. Visually, think of a square whose side is x—its area is . Adding a rectangle of area 6x means extending one side by 6. To form a larger square, you need to add a small square of area (6/2)² = 9. So x² + 6x + 9 = (x + 3)². That’s the geometric intuition: “complete the square” literally means adding the missing piece to form a square shape.

Algebraically, we derive the formula by forcing a perfect square trinomial. A perfect square trinomial has the form (x + d)² = x² + 2dx + d². Comparing with x² + bx, we see that 2d = b, so d = b/2. The constant term needed is d² = (b/2)². We add and subtract this term to keep the expression balanced:

x² + bx = x² + bx + (b/2)² - (b/2)² = (x + b/2)² - (b/2)²

Then we bring back the original constant c:

x² + bx + c = (x + b/2)² - (b/2)² + c

That’s the completed square form. For a general a, we first factor a from the and x terms, then apply the same logic inside the parentheses.

Step-by-Step Derivation

Start with ax² + bx + c = 0.

  1. Move constant to the other side: ax² + bx = -c.
  2. Divide by a (if a ≠ 1): x² + (b/a)x = -c/a.
  3. Take half of b/a, square it: (b/(2a))².
  4. Add to both sides: x² + (b/a)x + (b/(2a))² = -c/a + (b/(2a))².
  5. Left side is a perfect square: (x + b/(2a))² = -c/a + b²/(4a²).
  6. Simplify right side: (b² - 4ac)/(4a²).
  7. Take square root and solve for x (if solving): x + b/(2a) = ±√(b² - 4ac)/(2a)x = [-b ± √(b² - 4ac)]/(2a).

Notice that step 7 gives the Quadratic Formula! Completing the square is how the Quadratic Formula was derived historically. The method dates back to ancient Babylonian mathematicians (circa 2000 BC) who used geometric methods to solve quadratic problems. The symbolic algebra we use today was formalized much later by mathematicians like Al-Khwarizmi (9th century) and François Viète (16th century).

Practical Implications: Why It Matters

Completing the square is not just for solving equations. It’s essential for:

  • Graphing parabolas: Vertex form instantly gives the vertex and axis of symmetry. Read more in our Completing the Square for Parabola Vertex Form guide.
  • Deriving the Quadratic Formula: As shown above, it’s the derivation method.
  • Solving quadratic equations when factoring is difficult or impossible.
  • Analyzing conic sections (circles, ellipses, hyperbolas) by rewriting their equations.
  • Finding maximum/minimum values in optimization problems.

Understanding the formula also helps interpret results. For example, k = c - b²/(4a) tells you the y-coordinate of the vertex. If you want to know what different ranges of coefficients mean, check our Completing the Square Results Interpretation page.

Edge Cases to Note

  • When a = 0: Not a quadratic (degenerate). The formula doesn’t apply.
  • When a is negative: Vertex form still works; parabola opens downward. The formula for h and k remains the same, but the sign affects direction.
  • When b is zero: The equation is ax² + c = 0. Completing the square gives a(x)² + c; the vertex is at (0, c) because h = 0.
  • When a is not 1: Many students forget to factor out a first. Our Step-by-Step Tutorial shows explicit handling of this case.

Additionally, if you have a fraction, the formula works exactly the same. For a deeper understanding of the background, see What Is Completing the Square? Definition & 2026 Guide.

Examples of the Formula in Action

Example 1: x² + 6x + 5 = 0 (a=1, b=6, c=5)
h = -6/(2*1) = -3
k = 5 - 6²/(4*1) = 5 - 36/4 = 5 - 9 = -4
Vertex: (-3, -4). Vertex form: (x + 3)² - 4 = 0.

Example 2: 2x² + 8x + 6 = 0 (a=2, b=8, c=6)
h = -8/(2*2) = -2
k = 6 - 8²/(4*2) = 6 - 64/8 = 6 - 8 = -2
Vertex: (-2, -2). Vertex form: 2(x + 2)² - 2 = 0.

Notice how the formula cleanly gives the vertex without graphing.

Why the Formula Includes 4a in Denominator

That denominator comes from squaring b/(2a). Because (b/(2a))² = b²/(4a²), and then when multiplied by a (from factoring), it becomes b²/(4a). This consistency ensures the formula works for all quadratics.

Understanding the derivation empowers you to manipulate quadratic expressions confidently. Use our Completing The Square Calculator to practice and verify results.

Try the free Completing The Square Calculator ⬆

Get your Completing the square is an algebraic method to rewrite quadratic equations from standard form to vertex form, revealing the parabola's vertex and axis of symmetry. result instantly — no signup, no clutter.

Open the Completing The Square Calculator

Contact Us