Solve any quadratic equation ax² + bx + c = 0 with step-by-step solutions and a parabola graph.
Enter coefficients for: ax² + bx + c = 0
The quadratic formula is x = (-b ± √(b² - 4ac)) / 2a. It solves any quadratic equation of the form ax² + bx + c = 0, where a ≠ 0. The expression under the square root, b² - 4ac, is called the discriminant and determines the nature of the roots.
If the discriminant is positive, the equation has two distinct real roots. If it equals zero, there is exactly one repeated real root. If the discriminant is negative, the equation has two complex conjugate roots.
Use the quadratic formula when factoring is difficult or impossible. It works for every quadratic equation, including those with irrational or complex roots. For simpler equations, factoring or completing the square may be faster.
Solve 2x² − 4x − 6 = 0.
To learn the method by hand, read the quadratic formula guide, or compare it with factoring and completing the square. The vertex form guide shows how to read the vertex straight from the equation. For word problems, see the quadratic equation solver page, and find more calculators on the free tools page.
Then the equation is bx + c = 0, which is linear, not quadratic. The quadratic formula would divide by 2a = 0, so it does not apply. Solve the linear equation instead: x = −c/b. For example, 4x − 8 = 0 gives x = 2.
A negative discriminant means the parabola never crosses the x-axis, so there are no real solutions. The formula still works if you write √(−1) as i. For x² + 2x + 5 = 0 the discriminant is 4 − 20 = −16, so x = (−2 ± 4i)/2 = −1 ± 2i. Complex roots always come in conjugate pairs like this.
Factoring is faster when the roots are whole numbers or simple fractions: x² − 5x + 6 = (x − 2)(x − 3), so x = 2 or x = 3. The quadratic formula works on every quadratic, including ones with irrational or complex roots, so use it whenever a factorization is not obvious within a few seconds.
The vertex sits at x = −b/(2a). Substitute that x back into the equation to get y. For y = 2x² − 4x − 6, x = 4/4 = 1 and y = 2 − 4 − 6 = −8, so the vertex is (1, −8). It lies exactly halfway between the two roots when the roots are real.
When the discriminant is 0, the ± part adds and subtracts zero, so both roots are the same number. The parabola touches the x-axis at one point instead of crossing it. For x² − 6x + 9 = 0 the discriminant is 36 − 36 = 0, and the only root is x = 3, because the equation is (x − 3)² = 0.
Solve it yourself first, then take a photo. Solver AI on iPhone and iPad shows each step, so you can see where your answer went wrong.