Calculators Free

Completing the square calculator

Calculator

The calculator needs JavaScript. The tables below give the same numbers for common cases.

How it is worked out

  1. Start with x² − 6x + 5.
  2. h = −b ÷ 2a = 3.
  3. k = c − b² ÷ 4a = 5 − 36 ÷ 4 = -4.
  4. So y = a(x − h)² + k = (x − 3)² − 4.
Worked examples
InputsAnswer
a: 1; b: -6; c: 5x² − 6x + 5 = (x − 3)² − 4, with vertex (3, -4).
a: 2; b: 8; c: 32x² + 8x + 3 = 2(x + 2)² − 5, with vertex (-2, -5).
a: -1; b: 4; c: 0−x² + 4x = -1(x − 2)² + 4, with vertex (2, 4).

How to use it

Completing the square rewrites a quadratic ax² + bx + c as a(x − h)² + k. The numbers are h = −b ÷ 2a and k = c − b² ÷ 4a, and (h, k) is the vertex of the parabola. Vertex form makes the maximum or minimum, the axis of symmetry and the shifts of the graph easy to read.

To solve ax² + bx + c = 0 by completing the square, set a(x − h)² + k = 0, move k across, divide by a and take the square root of both sides.

Frequently asked questions

What is the vertex form of a quadratic?

a(x − h)² + k, where (h, k) is the vertex.

How do I find h and k?

h = −b ÷ 2a and k = c − b² ÷ 4a.

Why complete the square?

It gives the vertex directly and is the method that produces the quadratic formula.

Method: standard arithmetic shown step by step; no outside data is used. Checked 2026-11-12.

Written by Calculators Free Editorial Team · Data checked 2026-11-12
About · How we verify this · Editorial policy · Corrections

General information only. Results are plain arithmetic on the numbers you enter; check anything important (money, health, school work) against your own records or the official source.