Quadratics • Discriminant • Root Type

Discriminant Calculator

Use this Discriminant Calculator to calculate the discriminant of a quadratic equation in standard form \(ax^2+bx+c=0\). The discriminant is the expression \(b^2-4ac\). It tells you whether a quadratic equation has two distinct real roots, one repeated real root, or two non-real complex roots.

The discriminant is one of the fastest ways to understand a quadratic equation before solving it completely. Enter the coefficients \(a\), \(b\), and \(c\), and this calculator will compute \(D=b^2-4ac\), interpret the result, show the root type, estimate the roots, and explain what the value means for the graph of the parabola.

Calculate \(b^2-4ac\) Identify root type Show quadratic roots Explain graph behavior

Discriminant formula

For \(ax^2+bx+c=0\)
\[ D=b^2-4ac \]

The value of \(D\) controls the root type:

\[ D>0,\quad D=0,\quad D<0 \]

Calculate the discriminant

Enter the coefficients from the quadratic equation \(ax^2+bx+c=0\). For example, for \(2x^2+5x-3=0\), enter \(a=2\), \(b=5\), and \(c=-3\).

Important: A quadratic equation requires \(a\ne0\). If \(a=0\), the equation is not quadratic, so the quadratic discriminant \(b^2-4ac\) is not the correct tool.

Result

Enter coefficients and press calculate.
x y Root type preview

Graph preview is a simplified visual. Exact graph scale depends on the coefficients.

What is the discriminant?

The discriminant is the part of the quadratic formula that appears under the square-root sign. For a quadratic equation in standard form \(ax^2+bx+c=0\), the discriminant is \(D=b^2-4ac\). This single expression tells you the nature of the roots before you calculate the roots themselves. It answers a very useful question: will the quadratic equation have two real solutions, one repeated real solution, or two complex solutions?

The discriminant comes from the quadratic formula:

Quadratic formula
\[ x=\frac{-b\pm\sqrt{b^2-4ac}}{2a} \]

The expression under the radical, \(b^2-4ac\), is the discriminant. It matters because the square root behaves differently depending on whether this value is positive, zero, or negative. If \(D>0\), the square root is a positive real number, so the formula gives two different real roots. If \(D=0\), the square root is \(0\), so the plus and minus versions of the formula give the same root. If \(D<0\), the square root is the square root of a negative number, so the roots are non-real complex numbers.

The discriminant is used in algebra, precalculus, coordinate geometry, graphing, optimization, projectile motion, polynomial analysis, and many other topics involving quadratic equations. It is especially helpful when you do not need the exact roots but need to know what kind of roots exist. For example, a test question may ask whether a quadratic has real solutions. You can answer that quickly by calculating \(b^2-4ac\), without solving the full equation.

Discriminant formula

The standard quadratic equation is:

Standard quadratic form
\[ ax^2+bx+c=0 \]

where \(a\), \(b\), and \(c\) are coefficients, and \(a\ne0\). The discriminant formula is:

Discriminant
\[ D=b^2-4ac \]

Some textbooks use the symbol \(D\), while others use the Greek letter \( \Delta \). Both represent the same discriminant:

\[ \Delta=b^2-4ac \]
Symbol Meaning Role in the equation
\(a\) Coefficient of \(x^2\) Controls the parabola’s opening and must not be zero
\(b\) Coefficient of \(x\) Affects the axis of symmetry and the discriminant
\(c\) Constant term Represents the \(y\)-intercept of \(y=ax^2+bx+c\)
\(D\) or \(\Delta\) Discriminant Determines the type and number of roots

How to use the discriminant calculator

