Descartes Rule Of Signs Calculator - Real Root Bounds From Sign Changes

Use this free Descartes rule of signs calculator to bound positive, negative, zero, and complex real roots from sign changes in p(x) and p(-x).

Updated: June 19, 2026 • Free Tool

Descartes Rule Of Signs Calculator

Coefficient of x^6. Use 0 to skip the x^6 term.

Coefficient of x^5. Use 0 to skip the x^5 term.

Coefficient of x^4. Use 0 to skip the x^4 term.

Coefficient of x^3. The default 1 starts with the cubic x^3 - 6x^2 + 11x - 6.

Coefficient of x^2. The default -6 is the x^2 term of the cubic x^3 - 6x^2 + 11x - 6.

Coefficient of x. The default 11 is the x term of the cubic x^3 - 6x^2 + 11x - 6.

Constant term a_0 of the polynomial. The default -6 is the constant of x^3 - 6x^2 + 11x - 6.

Results

Positive real roots (max)
0
Negative real roots (max) 0
Zero roots (x = 0) 0
Real roots (max) 0
Complex roots (max) 0
Sign strip for p(x) 0
Sign strip for p(-x) 0

What This Calculator Does

A Descartes rule of signs calculator counts sign changes in a real polynomial to bound the count of positive, negative, and zero real roots. Enter the coefficients from the highest power of x down to the constant term, leave any missing term at 0, and the tool prints the maximum positive real roots, the maximum negative real roots from p(-x), the multiplicity of x = 0, and the cap on non-real complex roots. Students and engineers reach for it when they need a quick bound on real solutions before factoring or graphing.

  • Bounding roots before factoring: Estimate the maximum real-root count of a high-degree polynomial before attempting to factor it.
  • Class homework and textbook exercises: Solve problems such as bounding the real roots of x^3 - 6x^2 + 11x - 6 or x^2 + 2x + 1 in one step.
  • Checking eigenvalue bounds: Apply the rule to a characteristic polynomial det(A - λI) to bound how many real eigenvalues a real matrix can have.
  • Confirming no positive or negative real roots: Show that a polynomial with zero sign changes in p(x) and p(-x) has no positive or negative real roots; check the constant term separately, because x = 0 is still a real root whenever it is zero.

Descartes' rule is an upper bound, not an exact count. The actual positive real root count is the bound minus an even non-negative integer. The same logic on p(-x) handles the negative roots, and a count of trailing zeros handles x = 0.

If you also need to factor the polynomial once a root is in hand, the polynomial division calculator handles the long-division step, and the polynomial graphing calculator plots the curve so you can see where the real roots actually sit.

Formula and Walkthrough

The calculator reads coefficients a_6 down to a_0, strips leading zeros to find the degree, then counts sign changes between consecutive non-zero coefficients. The same count on p(-x) bounds the negative roots. The bound is the maximum count; the actual count is the bound minus an even non-negative integer.

V(p) = #{(i, j) : a_i > 0 > a_j or a_i < 0 < a_j over consecutive non-zero coefficients}, positive real roots <= V(p), negative real roots <= V(p(-x))
  • a_k: Coefficient of x^k, entered from x^6 down to the constant term.
  • V(p): Sign changes between consecutive non-zero coefficients of p(x). Equals the positive-root bound.
  • V(p(-x)): Sign changes of the polynomial evaluated at -x, with every odd-power coefficient flipped. Equals the negative-root bound.
  • m_0: Multiplicity of x = 0, equal to the trailing zero coefficients from the constant term.

For V = 3 the real positive count is 3 or 1; for V = 2 it is 2 or 0; for V = 1 it is exactly 1; for V = 0 it is exactly 0. The same staircase applies on the negative side using V(p(-x)).

Worked example: cubic x^3 - 6x^2 + 11x - 6

a_3 = 1, a_2 = -6, a_1 = 11, a_0 = -6. Signs in p(x): +, -, +, -. Sign changes: 3, so V(p) = 3. p(-x) signs -, -, -, - give V(p(-x)) = 0.

Max positive real roots = 3, max negative real roots = 0, zero roots = 0.

