MathKit

Quadratic Equation Solver

Enter a, b, and c to find the roots using the quadratic formula, including complex roots.

Calculator

Quadratic Equation Solver

Result

—

Formula

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

Step-by-step

  1. 1

    Enter coefficients

    Provide a (≠ 0), b, and c.

  2. 2

    Compute discriminant

    D = b² − 4ac determines the root type.

  3. 3

    Read the roots

    Two real, one repeated, or complex roots.

Worked example

Example input: a: 1, b: -3, c: 2

Result: roots: 2, 1

Related tools

Frequently asked questions

What does the discriminant tell me?

D > 0: two real roots. D = 0: one repeated root. D < 0: two complex conjugate roots.

Useful links