Skip to main content
Mathovia

Algebra / Preliminaries

Factoring by Grouping

Factoring by grouping takes a polynomial with four terms — or a trinomial rewritten to have four — and splits it into two pairs, each with its own greatest common factor, that turn out to share a common binomial factor of their own. This lesson covers grouping a natural four-term polynomial and using the same idea, through the ac method, to factor a trinomial whose leading coefficient isn't 1.

Practice Problems
Written by
MPhil in Mathematics, Founder of Mathovia
Published

Mathematics verification: Mathematical formulas, calculations, worked examples and solutions are reviewed for accuracy before publication. How we check our work

A four-term polynomial usually can’t be factored with a single greatest-common-factor step, since no one factor typically divides all four terms. Factoring by grouping solves this by splitting the four terms into two pairs, factoring each pair’s own greatest common factor separately, and checking whether the two resulting binomials happen to match — which, when they do, means one more factoring step finishes the job.

Factoring by Grouping — key formula
Key formula

What Is Factoring by Grouping?

Split into two pairs, factor the GCF out of each pair, and compare what’s left inside the parentheses:

Both pairs left behind the identical binomial , which means it can now be factored out one more time, exactly the way a monomial GCF would be:

Grouping a Four-Term Polynomial

Step 1 — split into two pairs and factor the GCF out of each:

Step 2 — both pairs produced the same binomial, ; factor it out:

Rearranging Terms When the First Grouping Doesn’t Work

Occasionally the terms as written don’t group into matching binomials on the first attempt. Reordering the four terms — most commonly swapping the middle two — often reveals a pairing that does work.

Grouped in this order, and factor to and — a matching binomial appears only after rearranging the middle two terms into the order used in the previous section. Since addition can be reordered freely, this rearrangement never changes the polynomial’s value, only which terms sit next to each other.

Using Grouping to Factor a Trinomial: The AC Method

A trinomial with a leading coefficient other than can be factored by grouping too, once its middle term is deliberately split into two pieces.

  1. Multiply and .
  2. Find two numbers that multiply to and add to .
  3. Rewrite the middle term as the sum of those two numbers’ terms, turning the trinomial into an equivalent four-term polynomial.
  4. Factor the resulting four-term polynomial by grouping, exactly as above.

The two numbers that multiply to and add to are and . Split the middle term using those numbers, then group:

Worked Example A: Grouping in the Order Given

Factor by grouping.

Step 1 — factor the GCF out of each pair:

Step 2 — factor out the matching binomial:

Answer:

Worked Example A: group the four terms in the order given.
Worked Example A: group the four terms in the order given.

Worked Example B: Grouping After Rearranging

Factor by grouping, rearranging the terms first if needed.

Step 1 — the terms as given don’t group cleanly; rearrange to put the matching-degree terms together:

Step 2 — factor the GCF out of each pair:

Step 3 — factor out the matching binomial:

Answer:

Worked Example B: rearrange so a common binomial appears, then group.
Worked Example B: rearrange so a common binomial appears, then group.

Worked Example C: The AC Method on a Trinomial

Factor using the ac method.

Step 1 — compute :

Step 2 — find two numbers that multiply to and add to :

Step 3 — split the middle term and group:

Step 4 — factor out the matching binomial:

Answer:

Worked Example C: split the middle term, then group the four terms.
Worked Example C: split the middle term, then group the four terms.

Worked Example D: The AC Method with a Negative Middle Term

Factor using the ac method.

Step 1 — compute :

Step 2 — find two numbers that multiply to and add to :

Step 3 — split the middle term and group:

Step 4 — factor out the matching binomial:

Answer:

Worked Example D: a negative middle term splits into 6x − 10x.
Worked Example D: a negative middle term splits into 6x − 10x.

Common Mistakes to Avoid

  • Giving up after the first pairing fails. If the terms as written don’t group cleanly, rearranging them (usually swapping the middle two) is a normal part of the process, not a sign of a mistake.
  • Finding two numbers that add to but forgetting they must also multiply to . Both conditions are required simultaneously — a pair that only satisfies one of them doesn’t work.
  • Factoring out a GCF with the wrong sign from the second pair. If the second pair starts with a negative term, factoring out a negative GCF (matching Worked Example D’s pattern) is usually what makes the two binomials actually match.
  • Stopping after factoring each pair separately, without the final step. The matching binomial still needs to be factored out one more time — two partially-factored pairs are not the final answer.
  • Assuming every four-term polynomial groups successfully. Some polynomials genuinely don’t factor by grouping (or at all); after trying both reasonable pairings, it’s fine to conclude that grouping doesn’t apply.
  • Splitting the middle term with the wrong sign in the ac method. needs to split into two terms whose coefficients literally add to , including sign — double-check the addition, not just the product.

