How to use the Quadratic Formula Calculator
- Write your equation as ax² + bx + c = 0, moving everything to one side.
- Enter a, b and c. Use negative numbers where the sign is minus.
- Read the roots, the discriminant and the vertex, and follow the working.
How it works
The quadratic formula solves any equation of the form ax² + bx + c = 0 where a is not zero. The discriminant, b² − 4ac, tells you what kind of answers to expect: positive means two different real roots, zero means one repeated root, and negative means two complex roots.
The roots are where the parabola y = ax² + bx + c crosses the x-axis. Its turning point, the vertex, is at x = −b ÷ 2a. When a is positive the parabola opens upward and the vertex is a minimum.
Formula
x = (−b ± √(b² − 4ac)) ÷ 2a Discriminant D = b² − 4ac Vertex: x = −b ÷ 2a
Example
For x² − 5x + 6 = 0, a = 1, b = −5 and c = 6. The discriminant is 25 − 24 = 1, so x = (5 ± 1) ÷ 2, giving x = 3 and x = 2. The factored form is (x − 3)(x − 2) = 0.
For 2x² + 4x − 6 = 0 the discriminant is 16 + 48 = 64, and the roots are x = 1 and x = −3.
What the discriminant tells you
| Discriminant | Roots | 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 touch the x-axis |
Frequently asked questions
What is the quadratic formula?
x = (−b ± √(b² − 4ac)) ÷ 2a. It gives both solutions of ax² + bx + c = 0.
What if a is zero?
Then the equation is linear, bx + c = 0, and the single answer is x = −c ÷ b.
What are complex roots?
When the discriminant is negative, the square root of a negative number is imaginary. The roots are written as p ± qi, where i = √−1.
Can I solve by factoring instead?
If the roots are whole numbers or simple fractions, factoring is quicker. The formula always works.
Last reviewed December 3, 2026. Spotted an error? Tell us.
Add this calculator to your website
Free for blogs, schools and businesses. Copy the code and paste it into your page (in WordPress, use a Custom HTML block). Please keep the credit link.