Enter a, b and c from ax² + bx + c = 0. You get both roots, real or complex, and the working.
Your data stays in your browser
This tool runs on JavaScript inside your browser. Nothing you add here is uploaded to our server, so it works for confidential data too. How we handle data
x = (−b ± √(b² − 4ac)) / 2a. For x² − 5x + 6 = 0, a = 1, b = −5 and c = 6. The discriminant is 25 − 24 = 1, so x = (5 ± 1) / 2, giving x = 2 or x = 3. You can check by putting each root back into the equation: 4 − 10 + 6 = 0 and 9 − 15 + 6 = 0.
Use the sum and product of roots. For ax² + bx + c = 0, the roots add up to −b/a and multiply to c/a. In x² − 5x + 6 = 0, 2 + 3 = 5 and 2 × 3 = 6, both matching. The solver shows these two values so you can spot mistakes in your own working.
For other maths homework, use the LCM and HCF Calculator, the Mean, Median, Mode Calculator, or the scientific Online Calculator for square roots and powers.