Quadratic Equation Solver

Free online quadratic equation solver. Find real and complex roots of ax² + bx + c = 0, with discriminant analysis and step-by-step explanation.

Calculator not found.

How It Works

  1. 1

    Enter the three coefficients a, b, and c from your equation ax² + bx + c = 0.

  2. 2

    The solver calculates the discriminant (b² − 4ac) to determine whether roots are real, repeated, or complex.

  3. 3

    If the discriminant is non-negative, both roots are displayed using the quadratic formula x = (−b ± √discriminant) / 2a.

  4. 4

    If a is 0, the equation is linear (bx + c = 0) and a single root is returned instead.

Formula

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

Examples

Solve x² − 5x + 6 = 0

a=1, b=−5, c=6. Discriminant = 25 − 24 = 1. Roots: x₁ = 3, x₂ = 2.

Solve x² + 2x + 5 = 0

a=1, b=2, c=5. Discriminant = 4 − 20 = −16. Roots are complex: x = −1 ± 2i.

Frequently Asked Questions