How to use the Quadratic Formula Calculator
- Rearrange your equation into the form ax² + bx + c = 0.
- Enter a, b and c, including any negative signs.
- Read the roots, the discriminant and whether the roots are real, repeated or complex.
- Use the vertex, sum and product of the roots to check your working or sketch the parabola.
The quadratic formula
Where:
- = coefficients of ax² + bx + c = 0
- = discriminant: > 0 two real roots, = 0 one, < 0 complex
Show as plain text
x = (−b ± √(b² − 4ac)) ÷ 2a
The expression under the square root, b² − 4ac, is called the discriminant. If it is positive there are two real roots; if it is zero there is one repeated root; if it is negative the roots are a pair of complex numbers.
The vertex of the parabola y = ax² + bx + c is at x = −b ÷ 2a. It is the lowest point when a is positive and the highest point when a is negative.
Assumptions and limitations
- Results are shown to 6 decimal places, or 6 significant figures for very small or very large roots.
- Roots are computed with a numerically stable rearrangement (x₁ = q ÷ a, x₂ = c ÷ q, where q = −½(b ± √(b² − 4ac))), so a tiny root next to a huge one is still accurate.
Example: Solve x² − 5x + 6 = 0
- Here a = 1, b = −5 and c = 6.
- Discriminant: (−5)² − 4 × 1 × 6 = 25 − 24 = 1.
- x = (5 ± √1) ÷ 2, so x = (5 − 1) ÷ 2 = 2 or x = (5 + 1) ÷ 2 = 3.
- Check: 2² − 5 × 2 + 6 = 0 and 3² − 5 × 3 + 6 = 0.
When to use the Quadratic Formula Calculator
- Solving quadratic equations in algebra homework and checking answers found by factoring.
- Finding where a projectile's height equation equals zero in physics problems.
- Locating the turning point of a parabola from its vertex.
Quadratic Formula Calculator FAQs
What does a negative discriminant mean?
The parabola never crosses the x-axis, so there are no real solutions. The two solutions are complex conjugates of the form p ± qi.
Why can't a be zero?
If a is zero the x² term disappears and the equation is linear, not quadratic. The calculator solves the linear equation instead and tells you it has done so.
How do I find the vertex of a parabola?
The vertex is at x = −b ÷ 2a. Substitute that x back into the equation to get y. For x² − 5x + 6, x = 2.5 and y = −0.25, so the vertex is (2.5, −0.25). The calculator shows it with the roots.
How this calculator was built and tested is explained in our methodology. Spotted a problem? Let us know.