Quadratic Equation Calculator
Enter a, b and c to solve a quadratic equation. See roots, the discriminant and the vertex of the parabola.
Updated November 2026 · How we build calculators
Result
Your result will appear here
Enter your numbers, then press Calculate.
How the Quadratic Equation Calculator works
The discriminant b² − 4ac decides the type of roots: positive gives two real roots, zero gives one repeated root, negative gives two complex roots. The vertex is at x = −b ÷ 2a.
Formula used
x = [−b ± √(b² − 4ac)] ÷ 2a
Discriminant D = b² − 4ac
Vertex = (−b/2a, f(−b/2a))
Step-by-step example
Using the default values in the calculator above:
- a (x² coefficient): 1
- b (x coefficient): -3
- c (constant): -4
The calculator then applies the formula above and returns:
- Two real roots: x₁ = 4, x₂ = -1
- Discriminant (b² − 4ac): 25
- Vertex: (1.5, -6.25)
What-if scenarios
Each table changes one input and keeps everything else at the calculator's default values.
| a (x² coefficient) | Two real roots |
|---|---|
| 0.5 | x₁ = 7.1231056, x₂ = -1.1231056 |
| 0.75 | x₁ = 5.0550505, x₂ = -1.0550505 |
| 1 (default) | x₁ = 4, x₂ = -1 |
| 1.5 | x₁ = 2.9148542, x₂ = -0.91485422 |
| 2 | x₁ = 2.3507811, x₂ = -0.85078106 |
Tips and background
Check your roots by substituting them back into the equation. Factoring is faster when the roots are integers.
Using the quadratic formula
For ax² + bx + c = 0, x = (−b ± √(b² − 4ac)) ÷ 2a. For x² − 3x − 4 = 0, the discriminant is 25, so x = (3 ± 5) ÷ 2, giving 4 and −1. The calculator shows both roots, the discriminant and the vertex.
What the discriminant tells you
If b² − 4ac is positive there are two real roots (the parabola crosses the x-axis twice), zero gives one repeated root (it just touches) and negative means two complex roots (no crossing). The vertex x = −b/2a marks the minimum or maximum. For related geometry see the slope calculator and square root calculator.
What do different equations produce?
| Equation | Discriminant | Roots |
|---|---|---|
| 2x² − 4x − 6 = 0 | 64 | 3 and -1 |
| x² − 6x + 9 = 0 | 0 | 3, repeated |
| x² + 2x + 5 = 0 | -16 | -1 ± 2i |
| -x² + 4x = 0 | 16 | 0 and 4 |
How do you avoid sign errors?
First move every term to one side so the equation equals zero. Then read a, b and c with their signs, in the order of x squared, x and the constant. If a term is missing, enter 0 for it. When b is negative, minus b becomes positive. Check an answer by putting it back into the original equation: it should give zero apart from small rounding.
Common mistakes to avoid with the Quadratic Equation Calculator
- Setting a = 0, which makes the equation linear.
- Forgetting to move all terms to one side so the equation equals zero.
- Dropping the ± and finding only one root.
Frequently asked questions
What if a = 0?
The equation is linear, not quadratic.
What are complex roots?
Roots involving the imaginary unit i, which occur when the discriminant is negative.
What does the vertex represent?
The minimum point if a > 0 or the maximum if a < 0.
What if the discriminant is negative?
The roots are complex numbers; the graph never crosses the x-axis.
How do I find the vertex?
x = −b ÷ 2a; substitute back to get y.
Can I solve by factoring instead?
Yes, when the roots are integers or simple fractions; the formula always works.