This calculator is built for quadratic equations in standard form. To use it correctly, first rewrite the equation so that one side is zero. Then identify \(a\), \(b\), and \(c\), including their signs. Enter those coefficients into the calculator and press calculate.

  1. Write the equation in standard form. The equation should look like \(ax^2+bx+c=0\). If terms appear on both sides, move them to one side first.
  2. Identify \(a\), \(b\), and \(c\). The coefficient of \(x^2\) is \(a\), the coefficient of \(x\) is \(b\), and the constant term is \(c\).
  3. Substitute into the discriminant formula. Use \(D=b^2-4ac\).
  4. Simplify carefully. Square \(b\), multiply \(4ac\), then subtract \(4ac\) from \(b^2\).
  5. Interpret the sign of \(D\). If \(D>0\), there are two distinct real roots. If \(D=0\), there is one repeated real root. If \(D<0\), there are two complex roots.
  6. Connect the result to the graph. A positive discriminant means the parabola crosses the \(x\)-axis twice. A zero discriminant means it touches the \(x\)-axis once. A negative discriminant means it does not cross the \(x\)-axis.

How to interpret the discriminant

Discriminant value Root type Number of real roots Graph meaning
\(D>0\) Two distinct real roots Two The parabola crosses the \(x\)-axis at two points
\(D=0\) One repeated real root One unique real root The parabola touches the \(x\)-axis at its vertex
\(D<0\) Two non-real complex roots Zero The parabola does not intersect the \(x\)-axis
\(D\) is a perfect square and \(D>0\) Two rational real roots if \(a,b,c\) are rational Two The roots may simplify cleanly
\(D>0\) but not a perfect square Two irrational real roots if coefficients are rational Two The roots involve radicals

Worked example 1: Positive discriminant

Find the discriminant of:

\[ 2x^2+5x-3=0 \]

Identify the coefficients:

\[ a=2,\quad b=5,\quad c=-3 \]

Substitute into the discriminant formula:

\[ D=b^2-4ac \] \[ D=5^2-4(2)(-3) \] \[ D=25+24=49 \]

Since \(D=49>0\), the quadratic has two distinct real roots. Because \(49\) is a perfect square, the roots will be rational:

\[ x=\frac{-5\pm\sqrt{49}}{4} \] \[ x=\frac{-5\pm7}{4} \]

The roots are \(x=\frac{1}{2}\) and \(x=-3\). The parabola crosses the \(x\)-axis at two points.

Worked example 2: Zero discriminant

Find the discriminant of:

\[ x^2-6x+9=0 \]

The coefficients are \(a=1\), \(b=-6\), and \(c=9\). Now calculate:

\[ D=(-6)^2-4(1)(9) \] \[ D=36-36=0 \]

Since \(D=0\), the quadratic has one repeated real root. The quadratic formula becomes:

\[ x=\frac{-(-6)\pm\sqrt{0}}{2(1)} \] \[ x=\frac{6}{2}=3 \]

The equation has one unique real solution, \(x=3\), but the root has multiplicity \(2\). The factored form is:

\[ x^2-6x+9=(x-3)^2 \]

On the graph, the parabola touches the \(x\)-axis at \(x=3\) and turns around.

Worked example 3: Negative discriminant

Find the discriminant of:

\[ x^2+4x+8=0 \]

Here \(a=1\), \(b=4\), and \(c=8\). Substitute into the formula:

\[ D=4^2-4(1)(8) \] \[ D=16-32=-16 \]

Since \(D=-16<0\), the equation has no real roots. It has two non-real complex roots. Using the quadratic formula:

\[ x=\frac{-4\pm\sqrt{-16}}{2} \] \[ x=\frac{-4\pm4i}{2} \] \[ x=-2\pm2i \]

The graph of \(y=x^2+4x+8\) does not cross the \(x\)-axis because there are no real \(x\)-intercepts.

Why the discriminant controls root type

The discriminant controls root type because it sits inside the square root of the quadratic formula. The quadratic formula is:

\[ x=\frac{-b\pm\sqrt{D}}{2a} \]

If \(D\) is positive, then \( \sqrt{D} \) is a positive real number. The plus version and the minus version produce two different real numbers. If \(D=0\), then \( \sqrt{D}=0 \), so the plus and minus versions produce the same result. If \(D\) is negative, then \( \sqrt{D} \) is not real, so the solutions are complex.

This makes the discriminant a classification tool. You can determine the nature of the solutions without simplifying the full roots. In many problems, that is enough. For example, if a physics model asks whether a projectile reaches a certain height, a positive discriminant may mean there are two times when it reaches the height, a zero discriminant may mean it reaches the height exactly once at the peak, and a negative discriminant may mean it never reaches that height.

