Rearrange your equation so one side is 0 first. Leave a box blank for 0: x² − 9 = 0 is a = 1, b = 0, c = −9.

x = 2 or x = 3
the roots

Discriminantb² − 4ac = 1: two real roots
Factorised(x − 2)(x − 3) = 0
Vertex (turning point)(2.5, −0.25), a minimum

The quadratic formula

x = (−b ± √(b² − 4ac)) ÷ 2a. For x² − 5x + 6 = 0, a = 1, b = −5 and c = 6, so b² − 4ac = 25 − 24 = 1 and x = (5 ± 1) ÷ 2, which is 2 or 3. The discriminant, b² − 4ac, tells you how many real roots there are: two if it's positive, one (repeated) if it's zero, and none if it's negative, when the roots are complex numbers.

Examples

EquationDiscriminantRoots
x² − 5x + 6 = 01x = 2 or 3
x² − 9 = 036x = −3 or 3
2x² − 7x + 3 = 025x = 0.5 or 3
x² + 2x + 1 = 00x = −1 (repeated)
x² + x − 1 = 05x = −1.618 or 0.618
x² + 1 = 0−4x = ±i

Frequently asked questions

What is the quadratic formula?

x = (−b ± √(b² − 4ac)) ÷ 2a, for an equation written as ax² + bx + c = 0. The ± gives the two roots.

What does the discriminant tell you?

b² − 4ac: if it's positive there are two real roots, if it's zero there's one repeated root, and if it's negative there are no real roots (the graph doesn't cross the x-axis).

How do you factorise a quadratic?

For x² + bx + c, find two numbers that multiply to c and add to b: for x² − 5x + 6, −2 and −3, so it's (x − 2)(x − 3). The calculator gives the factorised form whenever the roots are whole numbers or fractions.

What is the vertex of a quadratic?

The turning point of its graph (a parabola), at x = −b ÷ 2a. It's a minimum when a is positive and a maximum when a is negative.

What if there are no real roots?

The roots are complex numbers, written with i (the square root of −1). x² + 1 = 0 has roots i and −i.

Embed this calculator on your website

Free to use. Paste this into your page's HTML; please keep the link underneath.

Related calculators