Quadratic Formula Calculator
Enter the coefficients a, b and c of a quadratic equation. You get both roots, whether they are real or complex, the discriminant, the vertex of the parabola and its axis of symmetry.
- Free, no sign-up
- Updated
- Formula and worked example
Enter your numbers to see the result.
- Real and complex roots
- Discriminant and root type
- Vertex and axis of symmetry
- Works for any non-zero a
The quadratic formula
Any equation written as ax² + bx + c = 0, with a not equal to zero, has solutions given by:
x = (−b ± √(b² − 4ac)) ÷ 2a
The part under the square root, b² − 4ac, is called the discriminant. It tells you what kind of roots to expect before you solve anything.
| Discriminant | Roots | Parabola |
|---|---|---|
| Greater than 0 | Two different real roots | Crosses the x-axis twice |
| Equal to 0 | One repeated real root | Touches the x-axis once |
| Less than 0 | Two complex roots | Never crosses the x-axis |
Worked example: x² − 5x + 6 = 0
Here a = 1, b = −5 and c = 6. The discriminant is 25 − 24 = 1, which is positive, so there are two real roots. Then x = (5 ± 1) ÷ 2, which gives x = 3 and x = 2. Check by substituting: 9 − 15 + 6 = 0 and 4 − 10 + 6 = 0.
Vertex and axis of symmetry
The vertex is the turning point of the parabola. Its x value is −b ÷ 2a, and you find its y value by putting that x back into the equation. For the example above the vertex is (2.5, −0.25). The axis of symmetry is the vertical line x = 2.5.
When to use the formula instead of factoring
Factoring is quick when the roots are whole numbers. The formula always works, including when the roots are fractions, irrational numbers or complex. If your equation has no x² term, it is linear, and the linear equation solver is the right tool.
Frequently asked questions
What is the quadratic formula?
It is x = (−b ± √(b² − 4ac)) ÷ 2a. It solves any quadratic equation ax² + bx + c = 0 where a is not zero.
What does the discriminant tell me?
The discriminant b² − 4ac shows the number and type of roots. Positive gives two real roots, zero gives one repeated root and negative gives two complex roots.
Why can a not be zero?
If a is zero the x² term disappears and the equation becomes linear, with at most one solution. The quadratic formula would also divide by zero.
What are complex roots?
When the discriminant is negative the square root involves the imaginary unit i. The roots are written as a real part plus or minus an imaginary part, such as −1 ± 2i.
More calculators you may need
- Scientific Calculator A free scientific calculator that runs in your browser. Use the keypad or your keyboard for tri...
- Linear Equation Solver Enter a, b and c for an equation of the form ax + b = c. The solver shows the answer for x, eac...
- Pythagorean Theorem Calculator Choose whether you need the hypotenuse or a missing leg, then enter the two sides you know. The...
- Mean Median Mode Calculator Paste or type a list of numbers separated by commas or spaces. You get the mean, median, mode...