Quadratic Formula Calculator

Solve quadratic equations with the quadratic formula. Get real or complex roots, the discriminant and the vertex. Free calculator with formulas.

FreeNo signupUpdated Nov 14, 2026By CalculatorBase Editorial Team

Quadratic Formula Calculator

Result
–

How the quadratic formula works

A quadratic equation has the form ax² + bx + c = 0, with a not equal to zero. The quadratic formula gives its solutions directly from the three coefficients. The part under the square root, called the discriminant, tells you what kind of roots to expect.

The formulas

x = (-b ± √(b² – 4ac)) / 2a
Discriminant D = b² – 4ac
Vertex x = -b / 2a
Example: for x² – 3x + 2 = 0, a = 1, b = -3, c = 2. D = 9 – 8 = 1. The roots are (3 + 1) / 2 = 2 and (3 – 1) / 2 = 1. The vertex is at (1.5, -0.25).

What the discriminant tells you

DiscriminantRoots
D greater than 0Two different real roots
D equal to 0One repeated real root
D less than 0Two complex roots (conjugates)

When roots are complex, they are shown as a real part plus or minus an imaginary part. The graph of such an equation does not cross the x-axis.

Frequently asked questions

What is the quadratic formula?

x equals negative b, plus or minus the square root of b squared minus 4ac, all divided by 2a.

What is the discriminant?

The value b squared minus 4ac. It decides whether the equation has two real roots, one repeated root or two complex roots.

Why can a not be zero?

If a is zero, the x squared term disappears and the equation becomes linear, not quadratic.

What does the vertex mean?

It is the turning point of the parabola. For a positive a it is the lowest point, for a negative a the highest.

Can the calculator handle complex roots?

Yes. When the discriminant is negative, it shows the roots in the form p plus or minus qi.

Explore other calculators

About this calculator

Written by
CalculatorBase Editorial Team
Last reviewed
November 14, 2026
Method
Standard formulas applied to your inputs, with no data stored.

Results are calculated from the values you enter using standard published formulas. They are estimates for general information. Read the full disclaimer.