On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Algebra Fundamentals · Grade 9-12

Factoring by Grouping

Factoring by grouping handles polynomials with four (or more) terms by splitting them into pairs, factoring the GCF from each, then factoring out the shared binomial.

ac+ad+bc+bd=a(c+d)+b(c+d)=(a+b)(c+d)

Quick Answer

Factoring by grouping handles polynomials with four (or more) terms by splitting them into pairs, factoring the GCF from each, then factoring out the shared binomial. Use it when a polynomial has four terms and no single factor runs through all of them, such as x3−x2+4x−4, and as the last step of the AC method for trinomials with a≠1. It works when both pairs leave the same binomial: x2(x−1)+4(x−1)=(x2+4)(x−1). If they do not, try another pairing or check the signs.

Why This Matters

Grouping factors many cubics and four-term expressions without a formula, so you can solve x3+2x2−9x−18=0 by hand: x2(x+2)−9(x+2)=(x+2)(x−3)(x+3), giving x=−2,3,−3. It also finishes the AC method, so every factorable trinomial with a≠1 comes down to it. A sign slip in the second pair hides the shared binomial and makes a factorable polynomial look unfactorable.

Intuitive Explanation

Four terms often share nothing as a whole: 2x3+6x2+5x+15 has no factor common to all four. Split it into two pairs, though, and each pair has its own GCF: 2x3+6x2=2x2(x+3) and 5x+15=5(x+3). Both pairs left behind the same bracket, (x+3).

Now treat that bracket as a single block. 2x2 blocks plus 5 blocks make (2x2+5) blocks, so 2x2(x+3)+5(x+3)=(2x2+5)(x+3). It is the same move as 5y+3y=(5+3)y, with (x+3) playing the part of y.

Grouping also finishes trinomials with a≠1. For 6x2+7x+2, the AC method finds 3 and 4 (product 6⋅2=12, sum 7), so split the middle term: 6x2+3x+4x+2. Group: 3x(2x+1)+2(2x+1)=(3x+2)(2x+1). The trinomial became a four-term polynomial on purpose.

Grouping is not guaranteed to work. x3+x2+x+2 gives x2(x+1)+1(x+2), and the brackets differ; other pairings fail too, because this polynomial has no factorization with integer coefficients. When every pairing leaves different brackets, the expression may simply not factor this way.

Think of it like this. Grouping is like sorting a pile of letters into two stacks and finding that both stacks are addressed to the same street: you write the street once and list the house numbers beside it. That street is the shared binomial. If the stacks show different streets, sort the pile another way; sometimes the letters have no common street at all.

Core idea. Group four terms into two pairs so a common binomial pops out and can be factored once more.


When to Use

Try grouping when a polynomial has four terms, no GCF runs through all of them, and the terms pair up naturally, often a cubic whose coefficients come in matching ratios, like 1:2 and 3:6 in x3+2x2+3x+6. Also use it after splitting the middle term in the AC method. If the pairs leave different binomials, regroup or factor a negative out of the second pair. For three terms, factor the trinomial; for two, check for a difference of squares.

Tip. Ask: After factoring the GCF from each pair, do both pairs leave behind the identical binomial?

How to Recognize It

Before grouping, count the terms, check for a factor shared by all of them, and compare the coefficients of neighboring terms.

  1. Does the polynomial have four terms with no factor common to all four?

    Yes is the usual setting for grouping. If one factor runs through all four terms, take it out first; if only three terms remain, use trinomial factoring, perhaps with grouping as its last step.

  2. Do the first two coefficients have the same ratio as the last two, as in 2x3+6x2+5x+15?

    Here 2:6 matches 5:15, so both pairs leave the same bracket: 2x2(x+3)+5(x+3)=(2x2+5)(x+3). If the ratios differ, try swapping the middle two terms.

  3. Does the third term start with a minus sign?

    Then take a negative out of the second pair: x3+2x2−4x−8=x2(x+2)−4(x+2). Leaving it as +(−4x−8) hides the matching bracket.

  4. Can a factor left at the end be factored again?

    Check each one: x3+2x2−4x−8 ends as (x2−4)(x+2), and the difference of squares turns that into (x−2)(x+2)2. A sum such as x2+4 stays as it is.

Factoring by Grouping compared with Factoring GCF, Factoring trinomials, and Factoring difference of squares

