Updated
Using Quadratic equation solver
For ax² + bx + c = 0, the roots come from (−b ± √(b² − 4ac)) ÷ 2a. A numerically stable equivalent reduces cancellation for distinct real roots.
Enter coefficients, including zero. Negative discriminants produce complex conjugate roots; a zero leading coefficient reduces the problem to a linear equation. Nearly repeated roots can be sensitive to input precision.
A worked example
With coefficient a of x² = 1, coefficient b of x = -5, constant c = 6, the roots is 2, 3.
Before you use the result
Enter coefficients, including zero. Negative discriminants produce complex conjugate roots; a zero leading coefficient reduces the problem to a linear equation. Nearly repeated roots can be sensitive to input precision.
Cite this page
ToolOctopus. “Quadratic equation solver.” Updated 2026-09-26. https://tooloctopus.com/quadratic-equation-solver.
Add an access date if your instructions require one.
Citation formatting uses citeproc-js by Frank Bennett and Citation Style Language styles. Licence and source code.
