Quadratic Equation Solver
Type in a, b, and c - Axiom shows every step, starting with the discriminant.
How to use this calculator
Write the equation as ax² + bx + c = 0, enter a, b and c with their signs, then press Solve step-by-step. The working shows the discriminant and the real roots.
How the calculation works
The discriminant D = b² − 4ac determines the real-root case: positive gives two roots, zero gives a repeated root, and negative gives no real roots. The quadratic formula is x = (−b ± √D)/(2a). This solver uses that formula rather than a separate factoring mode. When the coefficients are whole numbers and D is a perfect square, the roots are exact and are shown as whole numbers or fractions; every other case shows rounded decimals.
Worked examples
1. Find two real roots
Enter 1, −5, 6 for x² − 5x + 6 = 0. D = 25 − 24 = 1, so x = (5 ± 1)/2 gives 2 and 3. D is a perfect square, so both roots are exact. Substituting either value makes the equation zero.
2. Recognize a repeated root
For x² − 6x + 9 = 0, enter 1, −6, 9. D = 36 − 36 = 0, giving x = 6/2 = 3. The curve touches the x-axis at that root.
3. Recognize no real roots
For x² + 1 = 0, enter 1, 0, 1. D = −4, so there are no real solutions. Complex roots exist, but this tool does not output them.
Frequently asked questions
What if my equation is not equal to zero?
Move all terms to one side first. For x² = 5x − 6, enter the equivalent equation x² − 5x + 6 = 0, using 1, −5, and 6.
Can the coefficient a be zero?
No. Removing x² makes the equation linear. Use the Linear Equation Solver for that case instead.
Does the calculator show complex roots?
No. A negative discriminant produces a no-real-solutions message. It does not mean the equation has no solutions over the complex numbers.
Can I check the roots by factoring?
If it factors cleanly, you can verify a result by hand: x² − 5x + 6 = (x − 2)(x − 3), so the roots are 2 and 3. This calculator does not factor the equation; it finds real roots with the quadratic formula.
Are decimal roots exact?
Sometimes. If every coefficient is a whole number and D is a perfect square, both roots are exact and the working prints them with = as whole numbers or fractions, such as 2 and 3, or 2/3 and 1. Otherwise the roots are irrational or not checkable exactly, so the decimals are rounded and the working uses ≈. A near-zero discriminant may also be treated as zero within floating-point precision.
Keep learning with related tools
Plot the same coefficients in the graphing calculator to connect roots with x-intercepts. For first-degree equations use the linear solver, and read the quadratic equations lesson for the reasoning behind the formula. Related tools: Linear & Quadratic Graphing Calculator, Linear Equation Solver. Read the Quadratic Equations lesson or practice quadratic equations to build confidence without relying on a calculator.