Rational Root Theorem Calculator

Rational roots1, 2, 3
Possible rational roots p/q to test±1, ±2, ±3, ±6
Candidates tested8
Sum of all roots, by Vieta6
How this was calculated
  1. The rational root theorem says every rational root, in lowest terms p/q, has p among the factors of the constant term -6 and q among the factors of the leading coefficient 1.
  2. That gives the possible rational roots p/q to test: ±1, ±2, ±3, ±6 - 8 signed candidates in total.
  3. Substituting each candidate exactly (multiplying through by q^3 to stay in integers) leaves 3 true roots: 1, 2, 3.
  4. Vieta's formulas cross-check the answer: all three roots of the cubic, rational or not, must add to -b/a = 6.

This rational root theorem calculator finds the possible rational roots of a polynomial with integer coefficients and tests them to show which ones are actual roots. The theorem states that any rational root p/q, written in lowest terms, has p dividing the constant term and q dividing the leading coefficient. For x^3 - 6x^2 + 11x - 6, the candidates are plus or minus 1, 2, 3 and 6, and the actual roots are 1, 2 and 3. For 2x^3 + 3x^2 - 8x + 3, the candidates include halves — plus or minus 1/2, 1, 3/2 and 3 — and the roots are -3, 1/2 and 1. For x^3 + 2x^2 - 5x - 6, the roots are -3, -1 and 2. Each example here has exactly 8 signed candidates to test, and substitution is done exactly: multiplying through by q^3 keeps the test in integers, so no root is missed to rounding.

The method is the accepted standard for this kind of calculation because it narrows the search to a finite, exact list of candidates that integer arithmetic can check without rounding error. Vieta's formulas cross-check the result: all three roots of a cubic add to -b/a — 6, -3/2 and -2 in the three examples. This page shows the formula, step-by-step workings, worked examples and sources, so you can follow each candidate test and confirm the roots yourself.

Worked examples

x^3 - 6x^2 + 11x - 6

(1 · -6 · 11 · -6)

Rational roots1, 2, 3
Possible rational roots p/q to test±1, ±2, ±3, ±6
Candidates tested8
Sum of all roots, by Vieta6

2x^3 + 3x^2 - 8x + 3

(2 · 3 · -8 · 3)

Rational roots-3, 1/2, 1
Possible rational roots p/q to test±1/2, ±1, ±3/2, ±3
Candidates tested8
Sum of all roots, by Vieta-3/2

x^3 + 2x^2 - 5x - 6

(1 · 2 · -5 · -6)

Rational roots-3, -1, 2
Possible rational roots p/q to test±1, ±2, ±3, ±6
Candidates tested8
Sum of all roots, by Vieta-2

Building the candidate list

To build a candidate list, you apply the rational root theorem one piece at a time. The theorem says any rational root p/q of a polynomial with integer coefficients, written in lowest terms, has p dividing the constant term and q dividing the leading coefficient. So the constant term supplies the possible numerators and the leading coefficient supplies the possible denominators. A rational root theorem calculator automates exactly this bookkeeping, but seeing the steps makes the output easy to trust.

Take x^3 - 6x^2 + 11x - 6. The constant term is -6 and the leading coefficient is 1. The divisors of 6 give the numerators 1, 2, 3 and 6, and the only divisor of 1 is 1, so every denominator is 1 and the fractions collapse to whole numbers. With both signs, the candidates are plus or minus 1, 2, 3 and 6. That is eight signed candidates, and the actual roots are 1, 2 and 3.

Now take 2x^3 + 3x^2 - 8x + 3. The constant term is 3, so the numerators are 1 and 3; the leading coefficient is 2, so the denominators are 1 and 2. Pairing them and reducing gives whole numbers and halves: plus or minus 1/2, 1, 3/2 and 3. Again that is eight signed candidates, and the roots are -3, 1/2 and 1. The half shows why the denominator matters: a list built only from the constant term would never suggest 1/2.

Each example here has exactly 8 signed candidates to test. Substitution is done exactly: multiplying through by q^3 keeps the test in integers, so no root is missed to rounding. In the third example, x^3 + 2x^2 - 5x - 6, the roots are -3, -1 and 2. Vieta's formulas cross-check the result, since all three roots of a cubic add to -b/a: -6, -3/2 and -2 in the three examples respectively.

Once the list is built, testing is mechanical. Evaluate the polynomial at each signed candidate, or use the integer form of the test, and keep the values that come out to zero. The candidates that fail are simply crossed off. Because the list comes from the divisors of two specific numbers, it is finite and complete for rational roots, which is what makes the method dependable.

  • x^3 - 6x^2 + 11x - 6: numerators 1, 2, 3, 6 over denominator 1 gives plus or minus 1, 2, 3, 6; roots 1, 2, 3.
  • 2x^3 + 3x^2 - 8x + 3: numerators 1, 3 over denominators 1, 2 gives plus or minus 1/2, 1, 3/2, 3; roots -3, 1/2, 1.
  • x^3 + 2x^2 - 5x - 6: roots -3, -1, 2.
  • Every example has exactly 8 signed candidates, tested exactly with no rounding.
