How this calculator works
For ax² + bx + c = 0, the discriminant b² − 4ac determines the roots. A positive discriminant gives two real roots, zero gives a repeated real root, and a negative discriminant gives complex conjugate roots.
The formula
Use the units shown beside each field. Results are calculated from the full input precision, then rounded for display; use unrounded values when doing further calculations.
Keep in mind
The coefficient a must be nonzero. Displayed roots are rounded.
Frequently asked questions
What inputs should I use?+
Enter your values using the units shown in the field labels. The coefficient a must be nonzero. Displayed roots are rounded.
How is the answer calculated?+
For ax² + bx + c = 0, the discriminant b² − 4ac determines the roots. A positive discriminant gives two real roots, zero gives a repeated real root, and a negative discriminant gives complex conjugate roots. The formula is x = (−b ± √(b² − 4ac)) / 2a.
Are my inputs stored?+
No. Your calculator inputs and results stay in the browser and are not sent to our server. Reset restores the example inputs and clears the result.