Algebra

Factoring Out the GCF

Last updated: March 2026 · Beginner
Before you start

You should be comfortable with:

Real-world applications
💰
Retail & Finance

Discounts, tax, tips, profit margins

📐
Carpentry

Measurements, material estimation, cutting calculations

Factoring is the reverse of multiplying. When you multiply 3(x+5)3(x + 5), you get 3x+153x + 15. Factoring starts with 3x+153x + 15 and works backward to find 3(x+5)3(x + 5). The first step in any factoring problem is always the same: pull out the greatest common factor (GCF).

The GCF of two or more terms is the largest expression — number, variable, or both — that divides evenly into every term. Mastering this skill is essential because it simplifies expressions, makes equations easier to solve, and is the foundation for every other factoring technique you will learn.

Finding the GCF of Monomials

Before you can factor the GCF out of a polynomial, you need to know how to find the GCF of individual terms.

Step 1 — Find the GCF of the numerical coefficients. List the factors of each coefficient and pick the largest one they share.

Step 2 — Find the GCF of the variables. For each variable that appears in every term, take the lowest exponent.

Step 3 — Multiply the results from Steps 1 and 2.

Example 1: Find the GCF of 12x312x^3 and 18x218x^2

Coefficients: The factors of 12 are 1, 2, 3, 4, 6, 12. The factors of 18 are 1, 2, 3, 6, 9, 18. The GCF of 12 and 18 is 6.

Variables: Both terms have xx. The lowest exponent is 2. So the variable part is x2x^2.

GCF=6x2\text{GCF} = 6x^2

Example 2: Find the GCF of 20a4b220a^4b^2, 30a2b530a^2b^5, and 10a3b10a^3b

Coefficients: GCF of 20, 30, and 10 is 10.

Variables: The lowest power of aa is a2a^2. The lowest power of bb is b1=bb^1 = b.

GCF=10a2b\text{GCF} = 10a^2b

Factoring the GCF from a Polynomial

Once you identify the GCF, divide each term by it and write the result in parentheses.

polynomial=GCF×(term1GCF+term2GCF+)\text{polynomial} = \text{GCF} \times \left(\frac{\text{term}_1}{\text{GCF}} + \frac{\text{term}_2}{\text{GCF}} + \cdots \right)

Example 3: Factor 6x2+9x6x^2 + 9x

Step 1 — Find the GCF: The GCF of 6 and 9 is 3. Both terms have at least x1x^1. So the GCF is 3x3x.

Step 2 — Divide each term by 3x3x:

6x23x=2x9x3x=3\frac{6x^2}{3x} = 2x \qquad \frac{9x}{3x} = 3

Step 3 — Write the factored form:

6x2+9x=3x(2x+3)6x^2 + 9x = 3x(2x + 3)

Check by distributing: 3x(2x+3)=6x2+9x3x(2x + 3) = 6x^2 + 9x . Correct.

Example 4: Factor 15x325x2+10x15x^3 - 25x^2 + 10x

Step 1 — Find the GCF: The GCF of 15, 25, and 10 is 5. The lowest power of xx is x1x^1. So the GCF is 5x5x.

Step 2 — Divide each term:

15x35x=3x225x25x=5x10x5x=2\frac{15x^3}{5x} = 3x^2 \qquad \frac{-25x^2}{5x} = -5x \qquad \frac{10x}{5x} = 2

Step 3 — Write the factored form:

15x325x2+10x=5x(3x25x+2)15x^3 - 25x^2 + 10x = 5x(3x^2 - 5x + 2)

Check: 5x(3x25x+2)=15x325x2+10x5x(3x^2 - 5x + 2) = 15x^3 - 25x^2 + 10x . Correct.

Example 5: Factor 8a3b2+12a2b34a2b28a^3b^2 + 12a^2b^3 - 4a^2b^2

Step 1 — Find the GCF: GCF of 8, 12, and 4 is 4. Lowest power of aa is a2a^2. Lowest power of bb is b2b^2. So the GCF is 4a2b24a^2b^2.

