Quadratic Equation Calculator

Solve a quadratic equation ax² + bx + c = 0 for its roots.

Calculate

Enter your values below.

Result

Root 1
0
Root 2
0
Discriminant
0

Formula used

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

Example: x² − 3x + 2 = 0 → roots are 2 and 1.

How to use this calculator

  1. Enter a, b, c.
  2. Press Calculate to see your result instantly.

Frequently asked questions

What if the discriminant is negative?

The equation has two complex (non-real) roots, shown as a real part plus/minus an imaginary part.

What if the discriminant is zero?

There is exactly one repeated real root.

Can a be zero?

No — that would make the equation linear, not quadratic. Use the Linear Equation Calculator instead.

What is the quadratic formula used for?

It solves any quadratic equation directly, without needing to factor it.