Account

What new tool do you want?

Math & Education

Polynomial Factoring Calculator

Factor polynomials with integer coefficients — common factors, rational roots, difference of squares and irreducible quadratics — and list all the roots.

How to use

  1. 1Type a polynomial in x with whole-number coefficients, e.g. 2x^3 - 3x^2 - 11x + 6.
  2. 2Read the factored form and the roots.

How it's calculated

The greatest common factor is taken out first. Rational roots p/q are found with the Rational Root Theorem (p divides the constant, q divides the leading coefficient) and divided out; a leftover quadratic is solved with the quadratic formula.

Frequently asked questions

Why is part of my answer left unfactored?

Factors with no rational roots — like x² + 4 or x² − 2 — can't be split over the integers. Their real or complex roots are still listed.

Can it factor expressions with two variables?

Not yet — it works with polynomials in x only.

What degree can it handle?

Any degree for rational roots; up to degree 2 for the leftover irrational or complex roots.

A worked example of the rational root theorem

For 2x³ − 3x² − 11x + 6, the rational root theorem says any rational root p/q must have p dividing the constant (6) and q dividing the leading coefficient (2) — candidates like ±1, ±2, ±3, ±6, ±1/2, ±3/2. Testing them finds roots at x = −2, x = 3 and x = 1/2, and dividing those factors out (via synthetic division) leaves nothing but a constant, giving the full factorization (x + 2)(x − 3)(2x − 1) — exactly what the calculator returns, with the leading 2 absorbed into the (2x − 1) factor.

Why some factors are left as irreducible

x⁴ − 16 factors into (x − 2)(x + 2)(x² + 4) using difference of squares twice conceptually, though this tool finds it via the rational roots 2 and −2 and is left with the quadratic x² + 4. Since that quadratic's discriminant (0 − 16 = −16) is negative, it has no real roots, only the complex pair 2i and −2i — so the factorization stops at x² + 4 over the integers, and the complex roots are reported separately rather than forcing a further (impossible) integer factorization.

The greatest common factor comes out first

6x² + 12x + 6 has every coefficient divisible by 6, so the GCF is pulled out before any root-finding happens, leaving x² + 2x + 1 = (x + 1)² inside — reported as 6(x + 1)² with the repeated root x = −1 shown as a double root rather than listed twice independently.

Decimals are refused, and a leftover high-degree factor is labeled instead of forced

Coefficients have to be whole numbers, and each one has to stay under a trillion in size. A decimal coefficient stops me and tells me to multiply through by a common denominator first. A constant on its own is refused because the degree has to be at least one. Trailing zeros are dropped, so a polynomial that is really a lower degree is factored as that lower degree. If the leading coefficient is negative, a minus sign is pulled out front so the piece inside stays positive. When rational roots run out and what remains is worse than a quadratic, the roots line says the remaining roots of that factor are not rational, instead of inventing a factorization.

Related tools

More: Math & Education