Quadratic Equation Calculator

Solve ax² + bx + c = 0 and inspect its discriminant.

What does this calculator do?

A quadratic equation has the form ax² + bx + c = 0, where a is not zero.

Formula

The discriminant determines the number of real roots before the quadratic formula is applied:

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

How to use it

Enter coefficients a, b and c. A must not be zero. The tool reports the discriminant and all real roots.

Worked example

For x² − 5x + 6 = 0, Δ = 1 and the two roots are 3 and 2.

Formula version1.0.0
Formulax = (−b ± √(b² − 4ac)) ÷ 2a
Precision6 decimals

Frequently asked questions

What does the discriminant mean?

A positive discriminant gives two real roots, zero gives one repeated root and a negative value gives complex roots.

Why can a not be zero?

If a is zero, the x² term disappears and the equation is linear rather than quadratic.

Does this calculator show complex roots?

It identifies that no real roots exist; this version reports real-valued outputs only.

Sources

Related calculators

Last updated: 2026-08-05 · v1.0.0 · Report an error