# Completing the Square Calculator

URL: https://speedycalculator.com/calculators/math/completing-the-square/
Last updated: 2026-11-08

> The completing the square calculator rewrites ax² + bx + c = 0 in vertex form a(x − h)² + k, solves the equation (including complex roots) and lists each step of the method.

## Inputs

- a
- b
- c

## Results

- Vertex form
- Roots
- h (x of the vertex)
- k (y of the vertex)
- Steps

## Formula

```
ax² + bx + c = a(x + b/2a)² + (c − b²/4a)
x = −b/2a ± √(b²/4a² − c/a)
```

## Explanation

Completing the square is the technique behind the quadratic formula. It turns a quadratic into a perfect square plus a constant, which reveals the vertex of the parabola and lets you solve the equation by taking a square root.

### How to use the Completing the Square Calculator

- **a**
- **b**
- **c**

Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.

### How it works

Divide by a, move the constant to the right, add (b/2a)² to both sides so the left side becomes a perfect square, and take square roots. A negative right-hand side means the roots are complex.

## Worked example

Inputs: a: 2; b: 8; c: 3.

Results: **Vertex form = 2(x + 2)² − 5**; Roots = x = −0.4188611699, x = −3.58113883; h (x of the vertex) = −2; k (y of the vertex) = −5; Steps = 1. Divide by a: x² + 4x + 1.5 = 0
2. Move the constant: x² + 4x = −1.5
3. Add (b/2a)² = 4 to both sides: (x + 2)² = 2.5
4. Take square roots: x + 2 = ±1.5811388.

## Key terms

- **Vertex form**: y = a(x − h)² + k.
- **Perfect square trinomial**: An expression of the form (x + p)².

## FAQ

**Why is it called completing the square?**
You add the number that makes x² + px a perfect square, (x + p/2)², literally completing a square in the area model.

**What is (b/2)²?**
For x² + bx, adding (b/2)² completes the square. With a ≠ 1, divide by a first.

**What does vertex form tell me?**
a(x − h)² + k has its vertex at (h, k); the parabola opens up if a > 0.

**Does it always work?**
Yes, for any quadratic with a ≠ 0, though the roots may be complex.


## Sources

- [OpenStax: College Algebra 2e](https://openstax.org/details/books/college-algebra-2e)
- [OpenStax: Intermediate Algebra 2e](https://openstax.org/details/books/intermediate-algebra-2e)
