The quadratic formula
x = (−b ± √(b² − 4ac)) ÷ (2a) Discriminant D = b² − 4acThe discriminant tells you what kind of roots to expect before solving. D > 0: two different real roots. D = 0: one repeated real root. D < 0: no real roots, but two complex roots of the form p ± qi. The coefficient a must not be 0, otherwise the equation is linear.
Worked example
Solve 2x² + 4x − 6 = 0. Here a = 2, b = 4 and c = −6. D = 4² − 4 × 2 × (−6) = 16 + 48 = 64 and √64 = 8. So x = (−4 ± 8) ÷ 4, giving x = 1 or x = −3. The vertex is at x = −b ÷ 2a = −1, where y = 2 − 4 − 6 = −8. Since a is positive, the parabola opens upward and −8 is its minimum value. Check: the roots add to −b ÷ a = −2 (1 + (−3) = −2) and multiply to c ÷ a = −3.
Other ways to solve a quadratic
- Factoring: works when the roots are whole numbers or simple fractions, such as x² − 5x + 6 = (x − 2)(x − 3).
- Completing the square: rewrites the equation as (x + b÷2a)² = D ÷ 4a², which is how the formula is derived.
- Graphing: the real roots are where the parabola crosses the x-axis.
Related tools: the exponent calculator, the root calculator and the scientific calculator.
Complete guide to the Quadratic Formula Calculator
How to use the Quadratic Formula Calculator, step by step
- Write the equation as ax² + bx + c = 0.
- Enter a, b and c.
- Read the roots and the discriminant.
- Check by substituting a root.
Common mistakes to avoid
- Using a = 0.
- Forgetting the sign of b.
- Dropping the ± in the formula.
Key terms explained
- Discriminant
- The expression b² − 4ac.
- Root
- A value of x that makes the equation true.
- Vertex
- The turning point of the parabola.
- Complex number
- A number with a real part and an imaginary part.
Want the full walkthrough? Read our guide: How to Solve Quadratic Equations (Formula, Factoring).
Frequently asked questions
What is the discriminant?
It is b² − 4ac, the part under the square root. Its sign tells you whether the quadratic has two real roots, one repeated root or two complex roots.
Can a quadratic equation have no solution?
It always has two roots in the complex numbers. It has no real roots when the discriminant is negative, meaning the parabola never touches the x-axis.
What if a is 0?
Then the equation is not quadratic, because there is no x² term. It becomes the linear equation bx + c = 0 with the single solution x = −c ÷ b.
What are complex roots?
They involve i, where i² = −1. Complex roots of a real quadratic come as a pair p + qi and p − qi, called conjugates.
How do I find the vertex of a parabola?
The vertex has x = −b ÷ 2a. Substitute that x into the equation to get its y value. It is the minimum if a is positive and the maximum if a is negative.
How can I check my answers?
Substitute each root back into ax² + bx + c; you should get 0. The two roots also add up to −b ÷ a and multiply to c ÷ a.
What is the quadratic formula?
The quadratic formula is x = (−b ± √(b² − 4ac)) ÷ 2a. It solves any equation of the form ax² + bx + c = 0.
What if a = 0?
The equation becomes linear, so the calculator solves bx + c = 0 and gives x = −c ÷ b.