Skip to content
Calcora
Advertisement

Quadratic Equation Solver

Enter the coefficients of ax² + bx + c = 0 to get the roots, the discriminant and the vertex of the parabola.

  • Real and complex roots
  • Discriminant explained
  • Vertex and axis of symmetry
  • Quadratic formula shown

Enter your numbers to see the result.

The quadratic formula

For any equation written as ax² + bx + c = 0 with a not equal to zero, the solutions are x = (−b ± √(b² − 4ac)) ÷ 2a. The expression under the root, b² − 4ac, is called the discriminant, and it tells you what kind of roots to expect before you solve anything.

DiscriminantRootsGraph
PositiveTwo different real rootsCrosses the x-axis twice
ZeroOne repeated real rootTouches the x-axis once
NegativeTwo complex rootsDoes not reach the x-axis

Worked example

Solve x² − 3x + 2 = 0. Here a = 1, b = −3 and c = 2, so the discriminant is 9 − 8 = 1. The roots are (3 ± 1) ÷ 2, which gives x = 2 and x = 1. Check: 2² − 3(2) + 2 = 0.

Vertex of the parabola

The turning point sits at x = −b ÷ 2a. Substitute that x back into the equation to find its height. If a is positive the parabola opens upward and the vertex is a minimum. If a is negative it opens downward and the vertex is a maximum. For quick arithmetic checks, use the scientific calculator.

Frequently asked questions

What if a equals zero?

Then the equation is linear, not quadratic. Solve bx + c = 0 to get x = −c / b. The solver asks for a non-zero a.

What does a negative discriminant mean?

The equation has no real roots. It has two complex roots that are conjugates of each other, shown in the form p ± qi.

How do I check my answer?

Substitute each root back into ax² + bx + c. The result should be zero, allowing for small rounding.

Can I use decimals or negatives?

Yes. Any real numbers are accepted for a, b and c, as long as a is not zero.

Last updated by the Calcora editorial team. Results are estimates, not professional advice. See our disclaimer.