Completing the Square Calculator

Quick answer

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.

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

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

  1. a
  2. b
  3. 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.

Formula

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

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)².

Frequently asked questions

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

  1. OpenStax: College Algebra 2e
  2. OpenStax: Intermediate Algebra 2e

Cite this calculator

Speedy Calculator. (2026). Completing the Square Calculator. Speedy Calculator. https://speedycalculator.com/calculators/math/completing-the-square/