Solve a quadratic equation from its coefficients
Find the roots of an equation in standard quadratic form using its entered coefficients.
How to use this calculator
- Rewrite the equation as ax²+bx+c=0 and enter all three signed decimal coefficients, including explicit zeros.
- Keep a nonzero; this calculator does not silently switch to a linear equation.
- Calculate and inspect the discriminant, real-root classification or complex-conjugate components.
Methodology and assumptions
Compute Δ=b²−4ac and roots x=(−b±√Δ)/(2a). Δ>0 gives two distinct real roots; Δ=0 gives one repeated root; Δ<0 gives real part −b/(2a) and imaginary magnitude √(−Δ)/(2|a|). Exact rational arithmetic classifies Δ; real irrational approximations use stable equivalent expressions to reduce cancellation.
Precision and rounding
Exact fractions/radicals are preserved where applicable. Decimal roots/components use 12 significant figures; Δ is classified before rounding, so a very small nonzero discriminant is not treated as zero.
Worked example
For a=1,b=−5,c=6, Δ=25−24=1, so x=(5±1)/2 gives 2 and 3. Check 2²−5×2+6=0 and 3²−5×3+6=0. For a=1,b=0,c=1, Δ=−4 gives roots ±i rather than “no roots.”
Reference examples are specification evidence only; they do not claim that this interface or calculation engine has been tested.
Interpreting the result
Roots are solutions to the equation as entered. They do not simplify or validate a separate applied model that produced those coefficients.
Numeric coefficients for a genuine quadratic only; no symbolic parameter solving or applied-model validation. Zero a is rejected. Complex roots are algebraic solutions, not automatically meaningful physical quantities.
Common mistakes
- Write the equation with all terms on one side.
- Do not swap b and c.
- If a=0, the equation is not quadratic.
- Complex and real-root behavior follows the supported scope.
Frequently asked questions
What is the discriminant?
It is b²−4ac and determines the nature of roots under the quadratic formula.
What if a equals zero?
The input is no longer a quadratic and is handled as an unsupported case.
Can roots be complex?
Only if the calculator specification supports that case; the result states the supported output.
Should I round roots before using them?
No. Use the unrounded result where precision matters.
Can the calculator solve a factored equation?
Enter its coefficients in standard form.
Does a negative discriminant mean the equation has no solutions?
It means no real roots; the calculator returns the complex-conjugate pair.
Sources and further reading
These references support the documented method or context. They do not imply application testing or endorsement.