
Published: 15 November 2026 · Updated: 15 November 2026
Solve any quadratic equation ax² + bx + c = 0: both roots, the discriminant, the vertex, the axis of symmetry and the sum-and-product checks — including complex roots when the discriminant is negative. It starts with x² − 3x + 2 = 0 (roots 1 and 2). Free, no sign-up.
Enter a, b, c — read the roots. The discriminant predicts the answer type, the vertex and axis describe the parabola, and the sum and product of the roots let you verify the result in seconds.
Researched by MixKhazana Team · Last updated 15 November 2026 · Data: OpenStax Intermediate Algebra 2e §9.3; College Board AP calculator policy
A quadratic equation is an equation of the form ax² + bx + c = 0, where a is not zero. The x² term is what makes it quadratic — and what makes it curve: the graph of y = ax² + bx + c is a parabola, and the solutions of the equation are exactly the x-values where the parabola crosses the x-axis. Quadratics describe thrown balls, profit curves, area problems and much of physics, which is why every algebra course teaches several ways to solve them: factoring, the square root property, completing the square, and the quadratic formula, which works for every quadratic without exception.
Students often reach for a graphing calculator to find roots, but the quadratic formula gives exact answers with pencil and paper too. This free tool does the arithmetic, shows the discriminant, and reports complex roots honestly when the parabola never touches the x-axis.
For ax² + bx + c = 0 with a ≠ 0, the solutions are:
The discriminant predicts the answer before you finish: if D > 0 there are two distinct real roots; if D = 0 there is one real (double) root; if D < 0 there are two complex roots and no real roots, because the square root of a negative number is imaginary. The formula itself comes from completing the square on the general equation — the same steps every time, done once and for all.
Solve x² − 5x + 6 = 0:
Try it above: a = 1, b = −5, c = 6. Then try a = 1, b = 2, c = 5 (D = −16, complex roots −1 ± 2i).
| Discriminant | Example | Roots |
| D > 0 | x² − 5x + 6 = 0, D = 1 | x = 2 and x = 3 |
| D = 0 | x² − 6x + 9 = 0, D = 0 | x = 3 (double root) |
| D < 0 | x² + 2x + 5 = 0, D = −16 | x = −1 ± 2i |
On a graph, D > 0 means the parabola crosses the x-axis twice, D = 0 means it just touches it at the vertex, and D < 0 means it never reaches it. Plot any row with the Free Graphing Calculator to see this.
Textbooks suggest trying factoring first — it is fastest when the quadratic factors neatly, as x² − 5x + 6 = (x − 2)(x − 3) does. If the equation fits ax² = k or a(x − h)² = k, the square root property is quickest. For anything else, the quadratic formula is the reliable choice: it never fails, it handles fractions and irrational roots, and the discriminant tells you in advance what kind of answer to expect. Completing the square is the method behind the formula, and it is worth learning once — but for answers, the formula is the tool.
For ax squared + bx + c = 0 with a not equal to 0, the solutions are x = (-b plus or minus the square root of (b squared - 4ac)) divided by 2a. Substitute a, b and c, simplify, and you get both roots.
The discriminant D = b squared - 4ac predicts the roots before you solve: if D is positive there are two distinct real roots, if D is zero there is one real double root, and if D is negative there are two complex roots and no real roots.
Then the equation is not quadratic at all: it is linear, bx + c = 0, with the single solution x = -c/b. This tool detects that case and solves the linear equation instead of dividing by zero.
When the discriminant is negative, the square root in the formula is imaginary, and the two roots are a conjugate pair such as -1 + 2i and -1 - 2i, where i is the square root of -1. The parabola never crosses the x-axis, so there are no real solutions.
The vertex sits at x = -b/(2a). Substitute that x back into ax squared + bx + c to get the y-coordinate. If a is positive the vertex is the lowest point; if a is negative it is the highest point.
The roots must add to -b/a and multiply to c/a. This tool shows both checks. For x squared - 5x + 6 = 0 the roots 2 and 3 add to 5 and multiply to 6, which confirms them.
Yes. Move every term to one side so the equation reads ax squared + bx + c = 0, then read a, b and c with their signs. Reading coefficients from an unarranged equation is the most common source of sign errors.
Yes. Factoring is faster when it works neatly, but the quadratic formula works for every quadratic equation, including ones with fractions, irrational roots and complex roots.
Disclaimer: a study aid for homework and revision. Displayed values are rounded to four decimal places; exact surd forms (such as √2) are the same values unrounded. It is not an approved exam-room device.
Card photos: Sergey Meshkov / Pexels, Pexels licence · Yulia Meshkova / Wikimedia Commons, CC BY 4.0 · Joost J. Bakker / Wikimedia Commons, CC BY 2.0 · Coyau / Wikimedia Commons, CC BY-SA 3.0