All four rows are factoring methods, and grouping uses the common-factor step twice and drives the AC method for trinomials, so they overlap in practice. Ask how many terms you have and whether one factor runs through all of them.

Factoring by Grouping

Meaning
Use this when a polynomial has four or more terms and pairing them produces a common binomial factor.
Key test
After factoring the GCF from each pair, do both pairs leave behind the identical binomial?
Formula
ac+ad+bc+bd=a(c+d)+b(c+d)=(a+b)(c+d)
Example
Factor x3+2x2+3x+6.

Factoring GCF

Meaning
Pulls one common factor out of every term at once.
Key test
Use first, on any polynomial, before grouping — grouping assumes the whole thing has no single GCF.
Formula
ab+ac=a(b+c)
Example
6x+9=3(2x+3)

Factoring trinomials

Meaning
Factors a three-term quadratic directly.
Key test
Use when there are exactly three terms; grouping is the engine behind the AC version of this.
Formula
(x+p)(x+q)
Example
x2+5x+6=(x+2)(x+3)

Factoring difference of squares

Meaning
Two-term square-minus-square pattern.
Key test
Use when there are two perfect-square terms with a minus, not four terms.
Formula
a2−b2=(a+b)(a−b)
Example
x2−25=(x+5)(x−5)

Formula & Notation

ac+ad+bc+bd=a(c+d)+b(c+d)=(a+b)(c+d)
For a four-term polynomial ac+ad+bc+bd, regroup as (ac+ad)+(bc+bd)=a(c+d)+b(c+d)=(a+b)(c+d). This uses the distributive property twice to extract a common binomial factor.

How to read it: Group terms in pairs using parentheses, factor each pair, then factor out the common binomial. A brace or vertical bar may indicate groupings.

Worked Examples

Example 1 — Group four terms

Easy

Factor x3+2x2+3x+6.
Show the steps and the answer
  1. Check for a GCF of all four terms: there is none, since x3 and 6 share no factor.

    Grouping is the tool for when no single factor runs through every term.

  2. Group in order and factor each pair: x3+2x2=x2(x+2) and 3x+6=3(x+2).

    Each pair has its own GCF, x2 and 3, and taking them out exposes the brackets.

  3. Factor out the shared binomial: x2(x+2)+3(x+2)=(x+2)(x2+3).

    Both pairs contain (x+2), so it comes out like any common factor, leaving x2+3.

  4. Check: (x+2)(x2+3)=x3+3x+2x2+6.

    Rearranged, that is the original polynomial, so the factoring is right.

Answer: (x+2)(x2+3)

Takeaway: Factor each pair, confirm the brackets match, then factor the bracket out.

Example 2 — Pairing out of written order

Standard

Factor x3+3x2+2x+6 but you first pair as (x3+2x) and (3x2+6).
Show the steps and the answer
  1. Notice that this pairing skips the written order: it takes terms 1 and 3, then terms 2 and 4.

    Any pairing is allowed, because terms can be added in any order.

  2. Factor each pair: x3+2x=x(x2+2) and 3x2+6=3(x2+2).

    This pairing leaves the bracket (x2+2) in both, so it works.

  3. Factor out the bracket: x(x2+2)+3(x2+2)=(x2+2)(x+3).

    The leftover GCFs, x and 3, become the second factor.

  4. Compare with the written-order pairing: x2(x+3)+2(x+3)=(x2+2)(x+3).

    Both pairings give the same factorization; the shared bracket is (x2+2) one way and (x+3) the other.

Answer: (x2+2)(x+3)

Takeaway: Any pairing that leaves one identical bracket in both pairs works, and if one pairing fails, another order may succeed.

Example 3 — Find the mistake: a bracket with the wrong sign

Application

Ben factors 2x3−6x2−x+3 and writes: "2x2(x−3)+1(−x+3). The brackets don't match, so it doesn't factor." Find the mistake and correct it.
Show the steps and the answer
  1. Look at Ben's second pair: he wrote −x+3 as 1(−x+3).

    The bracket (−x+3) is the negative of (x−3), so the pairs only look unmatched.

  2. Factor out −1 instead: −x+3=−1(x−3).

    Pulling out a negative flips every sign inside, turning −x+3 into x−3.

  3. Factor out the shared bracket: 2x2(x−3)−1(x−3)=(2x2−1)(x−3).

    Both pairs now contain (x−3), so the polynomial does factor.

  4. Check: (2x2−1)(x−3)=2x3−6x2−x+3.

    The expansion matches the original, so Ben's conclusion was wrong.

