Algebra & Calculus
Quadratic & Linear Equation Roots Calculator
Solve ax² + bx + c = 0, including repeated/complex roots, linear degeneracy and vertex geometry.
How the calculation works
Discriminant D = b² − 4ac. Real roots use q = −(b + sign(b)√D)/2, then q/a and c/q, avoiding cancellation of a small root; coefficients are scaled internally. A repeated zero root is handled separately. Complex roots have real part −b/(2a) and imaginary magnitude √(−D)/(2|a|). Vertex x = −b/(2a), y = ax²+bx+c.
Worked example
Example inputs — Coefficient a of x²: 1; Coefficient b of x: -3; Constant c: 2. Expected results — Equation classification: Two real roots; First root: 1; Second root: 2; Discriminant: 1; Quadratic vertex x: 1.5; Quadratic vertex y: -0.25.
Assumptions and limits
Numerical educational calculation with finite real inputs. Rounding, ill-conditioning and the stated model domain can limit accuracy; this does not manipulate arbitrary symbolic expressions. Real coefficients, with complex roots returned as conjugate text. When a=0 the same page classifies a linear equation, an identity or an inconsistent constant equation. Very small discriminants can be sensitive to coefficient rounding.
Reference and further reading
Read the underlying subject reference. Calculith is an independent implementation; the reference does not endorse or certify this tool.
Related calculators
- Polynomial Value, Derivatives & Synthetic Division Calculator
- Unique Linear System & Residual Calculator
- Matrix Product, Transpose & Trace Calculator
- Complex Number Arithmetic & Polar Result Calculator
- Tabular Polynomial & Piecewise Linear Interpolation Calculator
Example values are editable. Results are estimates where assumptions apply. Calculations run in your browser. Updated 2026-11-16.