← All Calculators

Quadratic Equation Solver — Free Online Calculator

Finds real and complex roots of a quadratic equation ax² + bx + c = 0.

What is it?

The quadratic equation solver finds the real (and complex) roots of ax² + bx + c = 0 using the quadratic formula and the discriminant.

Formula

Discriminant: D = b² − 4ac Roots: x = (−b ± √D) / (2a) D > 0 → two real roots; D = 0 → one real root; D < 0 → two complex roots

Example

x² − 5x + 6 = 0 (a=1, b=−5, c=6). D = 25 − 24 = 1. x = (5 ± 1) / 2 → x₁ = 3, x₂ = 2.

Loading calculator…