Vieta's formulas cross-check the result: all three roots of a cubic add to -b/a, which is -6, -3/2 and -2 in the three examples.

Testing candidates exactly

A rational root theorem calculator can list candidates for you, but the real work is confirming which ones are roots without introducing errors. The rational root theorem says any rational root p/q of a polynomial with integer coefficients, in lowest terms, has p dividing the constant term and q dividing the leading coefficient. Testing each candidate by plugging a fraction into the polynomial invites arithmetic slips, especially when the fraction has a denominator. The fix is to substitute exactly: when you test p/q, multiply the whole equation through by q^3. Because the polynomial is a cubic, every term picks up enough factors of q to clear the denominator, so the test stays in whole numbers.

Take 2x^3 + 3x^2 - 8x + 3. The candidates include halves — plus or minus 1/2, 1, 3/2 and 3 — and the roots are -3, 1/2 and 1. Suppose you test 1/2 by decimal guessing. You might evaluate at 0.5, get a value close to zero, and shrug at the small leftover as rounding. The exact test removes the doubt. For p/q = 1/2, multiply through by q^3 = 8: the test becomes 2(1)^3 + 3(1)^2(2) - 8(1)(2)^2 + 3(2)^3, which is 2 + 6 - 32 + 24 = 0. The zero is exact, so 1/2 is a root and cannot be dismissed as a near miss. A decimal guess that lands at, say, 0.001 instead of 0 would have told you nothing reliable.

The same discipline applies to every candidate on the list. Each example here has exactly 8 signed candidates to test, and substitution is done exactly — multiplying through by q^3 keeps the test in integers, so no root is missed to rounding. That matters most for the fractions: a root like 1/2 is easy to overlook when you are scanning decimal outputs, but an integer result of 0 is unambiguous. Once a candidate produces 0, you have a confirmed root and can divide it out to shrink the polynomial and repeat the process on what remains.

After the roots are found, cross-check them against Vieta's formulas. For a cubic, the three roots add to -b/a. In the first example, x^3 - 6x^2 + 11x - 6, the candidates are plus or minus 1, 2, 3 and 6, and the actual roots are 1, 2 and 3, which sum to 6. In the second, the roots -3, 1/2 and 1 sum to -3/2. In the third, x^3 + 2x^2 - 5x - 6, the roots -3, -1 and 2 sum to -2. Those totals are -6, -3/2 and -2 in the three examples, matching -b/a each time. If your exact substitutions produce roots whose sum disagrees with -b/a, a sign or arithmetic error has crept in somewhere.

Testing 1/2 by decimal gives a value that looks almost zero; multiplying through by q^3 = 8 gives an exact 0, so the root cannot be lost to rounding.

What the theorem does not find

A rational root theorem calculator is a candidate generator, not a root solver, and the gap between those two jobs is the whole subject of this section. The theorem says any rational root p/q of a polynomial with integer coefficients, written in lowest terms, has p dividing the constant term and q dividing the leading coefficient. That statement constrains where a rational root can hide. It says nothing about whether one exists, and it says nothing at all about roots that are not rational.

Irrational roots are invisible to the theorem. So are complex roots. A cubic with no rational roots returns an empty list of candidates that survive testing, and that empty result is a correct answer to the question the theorem asks — not evidence that the polynomial has no roots. Every cubic has three roots over the complex numbers; the theorem simply cannot see the ones that fail the p/q test. Treat a blank result as a signal to reach for other tools, not as a dead end.

Even when candidates do appear, they are possibilities, not answers. The list is a set of numbers worth testing, and each one must be substituted into the polynomial to see whether it evaluates to zero. Take x^3 - 6x^2 + 11x - 6: the candidates are plus or minus 1, 2, 3 and 6, and the actual roots are 1, 2 and 3. Eight candidates were on the table; three of them were real roots, and the other five were rejected by substitution. The candidate list did its job by narrowing the search, but it did not hand over the answer.

Leading coefficients widen the list without changing its nature. For 2x^3 + 3x^2 - 8x + 3 the candidates include halves — plus or minus 1/2, 1, 3/2 and 3 — and the roots are -3, 1/2 and 1. Notice that the leading coefficient of 2 introduced fractional candidates that a monic polynomial would never produce, which is exactly why the q dividing the leading coefficient half of the theorem matters. Each example here has exactly 8 signed candidates to test, and substitution is done exactly — multiplying through by q^3 keeps the test in integers, so no root is missed to rounding. That exactness is the point: a candidate that looks close to zero under floating-point arithmetic is either a root or it is not, and integer arithmetic settles it.

