Education & Academic

Quadratic Formula Calculator

Solve ax² + bx + c = 0 for real or complex roots.

Your inputs

Example values are filled in. Replace them with yours.

Calculator values

Your result

Example result

Real roots

3 and 2

Discriminant
1
Save or compare

Saved calculations

Save up to five results in this browser. Select up to three to compare.

    How to use the calculator

    1. Replace the example inputs with your values. Use the units shown beside each field.
    2. Select Calculate to update the answer and breakdown. Select Reset to bring back the example.

    Formula

    Discriminant D = b² − 4ac. Roots = (−b ± √D) ÷ (2a). For negative D, use i√(−D).

    Worked example

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

    Assumptions and limits

    Coefficient a must be nonzero. Floating-point rounding can affect equations whose discriminant is extremely close to zero.