Quadratic Equation Solver
Solve ax² + bx + c = 0 with full working: real or complex roots, discriminant Δ, vertex, Vieta's formulas and factored form. Exact fractions when possible.
How to Solve Quadratic Equations?
A quadratic equation is a second-degree polynomial equation in a single variable x with the form:
ax2 + bx + c = 0
The solutions (roots) of the equation can be found using the quadratic formula:
x = (-b ± √(b2 - 4ac)) / (2a)
The discriminant (Δ = b² - 4ac) determines the nature of the roots:
- If Δ >0: Two distinct real roots
- If Δ = 0: One repeated real root (two equal roots)
- If Δ < 0: Two complex conjugate roots
Applications of Quadratic Equations
Quadratic equations describe any process where two variables are related by a degree-2 polynomial, which makes them ubiquitous in science and engineering. In physics, the height of a projectile under constant gravity is y(t) = y₀ + v₀t − ½gt², a quadratic whose positive root is the time of impact. In optics and architecture, the cross-section of every parabolic reflector — from car headlights to the 305 m Arecibo radio telescope dish — is the graph y = ax². In electrical engineering, the resonant frequency of an RLC circuit and the optimal load impedance for maximum power transfer both reduce to solving a quadratic in ω or R. In finance, break-even analysis with quadratic cost curves and yield-to-maturity calculations on bonds with two future cash flows are quadratic in the discount rate. Even Kepler's laws of planetary motion, the ballistic trajectory of every cannon shell in the 17th century, and the modern AdaBoost weight-update rule in machine learning all come back to ax² + bx + c = 0.
About this quadratic equation solver
Enter the three coefficients a, b, c of the equation ax² + bx + c = 0 (a must be non-zero) and the solver returns both roots, the discriminant Δ, the vertex of the parabola, and the full working printed in the 'Solution steps' box. Rational roots are shown exactly (e.g. x = 1/2 or x = −3), irrational roots in decimal form rounded to 10 significant digits, and complex roots in p ± qi form when Δ < 0. The implementation handles the numerical pitfalls of the textbook formula — when |b| is large compared to |ac|, naive evaluation of (−b ± √Δ)/(2a) cancels significant digits in one of the roots, so the solver uses the numerically stable variant x = 2c / (−b ∓ √Δ) for the smaller root. The calculation runs entirely in your browser — no server round-trip — so it works offline once the page is loaded.
Frequently Asked Questions

