x = (−b ± √(b² − 4ac)) ÷ 2a

Quadratic equation calculator

Solve ax² + bx + c = 0 and see the discriminant, the nature of the roots, the vertex and the axis of symmetry — not just two numbers.

Short answer: x² − 3x + 2 = 0 has roots x = 1 and x = 2, because the discriminant is 1 and (−(−3) ± √1) ÷ 2 gives 2 and 1. The vertex sits at x = 1.5, y = −0.25.

Reading the discriminant first

b² − 4ac decides everything about the shape: positive means two crossings, zero means the parabola touches the axis once, negative means it never does and the roots are complex conjugates. Students often compute roots without checking it, then wonder why the answer looks wrong.

Worked example

2x² + 4x − 6 = 0: discriminant 16 + 48 = 64, so roots are (−4 ± 8) ÷ 4 = 1 and −3. The vertex is at x = −1, y = −8, and because a is positive the parabola opens upward with a minimum there.

Quadratic equation questions

What is the quadratic formula?

x = (−b ± √(b² − 4ac)) ÷ 2a. The calculator applies it, then reports the discriminant b² − 4ac separately so you can see why the roots are real, repeated or complex before trusting the numbers.

What does the discriminant tell you?

Positive: two distinct real roots, and the parabola crosses the x-axis twice. Zero: one repeated root, and the curve just touches the axis. Negative: two complex conjugate roots, and the curve never reaches the axis.

Why does it refuse when a = 0?

Because ax² + bx + c with a = 0 is a straight line, not a parabola, and has one root rather than two. Dividing by 2a would be division by zero. The page says so instead of printing Infinity.

What is the vertex used for?

It is the highest or lowest point of the parabola, at x = −b ÷ 2a. In optimisation and projectile problems the vertex is usually the answer you actually want, so it is shown alongside the roots.

Related tools