Algebra tool

Discriminant Calculator

Use this discriminant calculator to calculate D = b^2 - 4ac for any quadratic equation in the form ax^2 + bx + c = 0. The page shows the discriminant value, the root classification, the substitution breakdown, and a teacher-style explanation of what positive, zero, and negative discriminants mean.
Current equation: x^2 - 5x + 6 = 0
Final answer
D = 1
Two distinct real roots
Discriminant value
D = 1
Root type summary
Two distinct real roots
b^2
25
4ac
24
Formula used
D = b^2 - 4ac

For the quadratic equation x^2 - 5x + 6 = 0, the discriminant is D = 1. That means the equation has two distinct real roots.

Step-by-step calculation
1Write the quadratic equation form
x^2 - 5x + 6 = 0

The discriminant belongs to quadratic equations written in the form ax^2 + bx + c = 0.

x^2 - 5x + 6 = 0
2Identify a, b, and c
a = 1
b = -5
c = 6

These coefficients plug directly into the discriminant formula.

a = 1, b = -5, c = 6
3Write the discriminant formula
D = b^2 - 4ac

This formula tells you what kind of roots the quadratic equation has before you solve the full quadratic formula.

D = b^2 - 4ac
4Substitute the values into D = b^2 - 4ac
D = (-5)^2 - 4(1)(6)

Replace a, b, and c with the coefficients from the equation before simplifying each part.

D = 25 - 24
5Simplify b^2
b^2 = (-5)^2 = 25

Square coefficient b first so the first part of the formula is clear.

b^2 = 25
6Simplify 4ac
4ac = 4(1)(6) = 24

Multiply 4, a, and c together to build the second part of the discriminant formula.

4ac = 24
7Subtract to get D
D = 25 - 24

Now subtract 4ac from b^2 to get the discriminant value.

D = 1
8Interpret the result
If D > 0, the equation has two distinct real roots.
If D = 0, the equation has one repeated real root.
If D < 0, the equation has two complex roots.

The discriminant is positive, so the quadratic equation has two different real roots. Because D = 1 is greater than 0, sqrt(D) is a real non-zero number and the plus and minus branches of the quadratic formula produce two distinct answers.

Two distinct real roots
Formula and substitution breakdown

The discriminant is written as D = b^2 - 4ac. Here, a is the coefficient of x^2, b is the coefficient of x, and c is the constant term. Inside the quadratic formula, the same value appears as x = (-b +/- sqrt(D)) / (2a), which is why the sign of D matters so much.

PartExpressionWhy it matters
DiscriminantD = b^2 - 4acThe discriminant classifies the roots of a quadratic equation before you solve the full formula.
Quadratic formula linkx = (-b +/- sqrt(D)) / (2a)The value of D controls whether sqrt(D) is positive, zero, or negative inside the quadratic formula.
Positive discriminantD > 0Two different real roots.
Zero discriminantD = 0One repeated real root.
Negative discriminantD < 0Two complex roots.

Substitution breakdown

D = (-5)^2 - 4(1)(6)

D = 25 - 24

D = 1

Interpretation

The discriminant is positive, so the quadratic equation has two different real roots. Because D = 1 is greater than 0, sqrt(D) is a real non-zero number and the plus and minus branches of the quadratic formula produce two distinct answers.

Root preview: x = (-b +/- sqrt(D)) / (2a) gives two different real values because sqrt(1) is real and non-zero.

Worked example for the current result type
A positive discriminant means the parabola crosses the x-axis twice.
The equation will have two separate real roots because sqrt(D) is a positive real number.

How to use this discriminant calculator

  1. Enter coefficient a, coefficient b, and coefficient c from a quadratic equation written as ax^2 + bx + c = 0.
  2. Keep a different from 0. If a = 0, the equation is linear, not quadratic, so the discriminant rule does not apply here.
  3. Read the final D value first, then check the root type summary to understand what the discriminant means.
  4. Open the step-by-step and formula sections whenever you want to verify the substitution or study the concept in more detail.

Introduction

A strong discriminant calculator should do more than output one number. It should help you understand what that number means, how it was calculated, and why it matters in the quadratic formula. This page is built for that full workflow. Enter the coefficients a, b, and c from ax^2 + bx + c = 0, and the calculator will compute D = b^2 - 4ac, classify the roots, and walk you through the substitution step by step.

That makes the page useful for students learning algebra, teachers checking examples, and anyone who wants to calculate discriminant quickly without treating the result as a black box. The goal is not just speed. The goal is reliable understanding with a clean interface, clear validation, and educational content that still feels practical on desktop and mobile.

