Explore all tools
FREE ONLINE TOOLNo visitor account required

Quadratic Formula Calculator

Solve ax² + bx + c = 0 with the quadratic formula — discriminant, real or complex roots, vertex and axis, and the parabola drawn.

—

Roots

Discriminant b² − 4ac—
Nature of roots—
Vertex—
Axis of symmetry—
y-intercept—

Note: If a = 0 the equation is linear, not quadratic, and this calculator will ask for a non-zero a. Complex roots are shown in the form p ± qi.

Report a problem with this tool

The Quadratic Formula, With the Graph

Every quadratic ax2 + bx + c = 0 is solved by x = (−b ± √(b2 − 4ac)) / 2a. The part under the root — the discriminant D = b2 − 4ac — decides the story before you finish: positive means two real roots, zero means one repeated root, negative means a complex pair. The calculator reports the discriminant, both roots (complex ones written as p ± qi), the vertex and the axis of symmetry x = −b / 2a, and draws the parabola so you can see the roots as the points where the curve crosses the x-axis.

Worked Example

x2 − 5x + 6 = 0: D = 25 − 24 = 1, so x = (5 ± 1) / 2, giving roots 3 and 2 — matching the factorisation (x − 2)(x − 3). The vertex sits halfway between the roots at x = 2.5, where y = 6.25 − 12.5 + 6 = −0.25: the parabola dips just barely below the axis, which is exactly what a discriminant of 1 (roots close together) looks like.

Reading the Parabola

The sign of a sets the direction: positive opens upward (the vertex is a minimum), negative opens downward. The vertex form y = a(x − h)2 + k, with h = −b / 2a and k = c − b2 / 4a, is the same equation rewritten around the vertex — the form you want for projectile problems, where the vertex is the peak height and the positive root is where the object lands. When the discriminant is negative the parabola never touches the axis at all, which the graph shows as a curve floating entirely above or below it.

Frequently Asked Questions

What is the quadratic formula?

x = (-b plus or minus sqrt(b squared - 4ac)) / 2a. It solves every quadratic ax squared + bx + c = 0, including ones that will not factorise.

What does the discriminant tell me?

D = b squared - 4ac. Positive means two real roots, zero means one repeated root, and negative means two complex roots — the parabola never crosses the x-axis.

How do I find the vertex?

The vertex x-coordinate is -b / 2a, halfway between the roots. Substituting it back gives the y-coordinate, the minimum or maximum value of the function.

What if a equals 0?

Then the equation is linear (bx + c = 0) and the formula does not apply — divide -c by b instead. This calculator asks for a non-zero a.