What counts as a real root
A cubic polynomial has the form ax³ + bx² + cx + d, where a is not zero. A root is a value x for which the expression equals zero. A real-coefficient cubic has either one or three real roots when counted with multiplicity, but a calculator may display only distinct real values. A repeated root therefore can have multiplicity two while appearing once in the result list.
This tool accepts four coefficients: a for x³, b for x², c for x, and d for the constant term. The coefficients need not be integers. The variable x has whatever units the problem defines; coefficients must be consistent with those units so that every term can be added. Many algebra exercises use dimensionless numbers, while physical models may use scaled variables.
How the cubic is reduced
Divide the equation by a to make its leading coefficient one, then shift the variable to remove the squared term. Writing x = t − b/(3a) reduces the cubic to t³ + pt + q = 0. The shift makes root formulas more manageable, but each calculated t must be shifted back to recover x.
The NIST Digital Library of Mathematical Functions gives the reduced coefficients and discriminant D = −4p³ − 27q². The sign separates the familiar one-real-root and three-real-root cases away from repeated-root boundaries. Cardano's expressions involve radicals; when all three roots are real, a trigonometric form can avoid intermediate complex values even though the final answers are real.
Solve and verify a cubic
Enter the coefficients in descending power order. Do not omit a zero coefficient between powers: for x³ − 6x² + 11x − 6, enter a = 1, b = −6, c = 11, and d = −6. The root list should be checked against the original expression, not only the transformed depressed cubic, because a sign error in the shift can move every solution.
For each reported root r, evaluate ar³ + br² + cr + d. The residual should be close to zero relative to the scale of the terms. A displayed root such as 1.00000000 may have a small floating-point residual even if the internal value is more precise; rounding the root before substitution can make the check appear worse.
Worked examples
Three distinct rational roots
Inputs: a = 1; b = −6; c = 11; d = −6
Calculation: x³ − 6x² + 11x − 6 = (x − 1)(x − 2)(x − 3)
Distinct real roots: 1, 2, and 3.
One real root and a complex pair
Inputs: a = 1; b = 1; c = 1; d = 1
Calculation: x³ + x² + x + 1 = (x + 1)(x² + 1); only x = −1 is real
Distinct real root: −1.
Worked examples and substitution checks
Example one uses x³ − 6x² + 11x − 6 = 0. Factoring gives (x − 1)(x − 2)(x − 3) = 0, so the real roots are 1, 2, and 3. Substitution at x = 2 gives 8 − 24 + 22 − 6 = 0; the other roots also make the polynomial zero. This factorization independently checks the numerical list.
Example two uses x³ + x² + x + 1 = 0. Grouping gives x²(x + 1) + 1(x + 1) = (x + 1)(x² + 1). The only real root is x = −1, since x² + 1 has no real solution. Substituting −1 gives −1 + 1 − 1 + 1 = 0. The complex pair from the quadratic is intentionally not included by this real-roots calculator.
A third check can show multiplicity: x³ − 3x + 2 = (x − 1)²(x + 2). Its distinct real roots are −2 and 1. Substituting 1 gives zero, and the repeated factor explains why the curve touches the axis there rather than crossing at a simple root. The result list should not duplicate 1 merely to indicate multiplicity.
Read the result in context
A root may represent a time, distance, concentration, or threshold depending on how the polynomial was built. Mathematics alone does not determine whether a root is physically admissible. A model might require x ≥ 0, for example, or might exclude values beyond a measured operating range. Apply those constraints after solving.
Near a repeated root, small coefficient changes can noticeably move computed values. Floating-point arithmetic and the runtime's tolerance can merge roots that are numerically indistinguishable. The page warns that ill-conditioned coefficients or nearly repeated roots can reduce accuracy. Retain coefficient precision when available and verify with a residual.
Common errors and limits
Coefficient order is a common source of mistakes. Entering −6 into the x³ field instead of the constant field changes the equation. Another error is dropping the minus sign during a variable shift or assuming every cubic has three distinct real roots. The discriminant distinguishes cases, and the output intentionally focuses on real values only.
A root rounded for display should not be treated as an exact symbolic value. If coefficients are approximate measurements, reporting many digits does not improve the model. State coefficient precision and use the result at a precision justified by the inputs.