Quadratic Equation Calculator
Solve ax² + bx + c = 0 — get roots, discriminant, step-by-step working, and an interactive parabola graph.
Step-by-Step Solution
Full working using the quadratic formula
Parabola Graph
What Is a Quadratic Equation?
A quadratic equation is a second-degree polynomial of the form ax² + bx + c = 0, where a ≠ 0. The solutions (also called roots or zeros) are the x-values where the parabola crosses the x-axis.
The Quadratic Formula
Key Properties
Solved Examples — Quadratic Equations
Practice solving quadratic equations with these step-by-step worked examples covering all three cases: two distinct real roots, one repeated root, and complex (imaginary) roots. Click Try it on any example to load it into the calculator above and see the full solution, graph, and properties instantly.
Two Distinct Real Roots (Δ > 0)
One Repeated Root (Δ = 0)
Complex (Imaginary) Roots (Δ < 0)
Real-World Application
A ball is thrown upward from ground level with an initial velocity of 20 m/s. Its height h (in metres) after t seconds is given by h(t) = −5t² + 20t. Setting h = 0 to find when the ball lands: −5t² + 20t = 0, i.e. 5t² − 20t = 0.
Frequently Asked Questions
What is the discriminant and why does it matter?
The discriminant (Δ = b²−4ac) tells you how many real solutions the equation has — without fully solving it. Δ > 0 means two distinct real roots, Δ = 0 means one repeated real root, and Δ < 0 means no real roots (two complex conjugate roots).
What if a = 0?
When a = 0, the equation becomes linear (bx + c = 0), which is solved differently. A quadratic equation specifically requires a ≠ 0.
How do Vieta's formulas help?
Vieta's formulas relate coefficients to roots without solving the equation. For ax² + bx + c = 0: the sum of roots x₁ + x₂ = −b/a and the product of roots x₁ × x₂ = c/a. These are useful for checking your answer and working backwards from known roots.
What are complex roots?
When Δ < 0, the square root of a negative number is involved. The roots are expressed as p ± qi where i = √(−1) is the imaginary unit. They always come in conjugate pairs and have no real-number value on the number line.
Can I use decimals or fractions as coefficients?
Yes — this calculator accepts any real number as a coefficient, including decimals. For fractions, convert to decimal first (e.g. ½ = 0.5).