Quadratic Equation Solver
Enter the coefficients of ax^2 + bx + c = 0.
How this calculator works
The quadratic formula gives x = (-b +/- sqrt(b squared – 4ac)) / 2a. The part under the root, D = b squared – 4ac, is the discriminant: positive means two real roots, zero means one repeated root, and negative means two complex roots.
Frequently asked questions
What if a is zero?
Then the equation is linear, not quadratic, and has a single solution.
What does a negative discriminant mean?
The parabola never crosses the x-axis, so the roots are complex numbers.
How do I check my answer?
Substitute each root back into ax^2 + bx + c. The result should be 0.