Quadratic Equation Calculator
Enter values for a, b, and c in the equation ax² + bx + c = 0.
Tip: If a = 0, this becomes a linear equation.
What This Quadratic Equation Solver Does
This tool quickly solves equations in the standard form ax² + bx + c = 0. It computes the discriminant, identifies the type of roots, and displays the final solution values. If your equation is not truly quadratic because a = 0, the calculator automatically switches to linear-solving logic.
Whether you are a student practicing algebra, a teacher preparing examples, or a professional reviewing a model, this calculator gives clear, immediate results.
How the Math Works
1) The Discriminant
The discriminant is the core quantity:
D = b² - 4ac
- If D > 0, there are two distinct real roots.
- If D = 0, there is one repeated real root.
- If D < 0, there are two complex conjugate roots.
2) Quadratic Formula
For true quadratic equations (a ≠ 0), solutions are computed using:
x = (-b ± √(b² - 4ac)) / (2a)
3) Linear Fallback
If a = 0, the equation is linear: bx + c = 0. In that case, the solver returns:
- x = -c / b when b ≠ 0
- No solution when b = 0 and c ≠ 0
- Infinite solutions when b = 0 and c = 0
Example Inputs You Can Try
- a = 1, b = -3, c = 2 → roots: 1 and 2
- a = 1, b = 2, c = 1 → repeated root: -1
- a = 1, b = 0, c = 4 → complex roots: ±2i
- a = 0, b = 5, c = -10 → linear root: 2
Why This Is Useful
Quadratic equations appear in many real-world contexts:
- Physics (projectile motion, kinematics)
- Economics (optimization and cost/revenue models)
- Engineering (design curves and stability conditions)
- Computer graphics (parabolas and curve intersections)
A reliable calculator saves time and reduces arithmetic mistakes, especially when discriminants are negative or decimals are involved.
Quick Tips for Accurate Results
- Double-check signs, especially for negative b and c.
- Use decimal points carefully (e.g., 0.5 instead of 1/2).
- Remember: only equations with a ≠ 0 are truly quadratic.
- Interpret repeated roots correctly—they represent one unique x-value with multiplicity 2.
FAQ
Does this calculator support complex roots?
Yes. If the discriminant is negative, it returns roots in the form p ± qi.
Can I use fractional inputs?
Yes. Enter decimal equivalents such as 0.25, -1.5, or 2.75.
Is this suitable for homework checking?
Absolutely. It is ideal for verifying your final answers and understanding root behavior based on the discriminant.