The defaults, x² − 3x + 2 = 0, factor cleanly: the discriminant is 1, so there are two real roots, x = 2 and x = 1. Enter the coefficients a, b, and c of ax² + bx + c = 0 and get the roots from the quadratic formula, along with the discriminant and the vertex of the parabola.
Suppose you put the default values into Quadratic Equation Solver:
Plug those into the formula x = (−b ± √(b² − 4ac)) / 2a and the result is:
The solver applies the quadratic formula x = (−b ± √(b² − 4ac)) / 2a, the closed-form solution obtained by completing the square on ax² + bx + c = 0. It first evaluates the discriminant D = b² − 4ac, which decides the character of the roots: D > 0 gives two distinct real roots, D = 0 gives one repeated real root at x = −b/2a, and D < 0 gives a complex-conjugate pair, which the calculator writes out as x = re ± im·i rather than reporting no solution. It also reports the parabola's vertex — x = −b/2a and y = c − b²/4a — the turning point on the axis of symmetry midway between real roots. The formula requires a ≠ 0; with a = 0 the equation is linear, not quadratic.
Last reviewed July 2, 2026 · Editorial policy