Completing the Square Calculator -- Vertex Form

Transform ax² + bx + c into vertex form a(x - h)² + k with detailed steps

Complete The Square

Enter the coefficients of your quadratic expression ax² + bx + c to convert it to vertex form a(x - h)² + k with detailed step-by-step work.

x² + 6x + 5
x² +
x +
Vertex Form
Vertex (h, k)
Step-by-Step Solution
Verification

Try These Examples

Click any example to load it into the calculator.

x² + 6x + 5
Basic example with a = 1
x² + 8x + 10
Even coefficient, not a perfect square
2x² + 12x + 10
Leading coefficient a ≠ 1
3x² - 6x + 7
Negative middle term
-x² + 4x - 3
Negative leading coefficient (opens downward)
x² - 10x + 25
Perfect square trinomial

What Is Completing The Square?

Completing the square is an algebraic technique for rewriting a quadratic expression from standard form ax² + bx + c into vertex form a(x - h)² + k.

This transformation reveals the vertex of the parabola at point (h, k), which is the parabola's minimum (if a > 0) or maximum (if a < 0) value. Vertex form makes graphing easier and is essential for understanding the geometry of quadratic functions.

The Process

The goal is to create a perfect square trinomial from the x² and x terms. Here are the steps:

  1. Factor out the leading coefficient a from the x² and x terms (but not the constant c)
  2. Take half of the new b coefficient (after factoring out a), then square it
  3. Add and subtract this value inside the factored expression
  4. Factor the perfect square trinomial into (x - h)² form
  5. Simplify by distributing a and combining constants to get a(x - h)² + k

Why It Matters

  • Reveals the vertex — The point (h, k) is immediately visible in vertex form
  • Makes graphing easier — Vertex form shows transformations from the basic parabola y = x²
  • Derives the quadratic formula — Completing the square on ax² + bx + c = 0 yields the quadratic formula
  • Solves optimization problems — Finding maximum or minimum values becomes straightforward
  • Analyzes motion — In physics, projectile motion equations often benefit from vertex form

Example Walkthrough

Let's complete the square for x² + 6x + 5:

  1. Since a = 1, we don't need to factor anything out
  2. Take half of b: 6/2 = 3, then square it: 3² = 9
  3. Add and subtract 9: x² + 6x + 9 - 9 + 5
  4. Factor the perfect square: (x + 3)² - 9 + 5
  5. Simplify: (x + 3)² - 4

The vertex form is (x + 3)² - 4, which means the vertex is at (-3, -4). Notice that the sign of h is opposite to what appears in the parentheses.

When a ≠ 1

For 2x² + 12x + 10:

  1. Factor out a = 2 from the x² and x terms: 2(x² + 6x) + 10
  2. Take half of 6: 6/2 = 3, square it: 3² = 9
  3. Add and subtract 9 inside: 2(x² + 6x + 9 - 9) + 10
  4. Factor: 2((x + 3)² - 9) + 10
  5. Distribute: 2(x + 3)² - 18 + 10 = 2(x + 3)² - 8

The vertex is at (-3, -8).

Vertex Form vs Standard Form

Form Equation Shows Clearly Best For
Standard Form ax² + bx + c y-intercept (c), coefficients for expanding Finding roots, basic arithmetic
Vertex Form a(x - h)² + k Vertex (h, k), axis of symmetry (x = h) Graphing, finding max/min, transformations

Common Mistakes

  • Forgetting to factor out a first — When a ≠ 1, you must factor it out from the x² and x terms before completing the square on the simpler expression inside.
  • Sign confusion with h — In vertex form a(x - h)² + k, the vertex x-coordinate is h, but the sign in the parentheses is opposite: (x - 3) means h = 3, (x + 3) means h = -3.
  • Distributing a incorrectly — When you add/subtract (b/2a)² inside the factored expression, remember that distributing a back through means you're actually adding/subtracting a×(b/2a)² = b²/4a outside.
  • Losing the constant term — Keep track of c throughout the process. It gets combined with the adjustment term at the end.
  • Not simplifying fully — Always combine all constants outside the squared term to get the cleanest vertex form.