Step 2 — Divide each term:

8a3b24a2b2=2a12a2b34a2b2=3b4a2b24a2b2=1\frac{8a^3b^2}{4a^2b^2} = 2a \qquad \frac{12a^2b^3}{4a^2b^2} = 3b \qquad \frac{-4a^2b^2}{4a^2b^2} = -1

Step 3 — Write the factored form:

8a3b2+12a2b34a2b2=4a2b2(2a+3b1)8a^3b^2 + 12a^2b^3 - 4a^2b^2 = 4a^2b^2(2a + 3b - 1)

Notice that the last term became 1-1, not 0. When a term is exactly equal to the GCF, it leaves behind a 1 (or 1-1).

Factoring Out a Negative Leading Coefficient

When the leading term (the first term) has a negative coefficient, it is often helpful to factor out the negative sign along with the GCF. This is especially useful before applying other factoring techniques later.

Example 6: Factor 12x2+18x-12x^2 + 18x

Step 1 — The GCF of 12 and 18 is 6, and both terms have xx. Factor out 6x-6x (including the negative):

12x26x=2x18x6x=3\frac{-12x^2}{-6x} = 2x \qquad \frac{18x}{-6x} = -3

Step 2 — Write the factored form:

12x2+18x=6x(2x3)-12x^2 + 18x = -6x(2x - 3)

Check: 6x(2x3)=12x2+18x-6x(2x - 3) = -12x^2 + 18x . Correct.

Notice how factoring out the negative flipped the signs inside the parentheses. You could also factor out 6x6x to get 6x(2x+3)6x(-2x + 3), but the convention is to make the leading term inside the parentheses positive when possible.

When the GCF Is 1

Sometimes the terms share no common factor other than 1. In that case, you cannot factor out a GCF and should move on to other techniques (trinomial factoring, difference of squares, grouping). Recognizing when the GCF is 1 saves time.

Example 7: Consider x2+5x+6x^2 + 5x + 6

The coefficients are 1, 5, and 6 — their GCF is 1. There is no common variable factor (the constant 6 has no xx). The GCF is 1, so there is nothing to factor out. You would proceed with trinomial factoring instead.

Real-World Application: Retail — Simplifying a Revenue Formula

A small retail store sells t-shirts and calculates monthly revenue with the expression:

R=15n+15(0.08n)R = 15n + 15(0.08n)

where nn is the number of shirts sold and the second term accounts for an 8% sales tax collected. The store owner wants to simplify this formula.

Factor out 15n:

R=15n+1.2n=n(15+1.2)=16.2nR = 15n + 1.2n = n(15 + 1.2) = 16.2n

Wait — let us factor the original expression more carefully. Both terms share the factor 15n15n:

R=15n(1+0.08)=15n(1.08)R = 15n(1 + 0.08) = 15n(1.08)

So the total revenue per shirt (including tax) is $15 times 1.08, giving $16.20 per shirt. Factoring reveals the structure: base price times the tax multiplier. This is the same technique — pulling out the common factor to see what is really going on.

Real-World Application: Carpentry — Calculating Material for a Deck Frame

A carpenter needs lumber for a rectangular deck frame. The perimeter formula gives the total linear feet of lumber:

P=2L+2WP = 2L + 2W

Factor out the GCF of 2:

P=2(L+W)P = 2(L + W)

If the deck is L=16L = 16 feet by W=12W = 12 feet:

P=2(16+12)=2(28)=56 feetP = 2(16 + 12) = 2(28) = 56 \text{ feet}

The factored form 2(L+W)2(L + W) is faster to compute mentally and shows the structure: the perimeter is always twice the sum of length and width. When ordering lumber with a 10% waste allowance, the carpenter computes P×1.10=56×1.10=61.6P \times 1.10 = 56 \times 1.10 = 61.6 feet, rounding up to 62 linear feet.

