Skip to content
CalcSolverPro
Advertisement

Math calculator

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
Cannot be zero.

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.

DiscriminantRootsParabola
Greater than 0Two different real rootsCrosses the x-axis twice
Equal to 0One repeated real rootTouches the x-axis once
Less than 0Two complex rootsNever 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.

Written and checked by the CalcSolver Pro editorial team. Formulas are standard and published, and each example can be verified by hand. Last updated . Results are estimates, not professional advice. See our disclaimer.