EVERYDAY MATH & PLANNING

Quadratic equation solver

Solve ax² + bx + c = 0 with real or complex roots, discriminant, and calculation steps.

Calculated on your device

Enter your values

Enter finite coefficients, including negative values and decimals. If a is zero, the solver handles the remaining linear or constant equation. Complex roots are shown as a conjugate pair.

YOUR ANSWER

Results

Select Calculate to see results.

Calculation steps

Calculate to see the steps for your inputs; the worked example below is available without JavaScript.

Worked example

x² − 3x + 2 = 0 has discriminant 1 and roots x = 1 and x = 2.

How to use this calculator

Enter finite coefficients, including negative values and decimals. If a is zero, the solver handles the remaining linear or constant equation. Complex roots are shown as a conjugate pair.

Displayed values are rounded. Calculations support education and general planning.

Find another calculator

INTERPRET THE ANSWER

The discriminant explains the root type

For x² − 5x + 6 = 0, the discriminant is 25 − 24 = 1 and the roots are 2 and 3. Substitute each root to check.

Assumptions and common mistakes

A zero leading coefficient is not quadratic. A negative discriminant gives complex conjugate roots, rather than real x-axis crossings.

Use the worked example above to check the input convention before entering your own values. Displayed decimals are rounded; extra digits do not increase the precision of your measurements. Read about calculation accuracy and corrections.