Quadratic Equation Solver
Solve quadratic equations with the discriminant and quadratic formula shown step by step, including exact radical and complex roots.
Solve quadratic equations with the discriminant and quadratic formula shown step by step, including exact radical and complex roots.
Your result will appear here
Solves with the quadratic formula and shows the discriminant, which decides the nature of the roots: two real roots when it is positive, one repeated root when it is zero, and a pair of complex conjugates when it is negative.
With whole-number or fractional coefficients the roots are exact: fractions when the discriminant is a perfect square, simplified radicals such as otherwise.
Example
x^2 - 5x + 6 = 0
→ x₁ = 2, x₂ = 3 (discriminant 1)
The quadratic formula.
The discriminant. Its sign gives the number of real roots.
Vieta’s formulas link the roots to the coefficients.
There are no real solutions. The solver shows the two complex conjugate roots; choose “Real roots only” to report “no real solutions” instead.