Skip to content
The Calculatorz
Algebra

Rational Root Theorem Calculator

List every possible rational root ±p/q of a polynomial with whole-number coefficients, test each exactly, and factor out the real roots found.

Polynomial

Values

What is the rational root theorem?

The rational root theorem narrows down the possible fractional roots of a polynomial with whole-number coefficients. Instead of guessing, you list the factors of the constant term (p) and of the leading coefficient (q); every rational root must be one of the fractions ±p/q. Testing these candidates finds all rational roots.

How to use this calculator

Type the coefficients from the highest power down, separated by commas or spaces, including 0 for any missing power. For example 2x³ − 3x² − 11x + 6 is 2, -3, -11, 6. Coefficients must be whole numbers.

Formula

If a polynomial with integer coefficients has a rational root p/q in lowest terms, then p divides the constant term and q divides the leading coefficient. Each candidate ±p/q is tested exactly: qⁿ·P(p/q) = Σ aᵢ pⁱ qⁿ⁻ⁱ must equal 0. Each root found is divided out as the factor (qx − p), repeating for multiple roots.

Terms in the formula

p
A factor of the constant term.
q
A factor of the leading coefficient.
±p/q
The list of possible rational roots.

Understanding your result

Each root r found gives a factor (x − r), or (qx − p) for a fraction. If the leftover factor has degree 2, the quadratic formula finds the remaining roots; if no candidate works, the polynomial has no rational roots, although it may still have irrational or complex ones.

Calculator credits

Calculator developmentJulia Edwards

Editorial supervision

Expert reviewIfrahMSc Mathematics

Published byThe Calculatorz

Last updated

Read how we research, test, review and correct our calculators in our editorial policy.

Frequently asked questions

What does the rational root theorem say?

Any rational root of a polynomial with integer coefficients, written as p/q in lowest terms, must have p dividing the constant term and q dividing the leading coefficient.

Does it find every root?

No. It finds only rational roots. Irrational roots such as √2 and complex roots remain in the leftover factor, which you can solve with the quadratic formula or numerically.

Why test candidates exactly?

Decimal arithmetic can make a near-miss look like a root. This calculator tests with exact whole-number arithmetic, so a root is reported only if the remainder is exactly zero.

What if the constant term is zero?

Then x = 0 is a root. The calculator factors out the power of x first and applies the theorem to what remains.

What if there are decimal or fraction coefficients?

Multiply every coefficient by a common number to make them all whole numbers first. The roots do not change.

How is this related to synthetic division?

Synthetic division is the quick way to test one candidate and divide it out. This calculator does the same for every candidate automatically.

References & methodology sources

These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.

  1. Weisstein, E. W. (n.d.). Rational zero theorem. MathWorld—A Wolfram Web Resource. View source
  2. Abramson, J. (2021). Zeros of polynomial functions. In College algebra 2e (Section 5.5). OpenStax. View source
  3. Abramson, J. (2021). Zeros of polynomial functions. In Algebra and trigonometry 2e (Section 5.5). OpenStax. View source
  4. Weisstein, E. W. (n.d.). Synthetic division. MathWorld—A Wolfram Web Resource. View source