Answer: (2x2−1)(x−3)

Takeaway: If the two brackets are negatives of each other, factor a negative out of the second pair before giving up.

Where You'll See It

  • Adding up the beds in a garden plan

    A plan lists four rectangular beds: 17 m by 23 m, 17 m by 7 m, 3 m by 23 m and 3 m by 7 m. Grouping, 17(23+7)+3(23+7)=(17+3)(23+7)=20×30=600 m², gives the total in one product and shows the beds tile a single 20 m by 30 m yard.

  • Speeding up a spreadsheet formula

    A formula like =AC+AD+BC+BD does four multiplications. Grouped as =(A+B)*(C+D), it does one multiplication and two additions and gives the same result. Copied down tens of thousands of rows, the factored version is shorter to read and cheaper to compute.

Common Mistakes

  1. The slip: Sign error pulling the GCF from the second pair

    Instead: when the pair is −3x−6, factor out −3 to get −3(x+2) so the binomial matches the first pair.

  2. The slip: Giving up when pairs do not match

    Instead: reorder the four terms (group differently) before deciding it is unfactorable.

  3. The slip: Forgetting the final factor-out step

    Instead: after a(c+d)+b(c+d) you must write (a+b)(c+d), not leave it half-done.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Factor x3+4x2+2x+8 by grouping.

    Hint: Group the first two terms and the last two terms.

  2. Factor xy+3x+2y+6 by grouping.

    Hint: Take x out of the first pair and 2 out of the second.

  3. Factor x3−5x2−3x+15 by grouping.

    Hint: Pull a negative number out of the second pair so the brackets match.

  4. Factor 6x2+9x+4x+6 by grouping.

    Hint: Find the GCF of 6x2 and 9x, then of 4x and 6.

  5. A classmate wants to factor 4x2+8x by grouping. Is grouping the right tool, or something simpler?

    Hint: How many terms are there?

  6. A student writes x3+2x2−4x−8=x2(x+2)−4(x−2) and says it cannot be factored further. Find the mistake.

    Hint: Expand −4(x−2) and compare it with −4x−8.

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Does grouping work on every four-term polynomial?

No. x3+x2+x+2x^3 + x^2 + x + 2 gives x2(x+1)+(x+2)x^2(x+1) + (x+2), and the other two pairings fail as well. In fact it has no factor with rational coefficients at all, since none of ±1\pm 1 or ±2\pm 2 makes it zero. Grouping finds a factorization only when the coefficients line up. When every pairing fails, test a few simple values for a root, or accept that it does not factor nicely.

Can I group the terms three and one instead of two and two?

Sometimes that is the only way. In x2+2x+1−y2x^2 + 2x + 1 - y^2, the first three terms form the perfect square (x+1)2(x+1)^2, leaving (x+1)2−y2(x+1)^2 - y^2. That is a difference of squares, so it factors as (x+1+y)(x+1−y)(x + 1 + y)(x + 1 - y). No two-and-two pairing works here, so look for a perfect-square trinomial hiding among the terms.

Do different pairings give different answers?

Any pairing that works gives the same factors, perhaps in a different order or with signs moved around. A polynomial factors in essentially one way, much as 60 is always 2⋅2⋅3⋅52 \cdot 2 \cdot 3 \cdot 5. For ax+ay+bx+byax + ay + bx + by, the pairing (ax+ay)+(bx+by)(ax + ay) + (bx + by) gives a(x+y)+b(x+y)a(x + y) + b(x + y), and the pairing (ax+bx)+(ay+by)(ax + bx) + (ay + by) gives x(a+b)+y(a+b)x(a + b) + y(a + b); both end as (a+b)(x+y)(a + b)(x + y).

Learning Path

Factoring by Grouping

You are here

You need Factoring Out the GCF (taking the largest shared factor from terms) and Polynomial Addition and Subtraction (rearranging terms with their signs) first. Grouping adds a way to factor four-term polynomials by treating a shared binomial as one common factor. Next, Factoring Trinomials uses grouping to finish the AC method, and Polynomials uses it to factor and solve cubics.

See Also