Quadratic Equation Solver
Solve ax² + bx + c = 0 by the quadratic formula, factorisation or completing the square, with exact roots in surd form and a graph.
About the Quadratic Equation Solver
A quadratic equation has the form ax² + bx + c = 0 with a ≠ 0. The discriminant, b² − 4ac, tells you the nature of the roots before you solve: positive and a perfect square means two rational roots; positive otherwise, two irrational roots (surds); zero, one repeated root; negative, no real roots (two complex roots).
Choose the method your textbook uses. Factorisation works when b² − 4ac is a perfect square; completing the square and the formula always work. Every root is substituted back into the equation with exact arithmetic before it's shown.
Set Roots to "Real roots only" when a question asks only for real solutions; choose "Real and complex" to see complex roots as a ± bi.
The formula
- b² − 4ac
- the discriminant
- Sum of roots
- −b/a
- Product of roots
- c/a
Worked example
x² − 5x + 3 = 0
- b² − 4ac = 25 − 12 = 13
- x = (5 ± √13) ÷ 2
- x ≈ 4.303 or x ≈ 0.697
Questions people ask
Can I enter fractions?
Yes: a, b and c can be whole numbers, decimals or fractions like 1/2. The equation is multiplied through to clear them first.
What does a negative discriminant mean?
The parabola never touches the x-axis, so there are no real roots. The roots are complex numbers with an imaginary part.
Which method should I use?
Try factorisation when the numbers are small; otherwise use the formula. Completing the square is how the formula is proved, and it also gives the vertex.