Quadratic Equation Calculator
🔒 Your input is never sent to a server.
Solution
Graph
Click the graph to select it; then you can zoom with the mouse wheel and pan by dragging. Until it is selected, the wheel scrolls the page. (Deselect: click outside the graph or press Esc. On mobile: tap it, then pinch to zoom.)
How to use
Rearrange your equation into the form ax² + bx + c = 0 and enter a, b and c; the result appears immediately. The equation you entered is shown large at the top, and Reset sets every value to 0. Example: x² − 3x = −2 → x² − 3x + 2 = 0, so a = 1, b = −3, c = 2. Enter 0 for a missing term. Show solution shows the discriminant and quadratic formula working, and Show graph shows the parabola.
Quadratic formula and discriminant
Roots of ax² + bx + c = 0 (a ≠ 0): x = (−b ± √(b² − 4ac)) / 2a
The expression under the root, D = b² − 4ac, is the discriminant.
| Discriminant D | Roots |
|---|---|
| D > 0 | Two distinct real roots |
| D = 0 | One repeated (double) root |
| D < 0 | Two complex roots (no real roots) |
FAQ
What if a is 0?
It is no longer quadratic but the linear equation bx + c = 0, so its solution is shown instead.
What about fractional coefficients?
Enter them as decimals, or multiply both sides by a common denominator to get integer coefficients.
What does the graph look like for complex roots?
With complex roots the parabola does not touch the x-axis.
Results are for reference only and accuracy is not guaranteed. Terms & disclaimer