Tested tool guide
Tested browser tools
Checked August 16, 2026
What Quadratic Equation Solver does, with a checked example
The roots of ax^2 + bx + c = 0 fall out of one formula: x = (-b +/- sqrt(b^2 - 4ac)) / (2a). Feed the tool the three coefficients and it works through that formula in public, showing the discriminant, each substitution, and the simplified roots, with the parabola drawn and its x-intercepts marked. The most common error is sign handling: when the equation already shows a minus, as in x^2 - 5x + 6 = 0, the middle coefficient is b = -5, not 5. The discriminant alone predicts the outcome: positive means two real roots, zero means one repeated root, negative means two complex roots.
Worked example
A concrete input and expected output from the current implementation.
Input
Equation: x^2 - 5x + 6 = 0 (a = 1, b = -5, c = 6)
->
Expected output
Discriminant: D = (-5)^2 - 4(1)(6) = 25 - 24 = 1. Since D > 0 there are two real roots. x = (5 +/- sqrt(1)) / 2, so x = (5 + 1) / 2 = 3 and x = (5 - 1) / 2 = 2. Roots: x = 2 and x = 3. The parabola crosses the x-axis at x = 2 and x = 3, with its vertex at x = 2.5.
D = 1 is a positive perfect square, so the roots are real, distinct, and rational, matching the factorization (x - 2)(x - 3). The vertex lies at x = 2.5, halfway between the roots, because a parabola is symmetric about its axis.