Frequently Asked Questions

What is completing the square?

Completing the square is a technique for rewriting a quadratic expression ax² + bx + c in the form a(x - h)² + k, called vertex form. This reveals the vertex (h, k) of the parabola and makes certain properties easier to see.

Why is vertex form useful?

Vertex form a(x - h)² + k immediately shows the vertex of the parabola at point (h, k), which is the maximum or minimum value. It also makes graphing easier and is essential for deriving the quadratic formula.

What are the steps to complete the square?

First, factor out the leading coefficient a from the x² and x terms. Then take half of the new b coefficient, square it, and add/subtract that value inside the factored expression. Finally, simplify to get a(x - h)² + k form.

How do you find the vertex from vertex form?

In vertex form a(x - h)² + k, the vertex is at point (h, k). Note that the sign of h is opposite to what appears in the parentheses: (x - 3)² gives h = 3, while (x + 3)² gives h = -3.

What if the leading coefficient a is not 1?

Factor out the leading coefficient a from just the x² and x terms (not the constant c). Complete the square on the simplified expression inside, then distribute a back through and simplify the constants outside.

Can you complete the square with negative coefficients?

Yes. The process is the same. If a is negative, factor it out first. The vertex form will still be a(x - h)² + k, but with a negative value for a, meaning the parabola opens downward.

How is completing the square used to derive the quadratic formula?

Start with ax² + bx + c = 0, complete the square to get a(x + b/2a)² = (b² - 4ac)/4a, then solve for x by taking the square root of both sides. This yields the quadratic formula x = (-b ± √(b² - 4ac)) / 2a.

Does this calculator store my data?

No. All calculations run entirely in your browser using JavaScript. No data is sent to any server, and nothing is stored.

Privacy & Limitations

  • All calculations run entirely in your browser -- nothing is sent to any server.
  • Results are computed using standard formulas and should be verified for critical applications.

Related Tools

Related Tools

View all tools

Completing The Square Calculator FAQ

What is completing the square?

Completing the square is a technique for rewriting a quadratic expression ax² + bx + c in the form a(x - h)² + k, called vertex form. This reveals the vertex (h, k) of the parabola and makes certain properties easier to see.

Why is vertex form useful?

Vertex form a(x - h)² + k immediately shows the vertex of the parabola at point (h, k), which is the maximum or minimum value. It also makes graphing easier and is essential for deriving the quadratic formula.

What are the steps to complete the square?

First, factor out the leading coefficient a from the x² and x terms. Then take half of the new b coefficient, square it, and add/subtract that value inside the factored expression. Finally, simplify to get a(x - h)² + k form.

How do you find the vertex from vertex form?

In vertex form a(x - h)² + k, the vertex is at point (h, k). Note that the sign of h is opposite to what appears in the parentheses: (x - 3)² gives h = 3, while (x + 3)² gives h = -3.

What if the leading coefficient a is not 1?

Factor out the leading coefficient a from just the x² and x terms (not the constant c). Complete the square on the simplified expression inside, then distribute a back through and simplify the constants outside.

Can you complete the square with negative coefficients?

Yes. The process is the same. If a is negative, factor it out first. The vertex form will still be a(x - h)² + k, but with a negative value for a, meaning the parabola opens downward.

How is completing the square used to derive the quadratic formula?

Start with ax² + bx + c = 0, complete the square to get a(x + b/2a)² = (b² - 4ac)/4a, then solve for x by taking the square root of both sides. This yields the quadratic formula x = (-b ± √(b² - 4ac)) / 2a.

Does this calculator store my data?

No. All calculations run entirely in your browser using JavaScript. No data is sent to any server, and nothing is stored.

Request a New Tool
Improve This Tool