Math

Quadratic equation calculator

Find the discriminant and real roots of the equation ax² + bx + c = 0.

Enter the information

CALCULATION RESULT
Diskriminant1
The first root3
The second root2
EXPLANATION OF CALCULATION

The formula

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

An example

The roots of the equation x² − 5x + 6 = 0 are 2 and 3.

Instructions for use

  1. Enter the appropriate numbers in the fields.
  2. The result is updated as the data changes.
  3. Check the calculation with formula and example.

Model notes

a cannot be zero. If the discriminant is negative, there is no real root; complex roots are not displayed in this tool.