ax² + bx + c = 0Find roots of ax² + bx + c = 0 with visual graph
ax² + bx + c = 0x = (-b ± √(b² - 4ac)) / 2aThe discriminant D = b² - 4ac determines the nature of roots: D > 0 gives two distinct real roots, D = 0 gives one repeated real root, D < 0 gives two complex conjugate roots.
| Discriminant D = b² − 4ac | Roots | Graph of y = ax² + bx + c |
|---|---|---|
| D > 0, a perfect square | Two distinct rational roots | Crosses the x-axis twice at nice values |
| D > 0, not a perfect square | Two distinct irrational roots | Crosses the x-axis twice |
| D = 0 | One repeated real root, x = −b/2a | Touches the x-axis at the vertex |
| D < 0 | Two complex conjugate roots | Never touches the x-axis |
D > 0 — x² − 5x + 6 = 0
a = 1, b = −5, c = 6
D = 25 − 24 = 1
x = (5 ± 1) / 2
x = 3 and x = 2
D = 0 — x² + 6x + 9 = 0
a = 1, b = 6, c = 9
D = 36 − 36 = 0
x = −6 / 2
x = −3, a repeated root; the parabola just touches the axis
D < 0 — x² + x + 1 = 0
a = 1, b = 1, c = 1
D = 1 − 4 = −3
x = (−1 ± i√3) / 2
x ≈ −0.5 + 0.866i and −0.5 − 0.866i
If the discriminant is a perfect square, the equation factors over the integers and factoring is faster. For x² − 5x + 6 you need two numbers multiplying to 6 and adding to −5 — −2 and −3 — so it is (x − 2)(x − 3) on sight. When a ≠ 1, look for factors of a×c that add to b. The formula never fails, but it is slower, and on a written exam it is where sign slips creep in.
For any equation of the form ax² + bx + c = 0 with a not zero, x equals minus b, plus or minus the square root of b squared minus 4ac, all divided by 2a.
The equation has no real solutions. The parabola never crosses the x-axis, and the two roots are complex conjugates of the form p + qi and p − qi.
Yes, when the discriminant is exactly zero. It is called a repeated or double root and sits at x = −b/2a, which is also the vertex of the parabola.
The x-coordinate is −b/2a. Substitute that back into the equation to get the y-coordinate, or use y = c − b²/4a directly.
Then it is not a quadratic at all — it collapses to the linear equation bx + c = 0 with the single solution x = −c/b. The formula fails because it would divide by zero.
Everything on this page runs in your browser — nothing you type is uploaded or stored.
Short, exact answers to the questions people ask alongside this tool — the number first, then the working.
For teams, not just visitors
We build the calculators on SnoopTool as embeddable widgets in your branding, wired to your own lead form — the same maths, your colours, your domain, your leads. Tell us which one and we will send back a working demo you can put in front of your team.
Thanks — we have it, and you will get a reply from a person within one business day. Meanwhile every tool on SnoopTool stays free, with no signup.