Quadratic Equation Solver
Solve ax² + bx + c = 0 with the quadratic formula, reporting the discriminant and both roots, including complex roots.
- Discriminant (b² − 4ac)
- 1
- Nature
- Two distinct real roots
- Root 1
- 3
- Root 2
- 2
y = ax² + bx + c
The curve crosses the x-axis at each real root.
How it works
The quadratic formula solves ax² + bx + c = 0 as x = (−b ± √(b² − 4ac)) ÷ 2a. The discriminant, b² − 4ac, determines what kind of roots you get: positive means two distinct real roots, zero means one repeated real root, and negative means a pair of complex conjugate roots (since you'd be taking the square root of a negative number).
Coefficient a can't be zero — if it were, the x² term would vanish and the equation would just be linear, not quadratic.
The plot below shows the actual curve y = ax² + bx + c, centered on its vertex, with a dot marking each real root where the curve crosses the x-axis — for a complex pair, the curve simply won't touch the axis at all, which is a more direct way to see what a negative discriminant means than the number alone.
FAQ
What does it mean if the roots are complex?
A negative discriminant means the parabola y = ax² + bx + c never crosses the x-axis — there's no real number x that makes the equation zero. The two complex roots still exist mathematically as a conjugate pair (same real part, opposite-sign imaginary part), which is what's shown.
Related calculators
- Percentage Calculator
- GCD & LCM Calculator
- Circle Area & Circumference Calculator
- Right Triangle Calculator (Pythagorean Theorem)
- Ratio Simplifier
- Exponent & Root Calculator
- Oblique Triangle Solver (Law of Cosines)
- Distance, Midpoint & Slope Calculator
- Permutations & Combinations Calculator (nPr, nCr)
- Arithmetic & Geometric Sequence Calculator
- Regular Polygon Calculator
- Z-Score & Percentile Calculator
- Cubic Equation Solver
- Prime Factorization Calculator
- System of Linear Equations Solver (2 Equations)
- Half-Life Decay Calculator
- Vector Calculator (Dot Product, Cross Product, Angle)
- Ohm's Law Calculator
- Projectile Motion Calculator
- Matrix Determinant & Inverse Calculator (2x2 / 3x3)
- Ideal Gas Law Calculator (PV = nRT)
- Snell's Law Calculator (Refraction Angle)
- Wire Resistance Calculator
- Clock Angle Calculator
- Pythagorean Means Calculator (AM, GM, HM)
- Number Base Converter (Decimal to Binary, Octal, Hex)
- Dice Probability Calculator
- Pythagorean Triple Generator
- Binomial Probability Calculator
- Torque Calculator
- Law of Sines Triangle Solver
- Modular Exponentiation Calculator
- Simple Pendulum Period Calculator
- Kinetic Energy Calculator
- Complex Number Calculator
- Circular Sector & Arc Length Calculator
- System of 3 Linear Equations Solver
- Reynolds Number Calculator
- Coulomb's Law Calculator
- Speed of Sound in Air Calculator
- Thin Lens Equation Calculator
- Centripetal Force Calculator
- Resistors in Series and Parallel Calculator
- RC Circuit Time Constant Calculator
- Escape Velocity Calculator
- Doppler Effect Calculator
- Birthday Paradox Calculator
- Ellipse Area, Circumference & Eccentricity Calculator
- Hyperbola Calculator
- Hooke's Law Spring Calculator
- Molarity (Molar Concentration) Calculator
- Momentum & Impulse Calculator
- Kepler's Third Law Orbital Period Calculator
- Triangle Area from Coordinates Calculator
- Beer-Lambert Law Absorbance Calculator
- LC Circuit Resonant Frequency Calculator