Where This Shows Up Later

  • Factoring Quadratics. The ac method introduced here is one of the two standard techniques for factoring a trinomial with a leading coefficient other than , covered in full there.
  • Factoring Higher-Degree Polynomials. Grouping extends naturally to polynomials with six terms (three pairs) or a four-term structure hiding inside a higher-degree expression.
  • Solving quadratic equations by factoring. Factoring into is exactly the step that turns a quadratic equation into two simple linear ones via the zero product property.
  • Simplifying Rational Expressions. A numerator or denominator that groups into a product is often the key to cancelling a rational expression down to lowest terms.

Practice Problems

Work each problem yourself before opening the answer.

Problem 1. Factor by grouping.

Show answer

Answer:

Problem 2. Factor by grouping.

Show answer

Answer:

Problem 3. Factor by grouping.

Show answer

Answer:

Problem 4. Factor by grouping.

Show answer

Answer:

Problem 5. Factor using the ac method’s two numbers where — actually, factor using the ac method.

Show answer

Step 1 — compute :

Step 2 — find two numbers multiplying to and adding to :

Step 3 — split and group:

Answer:

Problem 6. Factor using the ac method.

Show answer

Step 1 — compute :

Step 2 — find two numbers multiplying to and adding to :

Step 3 — split and group:

Answer:

Problem 7. Factor using the ac method.

Show answer

Step 1 — compute :

Step 2 — find two numbers multiplying to and adding to :

Step 3 — split and group:

Answer:

Problem 8. Factor by grouping, rearranging the terms first.

Show answer

Step 1 — rearrange so matching-degree terms sit together:

Step 2 — group and factor each pair:

Answer:

Problem 9. Factor using the ac method.

Show answer

Step 1 — compute :

Step 2 — find two numbers multiplying to and adding to :

Step 3 — split and group:

Answer:

Problem 10. Factor by grouping.

Show answer

Answer: . Notice is itself a difference of squares and factors further to , giving the fully factored form — grouping doesn’t always mean the work is completely finished after one pass.

Quick Reference

SituationMove
Four-term polynomialSplit into two pairs, factor the GCF from each, then factor out the matching binomial
First pairing doesn’t matchRearrange the terms (commonly swapping the middle two) and try again
Trinomial with leading coefficient Compute , find two numbers multiplying to and adding to , split the middle term, then group
Second pair starts negativeFactor out a negative GCF from that pair so the binomials match
After groupingCheck whether either resulting factor can be factored further (like a difference of squares)
Grouping doesn’t work at allSome polynomials are prime — try both reasonable pairings before concluding this

Factoring Quadratics puts this ac method next to the simpler leading-coefficient-of-1 case and the special product patterns, so it’s a natural place to head next. For the single-pair skill this is built from, see Greatest Common Factor; for grouping applied to bigger polynomials, see Factoring Higher-Degree Polynomials. The Factoring by Grouping Practice Problems has practice waiting, and the Algebra lessons list has more topics being added.

Frequently Asked Questions

What does it mean to factor a polynomial by grouping?+

Split the polynomial's terms into pairs, factor the greatest common factor out of each pair separately, and check whether the two resulting binomials match. If they do, that shared binomial can be factored out one more time, finishing the factorization.

What if grouping the terms in their given order doesn't produce a matching binomial?+

Rearranging the four terms into a different pairing — most often swapping the second and third terms — frequently reveals a matching binomial that the original order hid. Grouping is one of the few factoring techniques where the order terms are written in can genuinely matter.

How does grouping help factor a trinomial that only has three terms?+

The middle term is deliberately split into two terms whose coefficients multiply to and add to (the ac method), turning the three-term trinomial into an equivalent four-term polynomial that groups exactly like any other.

Why does the ac method use the product ac specifically?+

Multiplying out two general binomials shows that the coefficient of times the constant term always equals the product of the two -coefficients' cross terms, which is exactly what splitting the middle term by that same product reverses.

Does factoring by grouping always work on every four-term polynomial?+

No — grouping only succeeds when the polynomial is actually built from two matching binomial factors to begin with; some four-term polynomials simply don't factor by any method, in the same way some numbers are prime. Trying both possible pairings before concluding a polynomial doesn't group is worth the extra step.

Is factoring by grouping the same thing as factoring out the GCF?+

It's an extension of it — each pair gets its own GCF factored out first, using exactly the technique from Greatest Common Factor, and then the shared binomial that results is itself factored out as one final GCF step.

Related lessons