What the discriminant is

The discriminant is the expression D = b^2 - 4ac from the quadratic formula. It uses the three coefficients from the standard quadratic equation ax^2 + bx + c = 0. Because it sits inside sqrt(D) in the quadratic formula, it tells you what kind of roots the equation has before you calculate the full answers. That is why it is one of the most important shortcut ideas in algebra.

A useful discriminant of quadratic equation page should connect the formula to meaning. The discriminant is not just arithmetic. It is a classification tool. A positive result means two different real roots, zero means one repeated real root, and a negative result means two complex roots. Once you see that pattern a few times, you can often predict the nature of the solution before finishing the full algebra.

Why the discriminant matters

The discriminant matters because it summarizes the behavior of a quadratic equation in one value. In graph terms, it tells you how the parabola interacts with the x-axis. If D is positive, the graph crosses the axis twice. If D is zero, it touches the axis once at the vertex. If D is negative, it never crosses the real x-axis at all. This is a fast way to connect symbolic algebra with visual meaning.

It also matters because it saves time. Before computing exact roots, you can look at D and know whether to expect two real answers, a repeated root, or complex solutions. That is why so many learners search for a discriminant formula solver. They want a clean way to classify the equation before deciding whether factoring is sensible, whether radicals will appear, or whether complex numbers are involved.

Discriminant formula explained

The full formula is D = b^2 - 4ac. The letter D stands for discriminant. The coefficient a comes from the x^2 term, b comes from the x term, and c is the constant term. The correct order matters. First square b. Then multiply 4, a, and c together. Finally subtract 4ac from b^2. This order is what keeps the formula readable and mathematically correct.

If you are using a b^2 - 4ac calculator, this is the structure you are checking: b^2 first, 4ac second, subtraction last. Many mistakes happen when users forget parentheses around negative values or rush the multiplication. This page makes those intermediate values visible so you can see b^2 and 4ac separately before the final subtraction. That keeps the process beginner-friendly without oversimplifying the math.

How to use this calculator

Start by entering coefficient a, coefficient b, and coefficient c from a quadratic equation written in standard form: ax^2 + bx + c = 0. The calculator expects a real quadratic, so a cannot be 0. Once the three inputs are valid, it computes the discriminant, labels the root type, and shows the substitution path that leads to the final D value. This makes it useful both as a quick check and as a teaching aid.

The Example button loads a ready-made quadratic so you can see the layout immediately. The Reset button clears the fields, and the result area switches cleanly between empty, error, and solved states. That interaction pattern matches the site’s existing calculator architecture, which keeps the page familiar for returning users and simple for first-time visitors.

What positive, zero, and negative discriminants mean

A positive discriminant means the quadratic equation has two different real roots. Because sqrt(D) is a positive real value, the plus and minus branches of the quadratic formula create two separate answers. This is the case many students first recognize from factorable equations such as x^2 - 5x + 6 = 0.

A zero discriminant means the equation has one repeated real root. In that case sqrt(D) becomes 0, so the plus and minus branches produce the same result. A negative discriminant means the equation has two complex roots, which is where the complex roots calculator connection becomes useful. The solutions still exist, but they are not real numbers. Understanding these three cases is the fastest way to interpret quadratic root type calculator before solving further.

Worked examples

Worked examples are where the discriminant becomes intuitive. A positive case shows how b^2 ends up larger than 4ac, creating two real roots. A zero case shows a perfect balance where b^2 and 4ac are equal, giving one repeated root. A negative case shows 4ac exceeding b^2, which pushes the result below zero and signals complex roots. Seeing all three patterns side by side is often more helpful than memorizing the rule in isolation.

This page includes those three standard cases so you can compare the structure directly. Each example lists the coefficients, the substitution into D = b^2 - 4ac, the final value of D, and the root interpretation. That format is intentionally educational because users searching for a discriminant tool often want both a calculator and a quick revision guide at the same time.

Common mistakes

One common mistake is using the wrong equation form. The coefficients must come from ax^2 + bx + c = 0. If the equation is not written in standard form first, the values of a, b, and c may be wrong from the start. Another mistake is forgetting to square negative b correctly. For example, if b = -6, then b^2 is 36, not -36. Parentheses matter.

