MATH

Quadratic Formula Calculator

Solve a quadratic equation and find its real or complex roots. Free, instant, and explained.

Enter your details

Adjust the values below, then calculate.

Private by design. Your inputs are not sent to a server.

A clear answer starts here.

Enter your numbers and select Calculate.
Your result and explanation will appear here.

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

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

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.