The polynomial factors as (x - 1)(x - 2)(x - 3), so the rule is tight and the calculator returns 3 positive roots.

Worked example: quadratic x^2 + 2x + 1

a_2 = 1, a_1 = 2, a_0 = 1. Signs in p(x): +, +, + give V(p) = 0. p(-x) signs +, -, + give V(p(-x)) = 2.

Max positive real roots = 0, max negative real roots = 2, zero roots = 0.

The polynomial factors as (x + 1)^2, so the single sign change in p(-x) correctly predicts a double negative root.

According to Wikipedia: Descartes' rule of signs, the number of positive real roots of a real polynomial is at most the number of sign changes between consecutive non-zero coefficients, and the difference between the bound and the actual count is always an even non-negative integer.

Once the rule identifies a candidate root, the Polynomial Division Calculator performs the long-division step that reduces the polynomial by one degree.

Key Concepts Explained

These four ideas cover everything the calculator reports. Read them once and the result panel becomes a direct readout of the sign-change count.

Sign changes in p(x)

List the non-zero coefficients from highest degree to lowest, then count how many times the sign flips. That count is the positive-root bound.

Sign changes in p(-x)

Substitute -x into the polynomial, flipping the sign of every odd-power coefficient. The sign-change count of the new list is the negative-root bound.

Zero root multiplicity

Count the trailing zero coefficients from the constant term until the first non-zero. That count is the multiplicity of x = 0 and is independent of the sign-change count.

Complex roots in conjugate pairs

Any polynomial with real coefficients has non-real roots only in conjugate pairs, so the number of non-real complex roots is always even. The maximum is the degree minus the minimum real-root count.

The bound is exact when the polynomial factors over the reals; otherwise the real count is the bound minus 2, minus 4, and so on. This staircase is what makes the rule useful as a quick check before factoring.

When the polynomial is a characteristic polynomial det(A − λI) from a small matrix, the Characteristic Polynomial Calculator expands it into the descending-power form that Descartes' rule then bounds.

How to Use It

Use the calculator to enter the coefficients from x^6 down to the constant term. Leave any missing term at 0; the Descartes rule of signs calculator strips leading zeros automatically.

  1. 1 Enter the highest-degree coefficients: Type a_6, a_5, and a_4 first. Set unused terms to 0; the calculator skips zeros.
  2. 2 Enter the middle-degree coefficients: Type a_3, a_2, and a_1. For the default cubic, a_3 = 1, a_2 = -6, a_1 = 11.
  3. 3 Enter the constant term: Type a_0. The constant term decides whether x = 0 is a root and the trailing-zero count.
  4. 4 Read the sign strips and root bounds: The strip for p(x) drives the positive-root bound; the strip for p(-x) drives the negative-root bound.
  5. 5 Interpret the bound as a staircase: Bound 3 means 3 or 1 positive real roots; 2 means 2 or 0; 1 means exactly 1; 0 means exactly 0. Add the negative bound and zero count to get the max real-root count.

For p(x) = 2x^4 - 3x^3 - x^2 + 4x - 5, enter a_4 = 2, a_3 = -3, a_2 = -1, a_1 = 4, a_0 = -5. The p(x) sign strip + - - + - has 3 sign changes, so the positive-root bound is 3 (the actual positive count is 3 or 1). The p(-x) sign strip + + - - - has 1 sign change, so the negative-root bound is 1 (the actual negative count is exactly 1 by parity). The calculator therefore reports up to 4 real roots and up to 2 non-real complex roots, and the polynomial must have either 4 or 2 real roots in total.

After the rule gives the bound, the Polynomial Graphing Calculator plots the curve so the actual real roots can be read off the x-axis in the same pass.

Why It Helps

Counting sign changes by hand is straightforward but easy to miscount when the polynomial has missing terms. The Descartes rule of signs calculator removes that risk and gives the bound in one step.

  • One-step bound on real roots: Get the maximum positive, negative, and zero real root counts without counting sign changes by hand.
  • Handles missing terms automatically: Zero coefficients are skipped during the sign-change count, so unused powers at 0 do not break the rule.
  • Shows the sign strips: The p(x) and p(-x) sign strips appear next to the counts so you can verify each bound.
  • Covers zero and complex roots: The zero-root multiplicity and the max non-real complex root count come from the same calculation.
  • Pairs with related polynomial tools: Links to the polynomial division, graphing, and characteristic polynomial calculators for the next step.