Common Mistakes to Avoid

  1. Not factoring completely. If you factor 12x2+6x12x^2 + 6x as 2(6x2+3x)2(6x^2 + 3x), you have not finished — 6x2+3x6x^2 + 3x still has a common factor of 3x3x. The correct answer is 6x(2x+1)6x(2x + 1).
  2. Dropping a term. When the GCF equals one of the terms, the quotient is 1, not 0. For example, factoring 5x+55x + 5 gives 5(x+1)5(x + 1), not 5(x)5(x).
  3. Sign errors when factoring out a negative. Double-check every sign inside the parentheses by distributing back.
  4. Forgetting to check your answer. Always multiply the factored form back out to verify it matches the original polynomial.
  5. Overlooking variable factors. The GCF of 4x3+6x4x^3 + 6x is 2x2x, not just 2. Always check both coefficients and variables.

Practice Problems

Test your understanding with these problems. Click to reveal each answer.

Problem 1: Factor 10x+2510x + 25

The GCF of 10 and 25 is 5.

10x+25=5(2x+5)10x + 25 = 5(2x + 5)

Answer: 5(2x+5)5(2x + 5)

Problem 2: Factor 14x321x214x^3 - 21x^2

The GCF of 14 and 21 is 7. The lowest power of xx is x2x^2. So the GCF is 7x27x^2.

14x321x2=7x2(2x3)14x^3 - 21x^2 = 7x^2(2x - 3)

Answer: 7x2(2x3)7x^2(2x - 3)

Problem 3: Factor 24a2b+36ab212ab24a^2b + 36ab^2 - 12ab

The GCF of 24, 36, and 12 is 12. The lowest powers are a1a^1 and b1b^1. So the GCF is 12ab12ab.

24a2b+36ab212ab=12ab(2a+3b1)24a^2b + 36ab^2 - 12ab = 12ab(2a + 3b - 1)

Answer: 12ab(2a+3b1)12ab(2a + 3b - 1)

Problem 4: Factor 8x2+20x-8x^2 + 20x

The GCF of 8 and 20 is 4, and both terms have xx. Factor out 4x-4x:

8x24x=2x20x4x=5\frac{-8x^2}{-4x} = 2x \qquad \frac{20x}{-4x} = -5

8x2+20x=4x(2x5)-8x^2 + 20x = -4x(2x - 5)

Answer: 4x(2x5)-4x(2x - 5)

Problem 5: Factor 9x4+27x3+18x29x^4 + 27x^3 + 18x^2

The GCF of 9, 27, and 18 is 9. The lowest power of xx is x2x^2. So the GCF is 9x29x^2.

9x4+27x3+18x2=9x2(x2+3x+2)9x^4 + 27x^3 + 18x^2 = 9x^2(x^2 + 3x + 2)

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

Note: The expression inside the parentheses can be factored further as (x+1)(x+2)(x + 1)(x + 2), giving 9x2(x+1)(x+2)9x^2(x + 1)(x + 2). Always check whether the remaining expression can be factored more!

Problem 6: A carpenter cuts boards for shelving. The total cost in dollars for nn shelves is C=8n+0.5nC = 8n + 0.5n. Factor this expression and find the cost for 12 shelves.

Factor out nn:

C=n(8+0.5)=8.5nC = n(8 + 0.5) = 8.5n

For 12 shelves: C=8.5(12)=102C = 8.5(12) = 102

Answer: The cost is $102 for 12 shelves. The factored form shows each shelf costs $8.50 total (materials plus hardware).

Key Takeaways

  • Factoring out the GCF is always the first step in any factoring problem — check for it before trying any other technique
  • To find the GCF: take the GCF of the coefficients, then the lowest exponent of each shared variable
  • Divide every term by the GCF and write the results inside parentheses
  • When the leading coefficient is negative, factor out the negative along with the GCF
  • If the GCF is 1, move on to other factoring methods
  • Always check your work by multiplying the factored form back out

Return to Algebra for more topics in this section.

Last updated: March 29, 2026