# Discriminant Calculator

Calculate the discriminant (b²-4ac) of any quadratic equation. Instantly see whether roots are real, repeated, or complex. Free online discriminant tool.

## What this calculates

Calculate the discriminant of a quadratic equation ax² + bx + c = 0 and instantly find out whether the roots are real, repeated, or complex. Just enter your coefficients and get step-by-step results.

## Inputs

- **Coefficient a (x² term)** — The coefficient of x². Must not be zero for a quadratic.
- **Coefficient b (x term)** — The coefficient of x.
- **Coefficient c (constant)** — The constant term.

## Outputs

- **Discriminant (D)** — The value of b² - 4ac.
- **Root Type** — formatted as text — Whether the equation has real distinct, repeated, or complex roots.
- **Number of Real Roots** — formatted as text — How many real solutions the equation has.
- **Calculation Steps** — formatted as text — Step-by-step evaluation of the discriminant formula.

## Details

The discriminant is the expression under the square root in the quadratic formula. Its value tells you everything you need to know about the nature of the roots before actually solving the equation.

**The Discriminant Formula:**

D = b² - 4ac

**What the Value Tells You:**

- **D > 0:** Two distinct real roots. The parabola crosses the x-axis at two points. If D is a perfect square, the roots are rational.
- **D = 0:** Exactly one repeated real root (a double root). The parabola just touches the x-axis at one point. The root is x = -b / (2a).
- **D < 0:** No real roots. Two complex conjugate roots exist instead. The parabola does not cross the x-axis at all.

**Why the Discriminant Matters:**

The discriminant saves you time. Before going through the full quadratic formula, a quick D check tells you what kind of answer to expect. This is especially useful in:

- Factoring decisions: if D is a perfect square, the quadratic factors cleanly over the integers
- Graphing: knowing the root count tells you the shape of the parabola relative to the x-axis
- Physics and engineering: quickly determining if a system has real solutions

**Connection to the Quadratic Formula:**

x = (-b ± sqrt(D)) / (2a)

When D is negative, sqrt(D) involves imaginary numbers, which is why the roots become complex.

## Frequently Asked Questions

**Q: What does the discriminant tell you about a quadratic equation?**

A: The discriminant D = b² - 4ac reveals the nature and number of roots without solving the equation. If D is positive, there are two different real roots. If D is zero, there is one repeated root. If D is negative, there are no real roots, only two complex conjugate roots.

**Q: Can the discriminant be used for equations other than quadratics?**

A: Higher-degree polynomials have their own discriminants, but they get much more complex. The cubic discriminant involves a longer expression. For most practical purposes, the discriminant D = b² - 4ac is specific to quadratic equations.

**Q: What does it mean when the discriminant is a perfect square?**

A: When the discriminant is a positive perfect square (like 4, 9, 16, 25, etc.), the quadratic has two rational roots. This means the equation can be factored cleanly over the integers. For example, x² - 5x + 6 = 0 has D = 25 - 24 = 1 (a perfect square), and factors as (x - 2)(x - 3) = 0.

**Q: How is the discriminant related to the graph of a parabola?**

A: The discriminant determines how many times the parabola y = ax² + bx + c crosses the x-axis. D > 0 means two crossings, D = 0 means the parabola is tangent to the x-axis at one point, and D < 0 means the parabola floats entirely above or below the x-axis with no crossings.

---

Source: https://vastcalc.com/calculators/math/discriminant
Category: Math
Last updated: 2026-04-08
