Home · Math · Algebra · Solving Quadratic Equations by Completing the Square

Solving Quadratic Equations by Completing the Square

Rewrite ax² + bx + c by completing the square: the vertex form a(x − h)² + k, with the vertex (h, k) computed here.

Your figures

Example result — edit the figures to make it yours

2

Vertex x = h

Vertex y = k-1.00
Discriminant b² − 4ac4.00

What this calculator does

Rewrite ax² + bx + c by completing the square: the vertex form a(x − h)² + k, with the vertex (h, k) computed here. Every figure on this page is computed from the formula or definition stated below, with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

h = −b ÷ 2a; k = c − b² ÷ 4a

Completing the square turns the quadratic into vertex form, exposing the vertex directly: h = −b/(2a) and k = f(h) = c − b²/(4a). The discriminant is included because the same manipulation leads to the quadratic formula.

Worked example

With the example inputs this page opens with (coefficient a 1, coefficient b -4, coefficient c 3), the result is 2.00 — vertex x = h. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — varying coefficient a
Coefficient aVertex x = h
0.54.00
0.82.50
12.00
1.251.60
1.51.33
21.00

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Solving Quadratic Equations by Completing the Square work?

Rewrite ax² + bx + c by completing the square: the vertex form a(x − h)² + k, with the vertex (h, k) computed here. Coefficients a, b, c → Vertex x (h), vertex y (k), discriminant. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Solving Quadratic Equations by Completing the Square need?

Coefficients a, b, c → Vertex x (h), vertex y (k), discriminant. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Solving Quadratic Equations by Completing the Square free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.