Quadratic Formula Calculator

Solve any quadratic equation ax² + bx + c = 0 for x — this quadratic equation solver finds real or complex roots and shows the discriminant and every formula step.

Roots (x)

How to Solve a Quadratic Equation

Enter the coefficients from your equation in standard form to see the roots and the working.

1

Write your equation in standard form

Rearrange your equation to look like ax² + bx + c = 0, then read off the coefficients a, b, and c (a cannot be 0, or it isn't a quadratic).

2

The calculator applies the quadratic formula

It computes the discriminant b² - 4ac, then applies x = (-b ± √(b² - 4ac)) / (2a) to find the roots — real if the discriminant is zero or positive, complex if it's negative.

3

Read the roots and steps

Both solutions for x appear at the top, with the discriminant and every formula step listed below. Solving two equations together instead? The System of Equations Solver handles a linear pair of unknowns.

Frequently Asked Questions

What is the quadratic formula?
The quadratic formula solves any equation of the form ax² + bx + c = 0 (where a is not 0) for x: x = (-b ± √(b² - 4ac)) / (2a). Plug in the coefficients a, b, and c, compute the discriminant b² - 4ac under the square root, and the ± gives you the two possible roots. This calculator does that arithmetic for you and shows each step.
How do you use this quadratic equation solver?
Write your equation in standard form ax² + bx + c = 0, then enter the three coefficients a, b, and c into the fields above. The solver instantly computes the discriminant and both roots (real or complex) and lists every step of the quadratic formula so you can check the work, not just the answer.
What does the discriminant tell you?
The discriminant is the b² - 4ac part under the square root in the quadratic formula, and its sign tells you what kind of roots to expect before you even finish solving. A positive discriminant means two distinct real roots, a discriminant of exactly zero means one repeated real root (the parabola just touches the x-axis), and a negative discriminant means the equation has no real roots — instead it has two complex-conjugate roots.
What happens when the discriminant is negative?
A negative discriminant means the square root in the quadratic formula is a square root of a negative number, so the two roots come out as a complex-conjugate pair in the form p + qi and p - qi rather than real numbers. Graphically, this means the parabola never crosses the x-axis. This calculator still solves those cases and reports both complex roots.