Quadratic Equation Calculator with Real & Complex Roots

Solve ax² + bx + c = 0, classify the discriminant, and inspect roots, vertex, axis and coefficient checks.

Enter your values

Calculations run on your device; inputs are not sent to our server.

Core result

Enter the three coefficients

Enter a, b and c for ax² + bx + c = 0. Coefficient a must be non-zero. The main result leads with the roots, then the discriminant, vertex, symmetry axis, opening direction and coefficient checks.

Formula and discriminant

The quadratic formula is x = (−b ± √(b²−4ac))/(2a). The discriminant Δ = b²−4ac determines two distinct real roots when positive, one repeated real root when zero, and a complex-conjugate pair when negative. The vertex is (−b/(2a), f(−b/(2a))).

Four independent checks

x²−5x+6=0 has roots 3 and 2, Δ=1 and vertex (2.5, −0.25). x²+2x+1=0 has the repeated root −1. x²+1=0 has roots i and −i. 2x²+9x−5=0 has roots 0.5 and −5. Each result is checked against root sum −b/a, root product c/a and direct substitution.

Interpretation, input errors and limits

A positive a opens upward; a negative a opens downward. A zero a is rejected because the equation becomes linear. Blank, comma-formatted and out-of-range coefficients are rejected. Results use floating-point arithmetic and displayed rounding; this tool does not solve inequalities, systems, cubic equations or supply a graph.

Sources and calculation scope

OpenStax gives the quadratic formula and discriminant interpretation. CALC LAB independently adds coefficient identities and substitution residuals without claiming competitive superiority or search volume.

Unexpected result? Tell us the inputs and what you expected.