Discriminant and the graph of a quadratic

The graph of \(y=ax^2+bx+c\) is a parabola. The roots of the equation \(ax^2+bx+c=0\) are the \(x\)-intercepts of the graph. The discriminant tells how many \(x\)-intercepts the parabola has.

\(D>0\)

The parabola crosses the \(x\)-axis at two different points. The equation has two distinct real roots.

\(D=0\)

The parabola touches the \(x\)-axis at exactly one point. This point is the vertex, and the root is repeated.

\(D<0\)

The parabola does not cross the \(x\)-axis. The equation has no real roots, but it has two complex roots.

Perfect-square \(D\)

If \(D\) is a positive perfect square and the coefficients are rational, the roots are rational numbers.

Common mistakes when calculating the discriminant

  • Forgetting the negative sign in \( -4ac \). The formula is \(b^2-4ac\), not \(b^2+4ac\). If \(c\) is negative, subtracting \(4ac\) may become addition.
  • Not squaring the entire value of \(b\). If \(b=-6\), then \(b^2=(-6)^2=36\), not \(-36\).
  • Using the formula when \(a=0\). If \(a=0\), the equation is not quadratic. The quadratic discriminant is not appropriate.
  • Mixing up coefficients. In \(3x^2-8x+2=0\), \(a=3\), \(b=-8\), and \(c=2\). The signs matter.
  • Assuming \(D>0\) always gives rational roots. A positive discriminant gives two real roots. They are rational only when the discriminant is a perfect square and the coefficients are rational.
  • Thinking \(D<0\) means no roots at all. It means no real roots. The equation still has two complex roots.
  • Ignoring graph meaning. The discriminant is not just an algebra number. It also tells whether the parabola crosses, touches, or misses the \(x\)-axis.

When to use a discriminant calculator

Use a discriminant calculator when you want to classify a quadratic equation quickly. If the question asks for the number of real solutions, the discriminant is usually the fastest method. If the question asks whether a quadratic can be factored over the real numbers, the discriminant gives important information. If the question asks how many \(x\)-intercepts a parabola has, the discriminant gives the answer immediately.

The calculator is also useful for checking work before solving the full equation. If the discriminant is negative, you know to expect complex roots. If it is zero, you know the answer should be a repeated root. If it is positive, you know the equation has two real roots. That expectation helps catch mistakes in the quadratic formula, factoring, completing the square, and graph interpretation.

In exam settings, the discriminant is often used in multiple-choice questions because it is quick and decisive. A problem may not ask for the roots at all; it may ask how many solutions exist. In that case, calculating \(b^2-4ac\) is usually enough. This page gives both the quick result and the deeper explanation so students can understand the method, not just copy the formula.

FAQ

What is a discriminant calculator?

A discriminant calculator computes \(b^2-4ac\) for a quadratic equation \(ax^2+bx+c=0\). It then uses the result to identify whether the equation has two real roots, one repeated real root, or two complex roots.

What is the discriminant formula?

The discriminant formula for a quadratic equation is \(D=b^2-4ac\). It is the expression under the square root in the quadratic formula.

What does a positive discriminant mean?

A positive discriminant means the quadratic equation has two distinct real roots. On the graph, the parabola crosses the \(x\)-axis at two points.

What does a zero discriminant mean?

A zero discriminant means the quadratic equation has one repeated real root. On the graph, the parabola touches the \(x\)-axis at exactly one point.

What does a negative discriminant mean?

A negative discriminant means the quadratic equation has no real roots. It has two non-real complex roots, and the graph does not cross the \(x\)-axis.

Is the discriminant only for quadratic equations?

The expression \(b^2-4ac\) is specifically the quadratic discriminant. Higher-degree polynomials, such as cubic equations, also have discriminants, but their formulas are different.

Related tools and guides

The discriminant connects directly to quadratic equations, graphing, factoring, complex numbers, and polynomial solving. Use these related Num8ers tools to continue the same algebra topic cluster.