Descartes' Rule of Signs Calculator screenshot

Descartes' Rule of Signs Calculator

Count the sign changes in P(x) and P(-x) to bound the possible positive and negative real roots.

Privacy First
0 Runs
Updated 2026-11-22
No upload
Instant
No signup

Descartes' Rule of Signs Calculator

Count the sign changes in P(x) and P(-x) to bound the possible positive and negative real roots.

How this page computes

The sign of a term is all the rule needs, so coefficients may be exact rationals. The page reports the bound, not the roots themselves; finding them needs a different method.

The calculation runs entirely in this browser tab; nothing is uploaded.

The page reads a polynomial's coefficients, highest power first, and counts the sign changes in P(x) and in P(minus x). For 1, minus 3 and 2 it finds two changes for P(x) and none for P(minus x), so there are two or zero positive roots and no negative roots.

Zero coefficients are skipped when signs are compared, because a missing term is not a sign change. A zero constant term is called out separately, since x then factors out first.

How to use the Descartes' Rule of Signs Calculator

Enter the coefficients from the highest power down, separated by spaces, then press Run. The first line prints the polynomial and the next two give the sign-change counts.

Each count is followed by the possible root counts, stepping down by two. That is the rule's actual claim: a bound with a parity, not a single number of roots.

The rule this page applies

Descartes' rule says the number of positive real roots is at most the number of sign changes in P(x), and differs from it by an even number. Applying the same count to P(minus x) bounds the negative roots.

The sign of a term is all the rule needs, so coefficients may be exact rationals. The page reports the bound, not the roots themselves; finding them needs a different method.

What to Expect

Best for

  • Bounding the real roots of a polynomial
  • Checking a sign-change count
  • Seeing the effect of a missing term

Not ideal for

  • Finding the actual roots
  • Complex roots
  • Graphing the polynomial

What this tool keeps

  • The exact coefficient list and both sign-change counts

What may need cleanup

  • Nothing: the counts are exact

Common errors

  • A zero constant term is noted, because x factors out first
  • An empty coefficient list is refused with the expected format

Example use cases

  • Count the signs of x^2 - 3x + 2
  • See a polynomial with no sign changes

Sample input

1 -3 2

Sample output

P(x) = x^2 - 3x + 2 sign changes in P(x): 2 → 2 or 0 positive real roots sign changes in P(-x): 0 → 0 negative real roots

Who this is for

  • Algebra students
  • Readers checking a root bound

Frequently asked questions

Why does the count step down by two?

Complex roots come in conjugate pairs, so removing a pair changes the real-root count by two. The rule therefore gives a bound and the counts reachable from it by subtracting two.

Does a zero coefficient count as a sign change?

No. A missing term has no sign, so it is skipped when neighbouring signs are compared. Counting it would overstate the bound.

What if the constant term is zero?

Then x is a factor and x equals 0 is a root. Descartes' rule is applied to the remaining polynomial, and the page prints a line saying so.

Is anything uploaded?

Nothing is uploaded. The numbers are read and the arithmetic runs in this browser tab with JavaScript, and reloading the page discards both the input and the result.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.