Skip to main content

Quadratic Equation Calculator – Roots & Discriminant

Quick answer

Solve ax²+bx+c=0 using x=(-b±√(b²-4ac))/2a.

  • Classify roots from Δ=b²-4ac (two, one or complex) and get the vertex instantly.

Figures are estimates from this calculator’s standard formula — adjust the inputs in the tool below for your exact number.

How the Quadratic Equation Calculator Works

x = (-b ± √(b²-4ac)) / 2a | Δ = b²-4ac | vertex x = -b/2a

Enter a, b and c, and the calculator computes the discriminant Δ = b²-4ac first because it classifies the roots before any square root is taken. For x²-2x-8=0, Δ = 4+32 = 36 > 0, so two distinct real roots exist: x = (2±6)/2 = 4 or -2. The vertex of the parabola sits at x = -b/2a = 1, i.e. the point (1, -9), useful for graphing and for min/max word problems. Vieta checks come free: the roots should sum to -b/a = 2 (indeed 4 + (-2) = 2) and multiply to c/a = -8 (4×(-2) = -8). If Δ < 0 the calculator reports the complex pair, and if Δ = 0 it flags the single double root.

  1. 1

    Enter the coefficients

    Type a, b and c from ax² + bx + c = 0

  2. 2

    Read the discriminant

    Δ = b²-4ac: positive → 2 real roots, zero → 1, negative → complex

  3. 3

    Get both roots

    The formula x=(-b±√Δ)/2a is evaluated with full working shown

  4. 4

    Use vertex & Vieta checks

    Vertex x = -b/2a, sum = -b/a, product = c/a for instant verification

Use Cases

Algebra Homework

Instant roots plus the discriminant work your teacher expects to see

Projectile Motion

Solve height equations like h = -4.9t² + 30t for time of flight

Optimization Setup

Use the vertex x = -b/2a to find max revenue or minimum cost

Tips

  • 1

    Δ = 36 is a perfect square, so x²-2x-8 factors neatly to (x-4)(x+2)

  • 2

    The axis of symmetry x = -b/2a works even when roots are complex

  • 3

    Product of roots c/a quickly exposes sign errors

Common Mistakes

  • Computing b² as negative when b itself is negative; (-2)² = +4

  • Forgetting 4ac entirely and using √(b²) alone under the root

  • Mixing up the sign of c when moving terms to standard form

  • Reading Δ < 0 as "no roots" — the complex pair x = (2±4i)/2 still exists

FAQs

What does the discriminant tell me?

Δ = b²-4ac counts the roots: Δ>0 → two real, Δ=0 → one double root, Δ<0 → two complex. For 2x²+3x+5, Δ = 9-40 = -31, so roots are complex.

How do I solve x²-2x-8=0?

a=1, b=-2, c=-8. Δ = 4+32 = 36, x = (2±6)/2, giving x = 4 or x = -2.

How do I find the vertex from a, b, c?

x = -b/2a. For x²-2x-8 that is x = 1; substituting gives the vertex point (1, -9).

What are Vieta’s formulas?

Roots sum to -b/a and multiply to c/a. For x²-5x+6: sum 5, product 6 — matching roots 3 and 2.

What if a = 0?

The equation is linear: bx + c = 0 has the single solution x = -c/b.