What would you like to understand?

Popular destinationsCalculatorsCoursesPracticeFormulas

Unlock Premium Help

Explore every tutor and study workspace for seven days, with no daily AI cap during the trial.

Choose a billing period
Ask a parent to pay

Nothing is charged during the first seven days. Unless you cancel, the plan you selected begins when the trial ends and renews on its stated schedule. Manage cancellation from your plan page. Stripe handles the payment details.

Discriminant Calculator

Calculate b² − 4ac and classify the roots before solving.

Set up the relationship

Discriminant inputs

Enter only the values that define this relationship. The result is checked against the original setup.

Discriminant and root typeEnter the known values

The method, result, and an independent check will appear here.

Method for this result

  1. Complete the inputs and calculate.

Root-count check

  1. The check will use a different relationship or reverse operation where possible.

The relationship behind Discriminant Calculator

D = b² − 4ac D > 0: two real roots D = 0: one repeated root D < 0: two complex roots

Symbols and inputs for Discriminant Calculator

Symbols and inputs for Discriminant Calculator
SymbolQuantityMeaning
aCoefficient of x²Must not be zero. Its sign decides whether the parabola opens upward or downward.
bCoefficient of xSquared first, so its sign never survives into b². A −7 becomes +49.
cConstant termCarries its own sign into −4ac, which is where most sign errors happen.
DDiscriminantA plain number with no unit. Only its sign and whether it is a perfect square matter.

Worked example for Discriminant Calculator

  1. The equation: 3x² − 7x + 2 = 0, so a = 3, b = −7, c = 2
  2. Square b, keeping the minus inside the bracket: (−7)² = 49
  3. Work out 4ac: 4 × 3 × 2 = 24
  4. Subtract: D = 49 − 24 = 25
  5. 25 is positive, so there are two different real roots: √25 = 5, a whole number
  6. A whole-number square root means whole-number brackets exist: 3x² − 7x + 2 = (3x − 1)(x − 2)
  7. Read the roots off the brackets: x = 1/3 and x = 2

A second case for Discriminant Calculator

  1. A different case: the discriminant lands on zero: x² − 12x + 36 = 0
  2. Work it out: (−12)² − 4(1)(36) = 144 − 144 = 0
  3. Zero means the ± branch collapses: x = 12/2 = 6, a single repeated root
  4. The graph just grazes the axis: y = (x − 6)² touches at (6, 0) and turns back up
  5. Now the case the formula cannot describe: 0x² + 5x − 3 = 0, where a = 0
  6. The discriminant would say 25 − 0 = 25: but 2a in the denominator is 0, so the formula divides by zero
  7. Solve it as the straight line it is: 5x = 3, so x = 0.6, and there is only ever one answer

A perfect-square discriminant is the promise that whole-number brackets exist

A perfect-square discriminant is the promise that whole-number brackets exist
EquationD = b² − 4ac√DPerfect square?Factored, or why not
3x² − 7x + 2 = 049 − 24 = 255yes(3x − 1)(x − 2)
x² + 5x + 6 = 025 − 24 = 11yes(x + 2)(x + 3)
6x² + x − 15 = 01 + 360 = 36119yes(2x − 3)(3x + 5)
4x² − 12x + 9 = 0144 − 144 = 00yes(2x − 3)², one repeated root
x² − 2x − 4 = 04 + 16 = 20≈ 4.4721noroots 1 ± √5, so no whole-number brackets
2x² + 4x + 5 = 016 − 40 = −24not a real numbernoroots −1 ± 1.2247i, no real factoring
x² + x + 1 = 01 − 4 = −3not a real numbernoroots −0.5 ± 0.8660i

Mistakes to catch with Discriminant Calculator

For 3x² − 7x + 2, writing D = −7² − 24 = −73

Without brackets the minus escapes the square. b² means (−7)², which is +49.

Repair: Bracket it: (−7)² − 4(3)(2) = 49 − 24 = 25.

For x² − 2x − 4, writing D = 4 − 16 = −12

c is −4, so −4ac is −4(1)(−4) = +16, not −16. Two minuses make a plus.

Repair: D = 4 + 16 = 20, which is positive, so there are two real roots.

D = 20, so the roots are (2 ± 20)/2 = 11 and −9

The discriminant still has to be square-rooted before it goes into the formula.

Repair: √20 ≈ 4.4721, so the roots are (2 ± 4.4721)/2 = 3.2361 and −1.2361.

Questions about Discriminant Calculator

Does the discriminant give me the roots themselves?

No, only their type and count. D = 25 tells you there are two clean rational roots but not that they are 1/3 and 2. You still need the full formula, or the brackets, to get the actual numbers.

What happens to the discriminant if a = 0?

The number b² − 4ac still calculates, but it is meaningless. With no x² term there is no parabola, so there is nothing for D to describe, and the equation has exactly one solution rather than two.

Why does a perfect-square discriminant mean it factors nicely?

Because the roots come out as (−b ± √D)/(2a). If √D is a whole number, both roots are fractions of whole numbers, and every rational root corresponds to a bracket with whole numbers in it.

Is there a discriminant for a cubic?

Yes, but it is a much longer expression and b² − 4ac is not it. That short form belongs to quadratics only, because it comes from completing the square on ax² + bx + c.

Understand the result from Discriminant Calculator

Compare another tool, review the underlying idea, then solve a fresh problem without copying the example.

Calculators related to Discriminant Calculator

See all calculators →

Algebra calculator

Explore this resource with editable values, visible working, and a result you can check.

Open free tool

Quadratic formula calculator

Explore this resource with editable values, visible working, and a result you can check.

Open free tool

Graphing calculator

Explore this resource with editable values, visible working, and a result you can check.

Open free tool

Understand algebra behind this calculator

A calculator can check the arithmetic; use the algebra subject guide to rebuild the method, algebra practice questions to test selection, and the math formula library to confirm conditions and notation.