Quadratic Equation Solver

Solve ax² + bx + c = 0 with the quadratic formula, including complex roots, the vertex and the discriminant.

Solutions
x = 5 or x = -2

The parabola opens upward (vertex is a minimum).

y = ax² + bx + c
−20−1001020−4.1−2.56−1.020.522.063.65.146.68x₁ = 5x
x₁
5
x₂
−2
Discriminant (b² − 4ac)
49
Type of roots
Two distinct real roots (D > 0)
Vertex
(1.5, -12.25)
Axis of symmetry
x = 1.5
Show the working
  1. Discriminant D = b² − 4ac = (-3)² − 4 × 1 × (-10) = 49
  2. x = (−b ± √D) ÷ 2a = (3 ± √49) ÷ 2
  3. √D = 7
  4. x₁ = 5, x₂ = -2
  5. Vertex: x = −b ÷ 2a = 1.5, y = c − b² ÷ 4a = -12.25

Runs entirely in your browser. Nothing you enter is uploaded.

Formula

x = (−b ± √(b² − 4ac)) ÷ 2aD = b² − 4acVertex = (−b ÷ 2a, c − b² ÷ 4a)

How it works

A quadratic equation has the form ax² + bx + c = 0 with a ≠ 0. Its graph is a parabola, and the solutions (roots) are where the parabola crosses the x-axis. The quadratic formula solves every quadratic, even ones that are hard or impossible to factor.

The discriminant D = b² − 4ac, the expression under the square root, tells you what kind of roots to expect before you finish. If D is positive there are two different real roots; if D is zero, the parabola just touches the x-axis and there is one repeated root; if D is negative the parabola never reaches the x-axis and the roots are a pair of complex numbers a ± bi.

The vertex is the turning point of the parabola, halfway between the roots at x = −b/2a. When a is positive the parabola opens upward and the vertex is the lowest point; when a is negative it opens downward and the vertex is the highest point.

Frequently asked questions

How can I check my roots?

Substitute each root back into ax² + bx + c; you should get 0. You can also check that the roots add up to −b/a and multiply to c/a.

What if a is zero?

Then there is no x² term and the equation is linear, bx + c = 0, with the single solution x = −c/b. The calculator handles that case too.

What does i mean in complex roots?

i is the imaginary unit, defined by i² = −1. Complex roots always come in conjugate pairs like 2 + 3i and 2 − 3i when a, b and c are real.

esc