Quadratic Equation Solver
Solve ax² + bx + c = 0 using the quadratic formula. See the discriminant, exact and decimal roots (including complex roots), the vertex, axis of symmetry and a parabola graph.
How this calculator works
A quadratic equation has the form ax² + bx + c = 0, where a is not zero. The Quadratic Equation Solver applies the quadratic formula x = (−b ± √(b² − 4ac)) ÷ 2a to find the roots, then reports the discriminant, the vertex, the axis of symmetry and a graph of the parabola.
The discriminant b² − 4ac controls the nature of the roots. When it is positive there are two distinct real roots; when it is zero there is one repeated real root; and when it is negative the roots are a pair of complex conjugates shown in the form p ± qi. The solver handles all three cases and labels them clearly.
The vertex of the parabola sits on the axis of symmetry at x = −b ÷ 2a. Substituting that x back into the equation gives the y-coordinate of the turning point. The graph plots y = ax² + bx + c across a window centred on the vertex, marking real roots as teal points and the vertex as a purple point so you can see the geometry behind the algebra.
If a is set to 0 the expression is no longer quadratic (it becomes linear) and the solver asks you to use the Linear Equation Solver instead. Decimal and negative coefficients are fully supported.
Worked example
x² − 3x + 2 = 0: discriminant = 9 − 8 = 1, roots x = 2 and x = 1.
Common uses
- Finding roots of a parabola
- Physics projectile problems
- Optimisation via the vertex
- Checking factoring results
Common mistakes
- Setting a = 0 (that is linear, not quadratic)
- Sign errors when squaring b
- Forgetting the ± gives two roots
Frequently asked questions
What does the discriminant tell me?
If b² − 4ac > 0 there are two real roots, if = 0 one repeated root, and if < 0 two complex roots.
Are complex roots supported?
Yes. When the discriminant is negative, the roots are shown in the form p ± qi.
What is the vertex?
The turning point of the parabola at x = −b ÷ 2a.