The biggest time saving is on quartic and higher-degree polynomials, where the sign-change count is easy to misread by one. Pairing the bound with the polynomial graphing calculator confirms where the real roots land.

For the most common textbook case of a degree-2 polynomial, the Factoring Trinomials Calculator returns the actual factorization once Descartes' rule confirms the bound is exactly 2.

Factors That Affect Your Results

A few properties of the polynomial drive every count the Descartes rule of signs calculator reports. Knowing them up front prevents common misreadings.

Sign of the leading coefficient

Sets the end behavior of the polynomial and the first sign in the p(x) strip. It does not change the sign-change count but controls which side of the y-axis the function heads to.

Trailing zero coefficients

A trailing zero at the constant term means x = 0 is a root. The multiplicity equals the number of trailing zeros.

Coefficients with the same sign

When consecutive non-zero coefficients share a sign, the sign-change count does not increase. All-positive or all-negative coefficients give V(p) = 0.

Degree after stripping zeros

Setting all high-degree coefficients to 0 effectively lowers the degree. The calculator strips leading zeros automatically.

  • Descartes' rule gives an upper bound, not an exact count. A polynomial with V(p) = 3 may have 3 or 1 positive real roots; the rule cannot tell which without factoring.
  • The bound is tight only when the polynomial factors completely over the reals. For polynomials with non-real roots the actual count is V minus an even integer.
  • The tool caps the degree at 6 to keep the input panel readable. Higher-degree inputs should be split by hand into lower-degree factors first.

When the polynomial factors over the reals, the bound equals the actual count. When it does not, the rule still gives a staircase (V, V - 2, V - 4, ...) that bounds how many real roots are possible.

According to Wolfram MathWorld: Descartes' Rule of Signs, Wolfram MathWorld notes that the multiplicity of x = 0 equals the trailing zero coefficients of the polynomial, and the same sign-change rule applied to p(-x) bounds the negative real roots.

When the bound leaves room for non-real roots, the Complex Root Calculator computes every nth root of a complex number and reports the conjugate pairs that Descartes' rule already promised.

Descartes rule of signs calculator panel showing seven coefficient inputs from x^6 to the constant term alongside the maximum positive, negative, zero, and complex root counts.
Descartes rule of signs calculator panel showing seven coefficient inputs from x^6 to the constant term alongside the maximum positive, negative, zero, and complex root counts.

Frequently Asked Questions

Q: What does Descartes' rule of signs actually count?

A: It counts the number of sign changes between consecutive non-zero coefficients of a real polynomial. That count is an upper bound on the number of positive real roots, and the difference between the bound and the actual count is always an even non-negative integer.

Q: How do I apply Descartes' rule to negative real roots?

A: Substitute -x into the polynomial and apply the same sign-change count to the new coefficient list. Flipping the sign of every odd-power coefficient gives a separate bound on the number of negative real roots, with the same even-difference rule.

Q: How does Descartes' rule handle the root x = 0?

A: Count the trailing zero coefficients starting from the constant term. That count is the multiplicity of the root x = 0 and is independent of the sign-change count in p(x) or p(-x).

Q: Can Descartes' rule tell me the exact number of real roots?

A: No. Descartes' rule gives an upper bound, not an exact count. The actual count is the bound minus an even non-negative integer, so a bound of 3 means the real count is either 3 or 1; a bound of 2 means 2 or 0; a bound of 1 means exactly 1; a bound of 0 means exactly 0.

Q: Why do polynomials with no sign changes have no positive real roots?

A: If every non-zero coefficient has the same sign, the polynomial is positive (or negative) for every positive x. So it cannot cross zero on the positive x-axis, which means it has no positive real roots.

Q: How is Descartes' rule different from the rational root theorem?

A: Descartes' rule bounds the number of real roots using sign changes and works on any real polynomial. The rational root theorem lists the candidate rational roots from the leading coefficient and constant term but does not bound the total count of real roots.