Factoring & Polynomial Calculator
Factor, find roots, and expand โ step-by-step for any polynomial
Enter coefficients for axยฒ + bx + c
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.