๐Ÿ”ข Factoring & Polynomial Calculator

Last updated: March 30, 2026

Factoring & Polynomial Calculator

Factor, find roots, and expand โ€” step-by-step for any polynomial

Supports: x^2+5x+6  |  2x^2-3x-2  |  x^3-x  |  x^4-5x^2+4

Enter coefficients for axยฒ + bx + c

Format: (ax+b)(cx+d) โ€” supports 2 or 3 linear factors with optional scalar

How to Factor Polynomials Without Losing Your Mind

Factoring polynomials is one of those algebra skills that looks simple on paper but trips up students at every level โ€” from middle schoolers staring at a quadratic to college students grinding through cubic equations. The good news: there are clear, repeatable patterns that turn guesswork into a methodical process. Once you see them, factoring stops feeling like a magic trick and starts feeling like arithmetic.

Start With the Greatest Common Factor โ€” Every Time

Before you do anything else with a polynomial, look for a greatest common factor (GCF) that divides every term. This is the single most skipped step that causes the most downstream pain. Take 6xยฒ + 12x + 18: every coefficient is divisible by 6, so you immediately pull it out to get 6(xยฒ + 2x + 3). The trinomial inside is much simpler to work with. Skipping this step means you're fighting harder than you need to โ€” and it's the first thing teachers check when grading your work.

The GCF can also involve a variable. In 4xยณ + 8xยฒ - 2x, the GCF is 2x, leaving 2x(2xยฒ + 4x - 1). Always scan for variable GCFs before moving on.

The Discriminant Tells You What Kind of Factoring Is Even Possible

For a quadratic axยฒ + bx + c, the discriminant is bยฒ - 4ac. This single number is your roadmap before you spend any time on trial and error:

  • Positive perfect square (like 1, 4, 9, 25): factors cleanly over integers โ€” the fun case
  • Positive but not a perfect square (like 5, 7, 13): factors with irrational roots โ€” you need the quadratic formula
  • Zero: perfect square trinomial, one repeated root
  • Negative: no real factors at all โ€” complex roots only

Calculating the discriminant first saves you from spending ten minutes on AC method trial combinations for a polynomial that simply cannot be factored over the integers.

The AC Method: When Integer Factoring Works

For axยฒ + bx + c where the discriminant is a perfect square, the AC method is your best friend. Multiply a ร— c, then find two integers that multiply to that product and add to b. For 2xยฒ - 3x - 2: multiply 2 ร— (-2) = -4, and find two numbers that multiply to -4 and add to -3. Those are -4 and +1. Rewrite the middle term: 2xยฒ - 4x + x - 2, then factor by grouping: 2x(x - 2) + 1(x - 2) = (2x + 1)(x - 2).

This works for any leading coefficient and is more systematic than guessing factor pairs. The grouping step is where most students make sign errors, so write it out carefully and verify by re-multiplying.

Special Product Patterns to Recognize Instantly

Three patterns are worth committing to memory because they appear constantly in exams and algebraic manipulation:

Difference of squares: aยฒ - bยฒ = (a - b)(a + b). The moment you see two perfect squares with a minus sign and no middle term, this applies. xยฒ - 25 = (x - 5)(x + 5). Also works with coefficient squares: 9xยฒ - 4 = (3x - 2)(3x + 2).

Perfect square trinomial: aยฒ + 2ab + bยฒ = (a + b)ยฒ and aยฒ - 2ab + bยฒ = (a - b)ยฒ. Check if the first and last terms are perfect squares and the middle term equals twice the product of their square roots. xยฒ + 6x + 9 = (x + 3)ยฒ.

Sum/difference of cubes: aยณ + bยณ = (a + b)(aยฒ - ab + bยฒ) and aยณ - bยณ = (a - b)(aยฒ + ab + bยฒ). Messier to apply but essential for expressions like xยณ - 8 = (x - 2)(xยฒ + 2x + 4).

Higher-Degree Polynomials: The Rational Root Theorem

Once you move past quadratics, the Rational Root Theorem becomes your primary tool. For a polynomial with integer coefficients, every rational root has the form p/q, where p is a factor of the constant term and q is a factor of the leading coefficient. For xยณ - 6xยฒ + 11x - 6, the constant is -6 and the leading coefficient is 1. Possible rational roots are ยฑ1, ยฑ2, ยฑ3, ยฑ6.

Test by substitution: plugging in x = 1 gives 1 - 6 + 11 - 6 = 0. It's a root. Use synthetic division to divide out (x - 1), leaving xยฒ - 5x + 6 = (x - 2)(x - 3). Full factorization: (x - 1)(x - 2)(x - 3).

