Quadratic Formula Calculator

Solve any quadratic equation ax² + bx + c = 0 — real or complex roots, discriminant and vertex.

Your result will appear here

Fill in the fields and press Calculate.

Enter the three coefficients of a quadratic equation and this calculator solves it with the quadratic formula, giving both roots — real or complex — along with the discriminant that tells you which kind to expect and the vertex of the parabola.

How is it calculated?

The quadratic formula

For ax² + bx + c = 0 (with a ≠ 0), the roots are:

x = (−b ± √(b² − 4ac)) ÷ 2a

The discriminant decides the roots

The part under the root, b² − 4ac, is the discriminant, and its sign tells you what to expect:

DiscriminantRoots
PositiveTwo distinct real roots
ZeroOne repeated real root
NegativeTwo complex conjugate roots

The vertex

Every quadratic is a parabola with a turning point (vertex) at x = −b ÷ 2a, and the y-value there is the minimum (if a > 0) or maximum (if a < 0). The calculator returns both coordinates.

Worked example

Solve x² − 3x + 2 = 0. Here a = 1, b = −3, c = 2, so the discriminant is (−3)² − 4·1·2 = 9 − 8 = 1 — positive, so two real roots. Applying the formula: x = (3 ± √1) ÷ 2 = (3 ± 1) ÷ 2, giving x = 2 and x = 1. The vertex sits at x = 3 ÷ 2 = 1.5, y = −0.25.

FAQ

What is the quadratic formula?+

x = (−b ± √(b² − 4ac)) ÷ 2a. It solves any quadratic equation ax² + bx + c = 0 for its two roots. The ± gives the two solutions, and a must be non-zero for the equation to be quadratic.

What does the discriminant tell me?+

The discriminant, b² − 4ac, reveals the nature of the roots before you solve. Positive means two different real roots, zero means one repeated real root, and negative means two complex (conjugate) roots.

What are complex roots?+

When the discriminant is negative, the square root is of a negative number, so the roots involve the imaginary unit i (√−1). They come as a conjugate pair like −1 + 2i and −1 − 2i, and the parabola never crosses the x-axis.

What is the vertex of a parabola?+

The turning point, at x = −b ÷ 2a. It is the lowest point when a is positive (the parabola opens up) and the highest when a is negative. The tool gives both the x and y coordinates.

Why must a not equal zero?+

If a is 0 the x² term disappears and the equation becomes linear (bx + c = 0), not quadratic — the formula divides by 2a, which would be division by zero. The calculator requires a non-zero a.