CalculatorForEver
MATH / CALCULATOR

Quadratic Formula Calculator

Solve ax² + bx + c = 0, including complex roots.

The quadratic formula solves equations written as ax² + bx + c = 0 when a is nonzero. The discriminant determines whether the roots are real or complex.

Your numbers

BROWSER-LOCAL INPUTS

Your inputs stay in this browser. No account needed.

RESULT

Your result

Enter your values and select Calculate.

Check the units and assumptions before using this result.

METHOD

How the quadratic formula calculator works

How to use this calculator

Move all terms to one side and enter the coefficients, including their signs.

What the result means

The discriminant, b² − 4ac, tells you the type of roots. A positive value gives two real roots, zero gives a repeated real root, and a negative value gives a complex-conjugate pair. The coefficient a must be nonzero; otherwise the equation is not quadratic.

The formula

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

A worked example

For x² − 5x + 6 = 0, the roots are 2 and 3.

Assumptions & methodology

Decimal inputs use floating-point arithmetic. Very close roots or extreme coefficient scales can affect precision. Results are rounded for display; intermediate calculations retain precision. This tool is informational and does not replace institutional or professional guidance.

References

OpenStax: Introductory Statistics and Prealgebra.

INTERPRETATION

Understanding quadratic formula results

Read the discriminant before the roots

For b²−4ac above zero there are two real roots; at zero there is one repeated real root. A negative discriminant produces a conjugate pair of complex roots. Complex output is not an input error when the equation has no real solution.

Move every term to the same side

Combine like terms and enter signed coefficients from the resulting zero-equals form. An equation with a = 0 is linear, so it is outside this calculator’s quadratic model. Substituting a reported root back into the original equation is a useful check, allowing for rounding.

Example: reading the quadratic discriminant

For ax² + bx + c = 0, the discriminant is b² − 4ac. A quadratic requires a nonzero a.
EquationDiscriminantRoots
x² − 5x + 6 = 012 and 3
x² − 4x + 4 = 002, a repeated root
x² + 1 = 0−4No real roots; complex roots are ±i
RELATED GUIDES

Quadratic Formula questions and examples

Read a worked explanation before trying another calculation.

QUESTIONS

Quadratic Formula questions

Why are some roots complex?+

A negative discriminant requires the square root of a negative number. The result is expressed with i, where i² = −1.

How should I enter a missing x term?+

Enter b as zero. Keep the sign of every other coefficient when moving all terms to one side.