How to use the quadratic formula calculator
- Write your equation in the form ax² + bx + c = 0. Move every term to one side first.
- Enter a, b and c, including minus signs. If a term is missing, its coefficient is 0.
- Read the solutions, the discriminant, the vertex and (when it exists) the factored form, with each step of the working and a graph.
The quadratic formula
x = (−b ± √(b² − 4ac)) ÷ 2a
| Discriminant b² − 4ac | Solutions | Graph |
|---|---|---|
| Positive | Two different real roots | Crosses the x-axis twice |
| Zero | One repeated real root | Touches the x-axis at the vertex |
| Negative | Two complex roots | Doesn't meet the x-axis |
Worked example: 2x² + 3x − 2 = 0
- a = 2, b = 3, c = −2.
- Discriminant: 3² − 4 × 2 × (−2) = 9 + 16 = 25.
- x = (−3 ± √25) ÷ 4 = (−3 ± 5) ÷ 4.
- x = 2 ÷ 4 = 0.5 or x = −8 ÷ 4 = −2, so 2x² + 3x − 2 = (2x − 1)(x + 2).
Want to explore the curve further or compare several functions? Open the graphing calculator. For roots of single numbers, use the square root calculator.
Frequently asked questions
For any equation ax² + bx + c = 0 with a ≠ 0, the solutions are x = (−b ± √(b² − 4ac)) ÷ 2a. The ± gives the two solutions: one with plus and one with minus.
The discriminant is b² − 4ac, the part under the square root. If it's positive there are two different real solutions and the parabola crosses the x-axis twice. If it's zero there's one repeated solution and the parabola just touches the axis. If it's negative there are no real solutions, only two complex ones, and the parabola never meets the x-axis.
Here a = 1, b = −5 and c = 6. The discriminant is 25 − 24 = 1, so x = (5 ± 1) ÷ 2, giving x = 3 and x = 2. In factored form, x² − 5x + 6 = (x − 2)(x − 3).
The vertex is at x = −b ÷ 2a. Put that x back into the equation to get y. For y = x² − 5x + 6 the vertex is at x = 2.5 and y = −0.25. The parabola opens upward if a > 0 (the vertex is a minimum) and downward if a < 0 (a maximum).
Then the equation isn't quadratic; it's the linear equation bx + c = 0, with the single solution x = −c ÷ b. The calculator handles that case too.