Synthetic division is the mechanical workhorse here. Arrange coefficients in descending order, bring down the first, multiply by the root, add, repeat. It's faster and less error-prone than polynomial long division for finding factors one at a time.

Verify Your Answer by Expanding Back

The most reliable way to check a factoring result is to multiply the factors back together. If you claim 2xยฒ - 3x - 2 = (2x + 1)(x - 2), multiply using FOIL: 2xยทx + 2xยท(-2) + 1ยทx + 1ยท(-2) = 2xยฒ - 4x + x - 2 = 2xยฒ - 3x - 2. Matches. Many students skip this step during practice and then have no instinct for catching errors on exams. Make it automatic.

You can also verify by checking that your roots actually satisfy the original equation. If x = 2 is a root of 2xยฒ - 3x - 2, plug it in: 2(4) - 3(2) - 2 = 8 - 6 - 2 = 0. Confirmed.

Common Mistakes That Cost Marks

Sign errors in the constant term of linear factors are the single biggest source of wrong answers. If a root is x = -3, the factor is (x + 3), not (x - 3). The factor is always (x - root), so a negative root produces a positive constant in the factor.

Forgetting to apply the leading coefficient properly when using fractional roots is another classic trap. The root x = -1/2 does not give factor (x + 1/2) โ€” it gives (2x + 1). You scale by the denominator to keep integer coefficients, which absorbs into the overall leading coefficient.

Finally: factoring out -1 when your leading coefficient is negative. Many students stall on -xยฒ + 4x - 3 because it starts with a negative. Pull out -1 first: -(xยฒ - 4x + 3) = -(x - 1)(x - 3). Clean and correct.

With these patterns firmly in hand โ€” GCF first, discriminant check, special forms, rational root theorem, and always verify by expanding โ€” polynomial factoring becomes a straightforward procedure rather than an exercise in anxiety.

FAQ

What is the difference between roots and factors of a polynomial?
The roots (or zeros) of a polynomial are the x-values that make it equal to zero. The factors are the expressions you multiply together to build the polynomial. They are directly linked: if x = r is a root, then (x โˆ’ r) is a factor. For example, xยฒ + 5x + 6 has roots x = โˆ’2 and x = โˆ’3, and factors (x + 2) and (x + 3).
How do I know if a polynomial cannot be factored?
Compute the discriminant (bยฒ โˆ’ 4ac) for a quadratic. If it is negative, the polynomial has no real roots and cannot be factored over real numbers. For higher-degree polynomials, if the Rational Root Theorem finds no rational roots and no special patterns apply, the polynomial (or the remaining quotient) is irreducible over the rationals. It can still have irrational or complex roots โ€” it just won't factor into expressions with integer or rational coefficients.
What does the Rational Root Theorem actually tell me?
It says that any rational root of a polynomial with integer coefficients must be of the form p/q, where p is an integer factor of the constant term and q is an integer factor of the leading coefficient. This gives you a finite list of candidates to test. It does not guarantee a rational root exists โ€” it only limits where you should look. If none of the candidates work when substituted into the polynomial, there are no rational roots.
How do I factor a polynomial with a leading coefficient other than 1?
Use the AC method for quadratics: multiply a ร— c, find two numbers that multiply to that product and sum to b, split the middle term, then factor by grouping. Alternatively, find all roots using the quadratic formula or rational root theorem, then convert each root r to a factor. A rational root p/q (in lowest terms) produces the integer factor (qx โˆ’ p), not (x โˆ’ p/q). The product of all factors' leading coefficients must equal the original leading coefficient.
Why does synthetic division work for finding polynomial factors?
Synthetic division is a streamlined version of polynomial long division, optimized for dividing by a linear factor (x โˆ’ r). It works because of the Remainder Theorem: when you divide a polynomial P(x) by (x โˆ’ r), the remainder equals P(r). If P(r) = 0, the remainder is 0 and (x โˆ’ r) divides exactly, confirming it is a factor. The quotient coefficients that synthetic division produces are the coefficients of the reduced polynomial after that factor is removed.
Can I factor a polynomial over complex numbers even when it has no real roots?
Yes. The Fundamental Theorem of Algebra guarantees that every polynomial of degree n (with complex coefficients) has exactly n roots in the complex numbers, counted with multiplicity. A quadratic like xยฒ + 1 is irreducible over the reals but factors as (x + i)(x โˆ’ i) over the complex numbers. In most school and exam contexts, factoring over the reals is the standard requirement unless the problem specifically asks for factoring over โ„‚.