Quadratic Formula Calculator
Enter a, b, and c below to instantly solve ax² + bx + c = 0 — real or complex roots, shown with the discriminant.
For ax² + bx + c = 0
The Quadratic Formula
x = (−b ± √(b² − 4ac)) / 2a. The ± means there are generally two solutions — one from adding the square root, one from subtracting it.
Worked example
Solve x² − 3x + 2 = 0 (a = 1, b = −3, c = 2).
Discriminant = (−3)² − 4(1)(2) = 9 − 8 = 1
x = (3 ± √1) / 2 = (3 ± 1) / 2
x₁ = 4/2 = 2, x₂ = 2/2 = 1
Frequently Asked Questions
What is the quadratic formula?
For any equation in the form ax² + bx + c = 0, x = (−b ± √(b² − 4ac)) / 2a. It solves for x directly, without needing to factor the equation.
What is the discriminant, and what does it tell you?
The discriminant is b² − 4ac, the part of the formula under the square root. If it's positive, there are two distinct real roots. If it's exactly zero, there's one repeated real root. If it's negative, the roots are complex numbers, not real numbers.
What does it mean if the roots are complex?
A negative discriminant means the parabola never crosses the x-axis — there's no real number that solves the equation. The two solutions still exist, but as complex numbers involving i (the square root of −1).
Why can't a be 0?
If a = 0, the x² term disappears and the equation becomes bx + c = 0 — a linear equation with at most one solution, not a quadratic one, so the quadratic formula no longer applies.
Related Calculators
- Log Calculator — Algebra
- Exponent Calculator — Algebra
- Factoring Calculator — Algebra
- System of Equations Calculator — Algebra