How to use the calculator
- Replace the example inputs with your values. Use the units shown beside each field.
- 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.