Calculators

Quadratic Equation Calculator

Solve ax² + bx + c = 0 with the quadratic formula. Shows the discriminant and real or complex roots.

Quadratic Equation Calculator

Solves ax² + bx + c = 0.

x = 3 or x = 2 Discriminant = b² − 4ac = 25 − 24 = 1; x = (−b ± √1) / (2a) = (5 ± 1) / 2.

What a Quadratic Equation Is

A quadratic equation (ax2+bx+c=0ax^2 + bx + c = 0) is what you get whenever a squared term (x2x^2) is in the mix - the math behind a thrown ball’s path or the area of a growing square. Its graph is always a smooth U-shaped curve called a parabola, and “solving” it means finding where that curve crosses the x-axis (the spots where y=0y = 0).

The graph under the calculator draws your parabola and marks those crossings. A curve can cross the axis twice (two real answers), just touch it once (one repeated answer), or miss it entirely (no real answer - the roots are complex). One number, the discriminant b24acb^2 - 4ac, tells you which case you are in before you even solve.

The Quadratic Formula

x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

The discriminant D=b24acD = b^2 - 4ac decides the type of roots:

  • D>0D > 0 — two real roots
  • D=0D = 0 — one repeated root
  • D<0D < 0 — two complex roots

How to Use It

  1. Enter the coefficients a, b, and c.
  2. Read the roots and the discriminant in the steps.

Worked Examples

abcRoots
1−56x=3x = 3 or x=2x = 2
1−44x=2x = 2 (double root)
125x=1±2ix = -1 \pm 2i (complex)
21−6x=1.5x = 1.5 or x=2x = -2

FAQ

What is the quadratic formula?

x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}. It solves any quadratic once written as ax2+bx+c=0ax^2 + bx + c = 0.

What does the discriminant tell you?

The discriminant b24acb^2 - 4ac shows the type of roots: positive gives two real roots, zero gives one repeated root, and negative gives two complex roots.

What if a is 0?

Then it is not quadratic but linear (bx+c=0bx + c = 0), and the tool solves it as x=c/bx = -c/b.