A third mistake is letting a = 0 and still trying to use the discriminant. If the x^2 term disappears, the equation is linear, not quadratic. Users also sometimes multiply 4ac incorrectly or subtract in the wrong order. That is why this page breaks the formula into separate pieces, showing b^2, 4ac, and the final subtraction independently. It reduces arithmetic confusion and makes error checking much easier.

Why this page is useful

A polished calculator page should feel like a real study tool, not a thin widget. This one gives you the final discriminant value, the root classification, a formula section, substitution breakdown, step-by-step explanation, interpretation, worked examples, and FAQs. That combination makes it useful for homework review, classroom explanation, and quick algebra checks when you need confidence in the result.

The discriminant is a small formula with a big role in quadratic equations. A serious discriminant calculator page should respect that by keeping the math correct, the notation readable, and the teaching value high. That is the standard this page is designed to meet.

Worked examples

Example 1 - Positive discriminant

Given a = 1, b = -5, c = 6

Substitution: D = (-5)^2 - 4(1)(6) = 25 - 24

Final result: D = 1

Two distinct real roots

The discriminant is positive, so the quadratic equation has two different real roots. Because D = 1 is greater than 0, sqrt(D) is a real non-zero number and the plus and minus branches of the quadratic formula produce two distinct answers.

Example 2 - Zero discriminant

Given a = 1, b = -6, c = 9

Substitution: D = (-6)^2 - 4(1)(9) = 36 - 36

Final result: D = 0

One repeated real root

The discriminant is zero, so the quadratic equation has one repeated real root. Because D = 0, the sqrt(D) term disappears and both branches of the quadratic formula collapse to the same value.

Example 3 - Negative discriminant

Given a = 1, b = 4, c = 13

Substitution: D = (4)^2 - 4(1)(13) = 16 - 52

Final result: D = -36

Two complex roots

The discriminant is negative, so the quadratic equation has two complex roots. Because D = -36 is less than 0, sqrt(D) is not a real number, which means the solutions involve i and form a complex conjugate pair.

Frequently Asked Questions

Q
What is the discriminant of a quadratic equation?
The discriminant is the expression D = b^2 - 4ac from the quadratic formula. It is calculated from the coefficients of ax^2 + bx + c = 0 and tells you whether the equation has two distinct real roots, one repeated real root, or two complex roots. That makes the discriminant a quick classification tool before you solve the full equation.
Q
How do you calculate discriminant?
To calculate discriminant, identify a, b, and c from the quadratic equation, then compute D = b^2 - 4ac. Square b first, multiply 4ac second, and subtract the second value from the first. This discriminant calculator shows the substitution and each simplification step so the process stays easy to verify.
Q
What does a negative discriminant mean?
A negative discriminant means the quadratic equation has two complex roots. In the quadratic formula, sqrt(D) is not a real number when D is less than 0, so the solutions involve i. The parabola therefore does not cross the real x-axis even though the equation still has valid complex solutions.
Q
What happens when the discriminant is zero?
When the discriminant is zero, the quadratic equation has one repeated real root. That means both branches of the quadratic formula give the same answer, so the parabola touches the x-axis at exactly one point. This is often called a double root or repeated root.
Q
Why is the discriminant important in the quadratic formula?
The discriminant sits inside sqrt(D) in the quadratic formula x = (-b +/- sqrt(D)) / (2a). Because it controls the square-root part, it determines whether the roots are real, equal, or complex before you finish solving. That is why the discriminant is often taught as the fastest way to interpret a quadratic equation.
Q
Can this discriminant formula solver page solve the whole equation?
This page is focused on the discriminant itself, not full root solving. It tells you the value of D, the root classification, and why that classification matters. It also includes a light roots preview so you can see how D connects to the quadratic formula without turning the page into a full quadratic solver.
Q
Why does this discriminant of quadratic equation page reject a = 0?
If a = 0, the equation is no longer quadratic because the x^2 term disappears. At that point you have a linear equation, and the discriminant formula no longer applies in the same way. That is why the calculator stops and shows a helpful message instead of returning a misleading value.
Q
How does the discriminant relate to quadratic root type calculator?
The discriminant is a shortcut for understanding root behavior. If D is positive, there are two different real roots. If D is zero, there is one repeated real root. If D is negative, there are two complex roots. That one number gives a quick structural summary of the equation before any full root calculation is done.
Q
Does a negative discriminant always mean I made a mistake?
No. A negative discriminant is often perfectly correct. It simply means the equation does not have real roots and instead has a complex conjugate pair. If you expected a real answer, the negative value tells you to revisit your assumptions, not necessarily your arithmetic.