Polynomial Factoring Calculator

Factor any polynomial up to degree six exactly — over the rationals, over the reals and over the complex numbers, kept apart, because they are three different answers to what sounds like one question. "Factor this" is incomplete until you say over what. x² + 1 will not factor over the rationals and...

Exact, and it says over what. Factoring is writing a polynomial as a product of pieces that cannot be broken down further — but “further” depends on which numbers you allow. This works over the rationals in whole-number arithmetic from start to finish, so a factor is proved rather than approximated, and “irreducible” means the search finished and found nothing rather than that nothing turned up.

THE POLYNOMIAL

DEGREE
++x+= 0

2 FACTORS

(3x − 2)(x² + 1)

Multiplied back out, these give 3x³ − 2x² + 3x − 2 — the original, exactly. Checked on every keystroke.

“Factor this” has two different answers here, depending on which numbers you allow. Over the rationals it breaks into 2 pieces; over the reals, 2; over the complex numbers it goes all the way to 3 linear factors, as the fundamental theorem of algebra says it must. School questions almost always mean the first of those, and almost never say so.

FactorDegreeTimesIts roots
3x − 2112/3
x² + 121±i (not real)

Why the search can end. A rational root written in lowest terms must have its numerator dividing the constant term and its denominator dividing the leading coefficient, which turns an infinite question into 8 candidates — the grid beside this. Quadratic and cubic factors are pinned down the same way: any integer factor g must have g(1) dividing this polynomial at 1 and g(−1) dividing it at −1, and those two values plus the leading coefficient fix the rest of g outright. So every possibility can be listed and tried, and when none divides in, that is the end of the matter.

THE FACTORISATION

EVERY POSSIBLE RATIONAL ROOT, AND THERE ARE ONLY 8 OF THEMnumerator divides the constant term · denominator divides the leading coefficient±1±2÷1÷31 of the 8 candidates is a root; the rest are ruled out for good

This grid is the whole reason factoring can be exact. Root-finding approximates because the answers are usually irrational. Factoring over the rationals asks a smaller question with a finite answer, so it can be settled rather than estimated.

HOW FAR IT BREAKS, IN THREE NUMBER SYSTEMS1 linear · 1 quadratic1 linear · 1 quadratic3 linearevery row totals degree 3 — factoring redistributes degree, it never changes it
WHERE THE FACTORS SHOW UP ON THE GRAPHeach of these is a simple crossing — a factor of multiplicity onefactors with no real root leave nothing to see here, which is why the graph cannot tell you everything

Live calculation · updates as you type

Created with❤️byeaglecalculator.com

HOW TO USE

  1. 1

    Pick the degree, then type the coefficients from the highest power down. A blank box is a zero — a missing term rather than a missing entry — and you can enter whole numbers, decimals or fractions written as 3/4. Denominators are cleared exactly and the scale reappears in front of the answer.

  2. 2

    Read the factorisation, then read the line underneath it. That line multiplies the factors back out and compares them with what you typed, so the answer checks itself in front of you rather than asking to be trusted.

  3. 3

    Check the ladder before you call anything irreducible. It shows how far the same polynomial breaks over the rationals, the reals and the complex numbers, and "does not factor" almost always means only the first of those three.

  4. 4

    Use the exponent on a factor as an exact multiplicity. It comes from dividing that factor in repeatedly until it stops going, with no tolerance in the decision, which is why it is trustworthy where a numerical root-finder’s clustered roots are not.

REFERENCE FORMULAS

IdentityFormulaWhen it earns its keep
Difference of squaresa² − b² = (a − b)(a + b)The one worth spotting first. There is no sum-of-squares equivalent over the reals.
Difference of cubesa³ − b³ = (a − b)(a² + ab + b²)The quadratic factor is irreducible whenever a and b are rational and distinct.
Sum of cubesa³ + b³ = (a + b)(a² − ab + b²)Same shape, both signs flipped. Sums of cubes do factor; sums of squares do not.
Perfect square trinomiala² ± 2ab + b² = (a ± b)²A repeated factor, which is why the middle term is exactly twice the product.
Sophie Germain identitya⁴ + 4b⁴ = (a² − 2ab + 2b²)(a² + 2ab + 2b²)Why x⁴ + 4 factors despite having no real roots at all. Almost nobody spots this one.
Factor theorem(x − r) divides p(x) exactly when p(r) = 0The bridge between roots and factors, and the reason a root search finds linear factors.
Rational root theorema root p/q in lowest terms has p | a₀ and q | aₙTurns an infinite search into a finite list. This is what makes the answer exact.
Factor value testif g divides f then g(1) | f(1) and g(−1) | f(−1)Extends the same idea to quadratic and cubic factors, which have no root to find.

FREQUENTLY ASKED QUESTIONS

RELATED CALCULATORS

MORE ALGEBRA CALCULATORS

Was this calculator helpful?

Last updated: August 3, 2026 · Exact integer arithmetic over the rationals · real-root counts by Sturm’s theorem · rational roots proved, not approximated