Ultimate Calculator
Math

Quadratic Equation Calculator

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

Solutions

x = 2 or x = 3

Discriminant
1
Vertex
(2.5, −0.25)
Sum of roots
5
Product of roots
6
  1. Discriminant: b² − 4ac = 25 − 24 = 1
  2. Positive discriminant: two real roots.
  3. x = (5 ± 1) ÷ 2

The formula

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

Any equation of the form ax² + bx + c = 0 can be solved with the quadratic formula. The discriminant b² − 4ac tells you what kind of answers to expect before you finish: positive means two real roots, zero means one, negative means a complex pair.

How to use this calculator

  1. Enter a.
  2. Enter b.
  3. Enter c.
  4. Read the answer on the right. It updates as you type, and the numbered steps underneath show how it was worked out.

Worked example

Using a: 1; b: -5; c: 6.

  1. Discriminant: b² − 4ac = 25 − 24 = 1
  2. Positive discriminant: two real roots.
  3. x = (5 ± 1) ÷ 2

Solutions: x = 2 or x = 3

Common questions

What does the discriminant tell you?

It tells you how many real solutions exist. Positive gives two, zero gives one repeated root, and negative gives two complex roots.

What is the vertex of a parabola?

The turning point of the curve, at x = −b ÷ 2a. It is the minimum when a is positive and the maximum when a is negative.