Discriminant Calculator
Compute b² − 4ac and classify quadratic roots instantly. Determines real, repeated, or complex solutions.
Discriminant Calculator
Background.
The discriminant of a quadratic equation ax² + bx + c = 0 is the expression b² − 4ac. This single quantity determines the qualitative nature of the equation's roots without requiring the full quadratic formula to be evaluated. A discriminant calculator accepts the three coefficients a, b, and c, computes b² − 4ac, and classifies the result as positive, zero, or negative. Each case corresponds to a distinct geometric and algebraic reality: two crossing points on the x-axis, a single tangent point, or no real intersection at all.
Students in algebra, precalculus, and calculus courses are the dominant search demographic for this tool. Teachers frequently assign problems that ask only for the number and type of roots, not their exact values, because discriminant analysis develops number sense and predictive reasoning about polynomial behavior. Standardized tests such as the SAT, ACT, and AP Calculus exams include discriminant questions at regular intervals. Engineers and data scientists occasionally use discriminant logic when analyzing the stability of second-order dynamical systems, where complex roots indicate oscillatory behavior and real roots indicate exponential decay or growth.
The concept of the discriminant generalizes far beyond quadratics. For a cubic equation ax³ + bx² + cx + d = 0, the discriminant is b²c² − 4ac³ − 4b³d − 27a²d² + 18abcd, and its sign determines whether the cubic has three distinct real roots or one real root and two complex conjugates. For quartic and higher-degree polynomials, discriminants exist but become impractical to compute by hand. The quadratic discriminant is the only case simple enough to be memorized and applied routinely, which explains its outsized presence in mathematics education. The calculator focuses exclusively on this quadratic case.
Geometrically, the discriminant measures the vertical separation between the parabola's vertex and the x-axis, scaled by the leading coefficient. When D > 0, the vertex lies below the x-axis for upward-opening parabolas (a > 0) and the curve must cross the axis twice. When D = 0, the vertex sits exactly on the x-axis, producing a single point of contact. When D < 0, the entire parabola lies on one side of the x-axis and never intersects it. This geometric interpretation helps students connect algebraic computation with graphical understanding, a connection that the calculator reinforces by displaying the root nature alongside the numeric discriminant. The vertex y-coordinate is k = −D/(4a), so the discriminant also encodes the extremal value of the quadratic.
In physics, the discriminant appears in the analysis of damped harmonic oscillators. The equation of motion mẍ + cẋ + kx = 0 has characteristic roots determined by a quadratic equation in the Laplace variable s. The discriminant c² − 4mk distinguishes overdamped motion (distinct real roots, D > 0), critically damped motion (repeated real root, D = 0), and underdamped oscillation (complex roots, D < 0). These three regimes describe everything from car suspension systems to RLC electrical circuits and pendulum clocks. The discriminant calculator provides the same classification logic in a purely mathematical context, but the physical interpretation is identical and extends to any second-order linear system.
What is discriminant calculator?
The discriminant is a polynomial expression derived from the coefficients of a quadratic equation that predicts the nature of its roots. For the standard quadratic ax² + bx + c = 0 with a ≠ 0, the discriminant D is defined as b² − 4ac. If D is strictly positive, the equation has two distinct real roots. If D equals zero, there is exactly one real root with algebraic multiplicity two, often called a repeated or double root. If D is negative, there are no real roots; instead, the equation has two complex conjugate roots of the form p ± qi where i² = −1. The discriminant is a homogeneous polynomial of degree 2 in the coefficients a, b, and c. It is invariant under scaling of the equation: if every coefficient is multiplied by the same non-zero constant, the discriminant scales by the square of that constant, but the sign remains unchanged. Because the sign determines root classification, scaling does not affect the qualitative conclusion. The discriminant is zero precisely when the quadratic has a multiple root, which occurs if and only if the quadratic and its derivative share a common root. This condition is both necessary and sufficient for the existence of a repeated root.
How to use this calculator.
- Enter the leading coefficient a of the quadratic term.
- Enter the linear coefficient b.
- Enter the constant term c.
- Ensure a is non-zero; the calculator rejects a = 0.
- Read the discriminant value, which is b² − 4ac.
- Check the root nature output: 0 for two distinct real roots, 1 for one repeated real root, 2 for complex conjugate roots.
- Use this classification to decide whether to apply the quadratic formula or to expect complex results.
The formula.
The discriminant emerges naturally from the quadratic formula. Starting from ax² + bx + c = 0 and completing the square, one obtains x = (−b ± √(b² − 4ac))/(2a). The expression under the radical, b² − 4ac, is the discriminant D. Because the square root of a negative number is not real, the sign of D governs the existence of real solutions. When D > 0, √(D) is a positive real number, and the ± operation produces two distinct values. When D = 0, √(D) = 0, and both branches collapse to the single value x = −b/(2a). When D < 0, √(D) is imaginary, and the two solutions are complex conjugates. The discriminant can also be expressed as the resultant of the quadratic polynomial and its derivative. The derivative of f(x) = ax² + bx + c is f'(x) = 2ax + b. The resultant Res(f, f') is a determinant that vanishes exactly when f and f' share a common root, which occurs at a repeated root of f. Computing this resultant yields a²(b² − 4ac), confirming that D = 0 is the condition for a multiple root. This algebraic perspective connects the discriminant to elimination theory and explains why similar expressions appear for cubic and quartic equations. Dimensional analysis provides additional insight. If x is measured in metres, then a has units of m⁻² (since ax² must be dimensionless in the context of the equation), b has units of m⁻¹, and c is dimensionless. Then b² has units of m⁻², and 4ac also has units of m⁻², so D is dimensionally consistent. In physics applications, this consistency is essential. For example, in the damped oscillator equation, c² has units of (kg/s)² and 4mk has units of kg·N/m = kg²/s², so both terms in the discriminant share the same dimensions. The discriminant is a special case of the more general concept of a discriminant in algebraic geometry. For a polynomial of degree n, the discriminant is a polynomial in the coefficients that vanishes whenever the polynomial has a multiple root. The quadratic discriminant is the simplest non-trivial instance of this construction. It is also related to the determinant of the Sylvester matrix formed by the polynomial and its derivative, a connection that generalizes to systems of multivariate polynomials.
A worked example.
Consider the quadratic equation x² − 7x + 10 = 0. The calculator computes the discriminant as D = (−7)² − 4(1)(10) = 49 − 40 = 9. Because D = 9 is strictly positive, the root nature code is 0, indicating two distinct real roots. The user can verify this by factoring: x² − 7x + 10 = (x − 2)(x − 5), giving roots x = 2 and x = 5. If the constant term were changed to c = 12.25, the discriminant would be D = 49 − 49 = 0, and the root nature code would be 1, indicating a repeated real root at x = 3.5. If c were increased further to c = 13, D would become negative and the roots would be complex conjugates. This example illustrates how the discriminant acts as a threshold parameter: small changes in c can shift the equation across the boundary between real and complex solutions.
Frequently asked questions.
Can the discriminant tell me the exact roots?
What does it mean when the discriminant is zero?
Why is the discriminant called b² − 4ac and not something else?
Does a negative discriminant mean there are no solutions?
How does the discriminant relate to the vertex?
Is the discriminant defined for linear equations?
Can the discriminant be used for inequalities?
What happens if my coefficients are decimals instead of integers?
Are there discriminants for cubic and higher-degree equations?
References& sources.
- [1]Stewart, J. (2015). Calculus: Early Transcendentals, 8th ed. Cengage Learning. ISBN 978-1285741550.
- [2]NIST Digital Library of Mathematical Functions (2024). "Elementary Algebra." §1.11. https://dlmf.nist.gov/1.11
- [3]Strang, G. (2016). Introduction to Linear Algebra, 5th ed. Wellesley-Cambridge Press. ISBN 978-0980232776.
- [4]Boyce, W.E. and DiPrima, R.C. (2017). Elementary Differential Equations and Boundary Value Problems, 11th ed. Wiley. ISBN 978-1119382874.
- [5]Dummit, D.S. and Foote, R.M. (2004). Abstract Algebra, 3rd ed. Wiley. ISBN 978-0471433347.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 313 calculators remain free
- No billing is enabled