Roots of a Polynomial Calculator
Automatically find every rational root of a polynomial — no manual candidate testing required.
What This Calculator Automates
Finding roots by hand usually means three separate tools working together: the Rational Root Theorem to generate a list of candidates, the Factor Theorem to test each one, and synthetic division to divide out each confirmed root and shrink the polynomial before searching again.
This calculator runs that whole loop for you — generate candidates, test, divide, repeat — until it either factors the polynomial completely or is left with a piece that has no more rational roots.
The search loop
Two Worked Examples
Example 1 — a fully factorable cubic
Step 1. Constant term is −6, leading coefficient is 1. Candidates: ±1, ±2, ±3, ±6.
Step 2. Testing finds P(1) = 0, so x = 1 is a root. Dividing it out leaves x² − 5x + 6.
Step 3. That quadratic factors directly (or keep testing candidates): roots x = 2 and x = 3.
Final answer: x = 1, 2, 3 — all three roots are rational, and the polynomial factors completely as (x − 1)(x − 2)(x − 3).
Example 2 — a leftover that won’t factor further
Step 1. Candidates from ±1 (the only divisor of both 1 and −1): x = 1 and x = −1.
Step 2. Both check out: P(1) = 0 and P(−1) = 0. Dividing both out leaves x² + 1.
Step 3. Testing ±1 again on x² + 1 fails — there’s no rational root here because x² + 1 = 0 only has the complex solutions x = ±i.
Final answer: x = 1, −1, with x² + 1 left over as an irreducible remainder over the rational numbers.
Common Mistakes
- Assuming every polynomial has all-rational roots. Many don’t — a leftover quadratic or higher-degree piece with no rational root is a completely normal, correct outcome.
- Forgetting repeated roots. A root can show up more than once (like x = 2 appearing twice in x³ − 3x² + 4) — after dividing it out the first time, test the same candidate again on what’s left.
- Stopping the candidate list too early. Every divisor of the constant term over every divisor of the leading coefficient needs to be checked, including the negative versions of each.
- Missing fractional candidates. If the leading coefficient isn’t 1, roots like 1/2 or 3/4 become possible and are easy to overlook if you only test whole numbers.
