Discriminant Calculator - b² - 4ac Roots and Vertex

Use this discriminant calculator to evaluate b² - 4ac for any quadratic and see real, repeated, or complex roots plus the parabola vertex in one step.

Updated: June 16, 2026 • Free Tool

Discriminant Calculator

Coefficient of x². Must be non-zero.

Coefficient of x in the standard form ax² + bx + c = 0.

Constant term in the standard form ax² + bx + c = 0.

Results

Discriminant b² - 4ac
0
Nature of the roots 0
Root 1 0
Root 2 0
Vertex (h, k) 0
Axis of symmetry x = 0

What Is a Discriminant Calculator?

A discriminant calculator is a math tool that evaluates the expression b² - 4ac for any quadratic equation ax² + bx + c = 0. The discriminant value tells you, in a single number, whether the parabola crosses the x-axis twice, touches it once, or never reaches it. It is the same expression that sits under the square root in the quadratic formula, so this tool can be read as a quick pre-check before you finish solving the equation.

  • Pre-solve a quadratic: Decide whether you are about to deal with two real roots, one repeated root, or complex roots before reaching for the quadratic formula.
  • Sketch a parabola: Combine the discriminant sign with the axis of symmetry and vertex to outline the graph without plotting many points.
  • Check homework or exam answers: Compare the discriminant you wrote on paper to the value returned, so you can catch sign errors in b² or 4ac.
  • Verify a factored form: Confirm that a trinomial factors into two linear factors by checking that the discriminant is a perfect square.

Most algebra students meet the discriminant when they first learn the quadratic formula, because the same b² - 4ac term appears under the radical. Treat the discriminant as a quick status check rather than the final answer: it tells you what kind of roots to expect, and then you can pull the actual values from the quadratic formula.

In practice the discriminant is useful in physics, engineering, and finance whenever a quadratic model shows up. Examples include the maximum height of a projectile, the break-even quantity in a cost model, and the natural frequency of a damped oscillator. Running the discriminant first is often the fastest way to know whether the model has a physical answer at all.

For a step-by-step solve of the same equation, quadratic formula calculator applies the quadratic formula to print both roots plus the vertex.

How the Discriminant Calculator Works

The tool squares the coefficient b, subtracts four times the product of a and c, and reports the result along with the root type, vertex, and axis of symmetry.

D = b² - 4ac
  • a: Coefficient of x² in ax² + bx + c = 0. Must be non-zero or the equation is not a quadratic.
  • b: Coefficient of x in ax² + bx + c = 0.
  • c: Constant term in ax² + bx + c = 0.
  • D: The discriminant, equal to b² - 4ac. Its sign determines the nature of the roots.

The same value D drives the rest of the tool. When D is positive, the calculator takes its square root and applies the quadratic formula to print both real roots. When D is zero, the two roots collapse into one repeated value, which is the x-coordinate of the vertex. When D is negative, the tool rewrites the answer as a complex conjugate pair a ± bi.

The vertex and the axis of symmetry come from the same coefficients. The axis x = -b / (2a) does not depend on the discriminant, and the y-coordinate of the vertex comes from plugging that x back into the original equation. Reporting all three quantities together is what turns a single number into a usable sketching tool.

Worked example: x² - 5x + 6 = 0

Coefficients: a = 1, b = -5, c = 6

D = (-5)² - 4(1)(6) = 25 - 24 = 1

D = 1, so the quadratic has two real roots: x = 2 and x = 3.

A positive discriminant means the parabola crosses the x-axis in two places. The vertex sits at (2.5, -0.25).

According to Khan Academy, the expression b² - 4ac decides whether the quadratic formula returns two real, one repeated, or two complex roots

Once you have the vertex and axis of symmetry from the discriminant, parabola calculator can fill in focus, directrix, and the rest of the conic.

Key Concepts Behind the Discriminant

Four ideas make the discriminant easy to interpret: the sign of the expression, the structure of the roots, the role of the vertex, and how a downward-opening parabola changes the picture.

Positive discriminant (D > 0)

The parabola crosses the x-axis in two places, so the quadratic factors into two distinct linear factors. Both roots are real and unequal.

Zero discriminant (D = 0)

The parabola just touches the x-axis at a single point, which is also the vertex. The quadratic factors into a perfect square such as (x - h)² and the root is repeated.

Negative discriminant (D < 0)

The parabola sits entirely above or below the x-axis. There are no real roots, but the equation still has two complex conjugate roots a + bi and a - bi.

Axis of symmetry and vertex

The vertical line x = -b / (2a) splits the parabola into two mirror images. The vertex (h, k) sits on that line and is the lowest or highest point of the graph depending on the sign of a.

The sign of D is the single most useful piece of information. Memorize the three cases before anything else about the quadratic formula, because the sign tells you in advance whether the equation has a clean algebraic answer or whether you need to move into complex numbers.

If you remember that the vertex x-coordinate equals -b / (2a), you can sketch a quadratic from three numbers alone: the sign of a (parabola direction), the sign of D (number of x-intercepts), and the vertex. This tool prints all three values together so you can build a sketch without plotting anything.

If the discriminant comes back negative, the roots are complex conjugates, and complex number calculator handles the a + bi form for you.

How to Use This Discriminant Calculator

