Quadratic Equation Calculator

Solve quadratic equations of the form ax² + bx + c = 0 with the quadratic formula. Enter a, b and c to find the solutions.

Discriminant
1.00
Two real solutions
x₁
2
x₂
1
Embed on your website →

How to use the quadratic equation calculator

  1. Enter the coefficients a, b and c from the equation ax² + bx + c = 0.
  2. The calculator automatically works out the discriminant and the solutions as you type.
  3. Read the explanation below to understand what the discriminant tells you.

How the quadratic equation is solved

Every quadratic equation of the form ax² + bx + c = 0 can be solved with the quadratic formula:

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

The expression under the square root, b² − 4ac, is called the discriminant and determines how many real solutions the equation has:

Note: a cannot be 0 — that would remove the x² term, and the equation would no longer be a quadratic equation.
Ad space — reserved for future partners

Frequently asked questions

What does the discriminant tell me?

The discriminant (b² − 4ac) tells you how many real solutions the equation has: positive gives two solutions, zero gives one (a double root), and negative gives no real solutions.

What happens if a is 0?

Then the equation is no longer a quadratic equation, since the x² term disappears. The calculator shows an error message in this case — use a regular linear equation instead.

Are there solutions when the discriminant is negative?

Not real solutions. The equation then has two complex solutions, involving the square root of a negative number (imaginary numbers). This calculator only shows real solutions.

Embed this calculator on your website

Copy the code below to show this calculator directly on your blog or website — completely free.