Vieta's formulas cross-check the result once roots are found. All three roots of a cubic add to -b/a — 6, -3/2 and -2 in the three examples. For x^3 + 2x^2 - 5x - 6 the roots are -3, -1 and 2, and their sum matches the coefficient ratio as it should. If your tested roots do not satisfy that sum, something in the candidate testing went wrong. Use the theorem to build the list, substitution to confirm each entry, and Vieta to audit the finished set.

An empty candidate list means no rational roots were found — it does not mean the polynomial has no roots. Irrational and complex roots never appear in the theorem's output.

The Vieta cross-check

The rational root theorem calculator gives you a shortlist, but a shortlist is not a proof. Vieta's formulas give you a second, independent check that costs almost nothing: for a cubic ax^3 + bx^2 + cx + d, the three roots must add up to -b/a. If the roots you found do not sum to that value, something went wrong, and you know it before the error reaches a page of work.

Run the check on the first example, x^3 - 6x^2 + 11x - 6. Here a is 1 and b is -6, so -b/a is 6. The roots are 1, 2 and 3, and 1 + 2 + 3 = 6. The rational root theorem says any rational root p/q of a polynomial with integer coefficients, in lowest terms, has p dividing the constant term and q dividing the leading coefficient. That rule produced the candidates plus or minus 1, 2, 3 and 6, and the sum confirms the three roots you kept are the right ones.

The second example, 2x^3 + 3x^2 - 8x + 3, is where the check earns its keep. With a = 2 and b = 3, -b/a is -3/2. The candidates include halves — plus or minus 1/2, 1, 3/2 and 3 — and the roots are -3, 1/2 and 1. Add them: -3 + 1/2 + 1 = -3/2. Notice how easily a slip with the fractional root would break that total. Drop the 1/2, or record it as -1/2, and the sum lands somewhere else entirely, flagging the mistake immediately.

The third example, x^3 + 2x^2 - 5x - 6, has roots -3, -1 and 2. With a = 1 and b = 2, -b/a is -2, and -3 + -1 + 2 = -2. Each example here has exactly 8 signed candidates to test, and substitution is done exactly — multiplying through by q^3 keeps the test in integers, so no root is missed to rounding. The Vieta cross-check closes the loop: exact candidates in, exact roots out, and a sum that has to match.

The cross-check matters most when the rational roots are only part of the picture. A cubic can have one rational root and two irrational or complex ones, and then the rational roots alone will not add up to -b/a — nor should they. In that case the gap between your rational sum and -b/a is not an error; it is the contribution of the roots you have not yet found. Treat the check as a diagnostic: a clean match on a fully rational cubic confirms the arithmetic, while a mismatch on a partial factorization tells you the remaining roots still owe their share of the total. Either way, the rational root theorem calculator and the Vieta sum together tell you whether your answer is finished or still incomplete.

Quick check: add your roots. For a cubic, the total must equal -b/a — 6, -3/2 and -2 in the three examples above.

FAQs

What does the rational root theorem say?

The rational root theorem states that any rational root p/q, written in lowest terms, must have p dividing the constant term and q dividing the leading coefficient. So the constant term limits the possible numerators, and the leading coefficient limits the possible denominators. This gives a finite list of candidate roots to test.

What are the rational roots of x^3 - 6x^2 + 11x - 6?

The rational roots are 1, 2 and 3. The theorem produces candidates of plus or minus 1, 2, 3 and 6, since those divide the constant term 6 while the leading coefficient is 1. Testing those candidates confirms that 1, 2 and 3 satisfy the polynomial, and no other candidate does.

Can a rational root be a fraction?

Yes. A rational root can be a fraction, because q may divide the leading coefficient. For example, 2x^3 + 3x^2 - 8x + 3 has the root 1/2: the denominator 2 divides the leading coefficient 2, so a fractional candidate is allowed and does indeed work here.

How many candidates does the theorem give?

It depends on the factor counts of the constant term and the leading coefficient. Each cubic here gives 8 signed candidates, counting both the positive and negative versions of each possible fraction. A different polynomial with more or fewer factors would produce a different number of candidates to test.

What if none of the candidates works?

Then the polynomial has no rational roots. Its real roots are irrational, so no candidate from the theorem will satisfy it. In that case other methods are needed, such as numerical approximation or the cubic formula, to find the actual roots.

How can I check the roots I found?

Use Vieta's formulas. For a cubic, all roots add to -b/a. The companion polynomial 2x^3 + 3x^2 - 8x + 3 has roots -3, 1/2 and 1, which sum to -3/2 as required. That sum matches -b/a, so the roots are consistent with the coefficients.

Sources

Related calculators

Descartes Rule of Signs Calculator
Descartes' rule of signs for a cubic: the possible numbers of positive and negative real roots from the coefficient sign changes, and the minimum number of nonreal roots that remain.
Synthetic Division Calculator
Divide a quartic polynomial by (x - r) the fast way — the full bring-down, multiply, add tableau plus quotient and remainder.
Discriminant Calculator
b squared minus 4ac for any quadratic — and what its sign tells you about the roots before you solve anything.