Enter the three coefficients of your quadratic in standard form and the page updates the discriminant, the roots, the vertex, and the axis of symmetry as you type.

  1. 1 Write the equation in standard form: Rearrange the quadratic as ax² + bx + c = 0 so the coefficient of x² is positive and the equation is set equal to zero.
  2. 2 Enter coefficient a: Type the number in front of x². A non-zero value is required, otherwise the expression is not a quadratic.
  3. 3 Enter coefficient b: Type the number in front of x. Watch the sign: b = -5 in x² - 5x + 6 is entered as -5, not 5.
  4. 4 Enter coefficient c: Type the constant term, the y-intercept of the parabola and the value of the quadratic at x = 0.
  5. 5 Read the discriminant and nature of the roots: The discriminant updates on every keystroke, and the tool labels whether the result is two real roots, one repeated root, or two complex roots.
  6. 6 Use the vertex and axis to sketch the parabola: Plot the vertex, draw the axis of symmetry as a vertical line, and combine the sign of a with the sign of the discriminant to decide how the parabola opens and where it meets the x-axis.

Trying 2x² - 7x + 3 = 0 returns D = 25, two real roots of x = 3 and x = 0.5, a vertex at (1.75, -3.125), and an axis of symmetry at x = 1.75 — enough to sketch the parabola in seconds.

When the discriminant is a perfect square, factoring trinomials calculator turns the trinomial into a product of two linear factors in seconds.

Benefits of Using This Discriminant Calculator

Running the discriminant before fully solving the equation catches sign errors quickly and turns a hard quadratic into a quick sketching exercise.

  • Catch sign mistakes early: If the discriminant sign disagrees with the roots you wrote on paper, you can revisit b² or 4ac without redoing the entire quadratic formula.
  • Tell real and complex roots apart at a glance: A negative discriminant is labelled clearly, and the tool switches the output to a complex conjugate pair so you do not have to rewrite the formula.
  • Get the vertex and axis without a second tool: The same inputs that drive the discriminant also feed the vertex, so you do not need a separate parabola or vertex calculator.
  • Save time on factoring checks: A perfect square discriminant means the quadratic is a perfect square trinomial, which saves the extra step of testing factor pairs.
  • Match common classroom notation: The tool uses the same b² - 4ac expression and the same root forms you see in textbooks, so the results line up with what you write on a test.

For a single quadratic the time savings are small, but across a homework set the discriminant is the fastest way to triage which problems have real answers and which need the quadratic formula with complex numbers. Doing the discriminant first also helps you sanity-check graphs: a positive discriminant plus a positive leading coefficient means the parabola dips below the x-axis, while a positive leading coefficient with a negative discriminant means the parabola never crosses the x-axis.

Once the discriminant has told you that each quadratic in a system has real roots, system of equations calculator can pair those roots back into a full solution.

Factors That Affect Discriminant Results

The discriminant depends on the same three coefficients you already wrote down, but a handful of conditions change how the result should be read.

Sign of coefficient a

The discriminant value itself does not change with the sign of a, but the sign of a decides whether the parabola opens upward (a > 0) or downward (a < 0), which changes how the roots and vertex appear on the graph.

Magnitude of b versus 4ac

When b² is much larger than 4ac, the discriminant is large and positive and the roots are far apart on the x-axis. When b² is much smaller, the discriminant is large and negative and the roots are far apart in the complex plane.

Perfect square discriminant

When the discriminant is a non-negative perfect square, the roots are rational and the quadratic factors over the rationals. When it is a non-negative non-square, the roots are irrational surds such as (1 + √5) / 2.

Coefficient a close to zero

When a is extremely small, the formula becomes numerically unstable. The discriminant can still be computed, but tiny rounding errors get amplified by the 1 / (2a) term.

  • This tool handles real coefficients only. Quadratics with complex coefficients use a slightly different definition of the discriminant and require a separate approach.
  • Results are rounded to four decimal places. The exact root forms in textbooks, such as (-b ± √D) / (2a), are preserved in concept but not always in symbolic form on screen.
  • A zero discriminant can hide tiny numerical differences. If a solver reports D = 1e-12 instead of exactly zero, treat the result as a repeated root only after checking the inputs.

The same discriminant value can mean different things depending on context. A large positive discriminant might look impressive, but it is really just a sign that the roots are far apart. Focus on the sign of D, whether D is a perfect square, and the value of the vertex, and you have what you need to interpret the equation.

According to Cuemath, the sign of the discriminant corresponds to the number of real x-intercepts the parabola has

Discriminant calculator showing the b² - 4ac evaluation, the nature of the roots, and the parabola vertex for a quadratic equation.
Discriminant calculator showing the b² - 4ac evaluation, the nature of the roots, and the parabola vertex for a quadratic equation.

Frequently Asked Questions

Q: What is the discriminant in a quadratic equation?

A: The discriminant is the expression b² - 4ac that sits under the square root in the quadratic formula. It summarises how many real solutions ax² + bx + c = 0 has and whether those solutions are repeated or distinct.

Q: How do you calculate the discriminant of ax^2 + bx + c?

A: Square the middle coefficient b, then subtract four times the product of the outer coefficients a and c. The result is b² - 4ac and it is the only step you need to run a discriminant calculator.

Q: What does a positive discriminant tell you about the roots?

A: A positive discriminant means the parabola crosses the x-axis in two different places, so the quadratic has two distinct real roots. The exact roots come from the quadratic formula x = (-b ± √D) / (2a).

Q: Why does a negative discriminant give complex roots?

A: When D is negative, √D is not a real number, so the quadratic formula produces imaginary components. The two roots are complex conjugates of the form a + bi and a - bi, which is why they always appear as a matched pair.

Q: What happens when the discriminant equals zero?

A: When D is exactly zero, the quadratic has one repeated real root located at the vertex of the parabola. The factorisation becomes a perfect square such as (x - h)² and the parabola touches the x-axis at a single point.

Q: Can the discriminant tell you how many real roots a quadratic has?

A: Yes. A positive discriminant means two real roots, a zero discriminant means one repeated real root, and a negative discriminant means no real roots. The discriminant is the fastest way to count real roots before you solve the equation in full.