What is the quadratic formula?
A quadratic equation is any equation that can be written as ax² + bx + c = 0, where a, b and c are numbers and a is not zero. The quadratic formula gives the solutions (the values of x where the curve crosses the x-axis) directly from those three coefficients:
The expression under the square root, b² − 4ac, is called the discriminant. It tells you what kind of roots to expect before you even finish solving:
- Discriminant > 0 → two distinct real roots (the parabola crosses the x-axis twice).
- Discriminant = 0 → one repeated real root (the parabola just touches the x-axis).
- Discriminant < 0 → two complex conjugate roots (the parabola never touches the x-axis).
How to use this calculator
- Type the coefficient of x² into the first box (this is a).
- Type the coefficient of x into the second box (this is b). Use a minus sign for negative terms.
- Type the constant into the third box (this is c).
- Press Solve step by step. You'll get the discriminant, both roots, the vertex, the factored form and a graph — with the full working underneath.
Tip
No equation handy? Tap one of the example chips above the Solve button to load a worked problem instantly.
Worked example: x² − 3x − 10 = 0
Here's exactly what the calculator does for the default equation, so you can follow the method by hand.
a = 1, b = −3, c = −10.D = b² − 4ac = (−3)² − 4(1)(−10) = 9 + 40 = 49.D = 49 > 0, expect two real roots. Take the square root: √49 = 7.x = (3 ± 7) / 2.x = (3 + 7)/2 = 5 and x = (3 − 7)/2 = −2.(x − 5)(x + 2) = 0. The roots are x = 5 and x = −2.Common mistakes to avoid
- Dropping a negative sign. In
b² − 4ac, a negative c makes−4acpositive — a frequent slip. - Forgetting the ± gives two answers. Unless the discriminant is zero, a quadratic has two roots.
- Dividing only part of the numerator by 2a. The whole
−b ± √Dis divided by2a.
Related calculators
Factoring Calculator
Factor any polynomial into its roots.
Equation Solver
Solve linear, quadratic and beyond.
Discriminant Calculator
Classify roots from b²−4ac alone.
System of Equations
Solve multiple equations at once.
Polynomial Calculator
Expand, factor and find roots.
Complex Numbers
Arithmetic with imaginary roots.
Frequently asked questions
Yes. When the discriminant is negative, the parabola never crosses the x-axis, and the calculator returns the two complex conjugate roots in the form p ± qi, with the full working.
If a is zero the equation is no longer quadratic — it's linear (bx + c = 0). The calculator detects this and solves it as a linear equation instead, x = −c / b.
When the roots are rational, the calculator displays the factored form such as (x − 5)(x + 2) = 0 alongside the roots, so you can check the factorisation directly.
Yes — it's completely free to use with no account required. For unlimited daily use across all calculators plus the AI tutor, an affordable plan is available.