Polynomials & Factoring

Factoring Out the GCF: Steps, Examples and Checks

Factoring out the GCF means pulling the largest shared factor out of every term, so that ab+ac=a(b+c)ab + ac = a(b + c). For example, 12x3+18x2=6x2(2x+3)12x^3 + 18x^2 = 6x^2(2x + 3).

ab+ac=a(b+c)ab + ac = a(b + c)

It is the first move for nearly every polynomial you will ever factor, and the step students skip most often. Below: how to find the GCF fast, what to do with negatives, fractions and binomials, when the method runs out, and how to prove your answer is right in ten seconds.

What does it mean to factor out the GCF?

The formula comes from one idea: the distributive property run backwards. The rule a(b+c)=ab+aca(b + c) = ab + ac is what powers multiplying polynomials, and reading it right to left says that if the same factor aa appears in every term, it can step outside the parentheses. Nothing is simplified away. The expression is rewritten as a product, and its value is identical for every input.

The word “greatest” earns its place. Taking out a smaller common factor is still true, but it leaves work behind: 12x+18=2(6x+9)12x + 18 = 2(6x + 9) is correct, yet 6x+96x + 9 still hides a factor of 33. The fully factored form is 6(2x+3)6(2x + 3).

That gives a built-in test for being finished: the terms inside the parentheses should share no factor except 11. If they do, the GCF was not the greatest. Products matter because you can act on them. You can cancel factors in fractions, and you can set each factor to zero to solve equations.

How do you find the GCF of two or more terms?

Treat the number part and the variable part separately. For the numbers, find the largest integer dividing all coefficients, using prime factorization or the Euclidean method: gcd⁡(84,36)\gcd(84, 36) becomes gcd⁡(36,12)=12\gcd(36, 12) = 12, because 84=2⋅36+1284 = 2 \cdot 36 + 12. For the variables, keep only letters that appear in every term, each raised to its lowest exponent.

Lowest, not highest, because the GCF has to divide every term. x2x^2 divides x5x^5, but x5x^5 cannot divide x2x^2 without producing a negative exponent. The highest-exponent version belongs to the least common multiple, a different animal.

Terms Number part Variable part GCF
12x312x^3, 18x218x^2 66 x2x^2 6x26x^2
8a2b8a^2b, 20ab320ab^3 44 abab 4ab4ab
7x27x^2, 5y5y 11 none 11

Example 1. Factor 18x3y2+12x2y4−30x4y18x^3y^2 + 12x^2y^4 - 30x^4y.

Numbers: 18=2⋅3218 = 2 \cdot 3^2, 12=22⋅312 = 2^2 \cdot 3, 30=2⋅3⋅530 = 2 \cdot 3 \cdot 5, so the common part is 2⋅3=62 \cdot 3 = 6. Exponents of xx are 3,2,43, 2, 4, so the lowest is 22. Exponents of yy are 2,4,12, 4, 1, so the lowest is 11. The GCF is 6x2y6x^2y. Divide each term:

18x3y2+12x2y4−30x4y=6x2y (3xy+2y3−5x2)18x^3y^2 + 12x^2y^4 - 30x^4y = 6x^2y\,(3xy + 2y^3 - 5x^2)

A quick sanity check uses the degree of the polynomial: the original has degree 66, the GCF has degree 33, and the bracket has degree 33. The degrees subtract cleanly, as they should.

Quick check

Find the GCF of 24a3b24a^3b and 36a2b436a^2b^4.

How do you factor out the GCF step by step?

Wrong versus right factoring of 4x³ + 12x² + 4x showing the last term becomes 1
Dividing 4x by the GCF 4x leaves 1, so the parentheses keep three terms.

The routine is the same every time:

  1. Find the GCF of all terms, numbers and variables.
  2. Write it outside a pair of parentheses.
  3. Divide each original term by the GCF and write the quotients inside, keeping every sign.
  4. Count the terms inside, then check that they share nothing further.
Divide by subtracting exponents

x5÷x2=x3x^5 \div x^2 = x^3. When the exponents match, the variable vanishes, because x0=1x^0 = 1. A term never disappears, it just becomes a number.

The trap that costs the most points is a term that equals the GCF. Dividing it leaves a 11, not a 00.

Example 2. Factor 4x3+12x2+4x4x^3 + 12x^2 + 4x. The GCF is 4x4x. The quotients are x2x^2, 3x3x and 11:

4x3+12x2+4x=4x(x2+3x+1)4x^3 + 12x^2 + 4x = 4x(x^2 + 3x + 1)

Writing 4x(x2+3x)4x(x^2 + 3x) drops the last term entirely. The parentheses must hold the same number of terms as the original expression, so counting terms is a free error detector.

Should you factor out a negative GCF?

When the leading term is negative, factoring out a negative GCF is the better habit. The positive version is still correct, but it leaves a negative leading coefficient inside the parentheses, and every later method (trinomials, the quadratic formula, completing the square) is easier with a positive one.

The rule: every sign inside the parentheses flips, not just the first. Dividing by a negative changes the sign of each quotient.

Example 3. Factor −12x2+18x−6-12x^2 + 18x - 6 completely. The numeric GCF is 66, and the leading term is negative, so use −6-6:

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

Check the signs: −12x2÷(−6)=2x2-12x^2 \div (-6) = 2x^2, 18x÷(−6)=−3x18x \div (-6) = -3x, and −6÷(−6)=1-6 \div (-6) = 1. The trinomial then factors as 2x2−3x+1=(2x−1)(x−1)2x^2 - 3x + 1 = (2x - 1)(x - 1), so the complete answer is −6(2x−1)(x−1)-6(2x - 1)(x - 1). Testing x=2x = 2: the original is −48+36−6=−18-48 + 36 - 6 = -18, and the factored form is −6⋅3⋅1=−18-6 \cdot 3 \cdot 1 = -18.

Try this: Factor −5x2−10x-5x^2 - 10x twice, once with 5x5x and once with −5x-5x as the GCF. Expand both answers and confirm they match the original, then decide which one leaves a friendlier expression inside the parentheses.

Factoring out a fractional GCF, and where the LCM fits

Fractions and decimals follow the same logic, but the GCF of fractions has a twist: take the GCF of the numerators over the LCM of the denominators. The denominators use the least common multiple because the factor you pull out must divide each fraction cleanly, and a fraction with a larger denominator is “smaller”.

For 23x+49\frac{2}{3}x + \frac{4}{9}, the numerators 22 and 44 share 22, and the denominators 33 and 99 have LCM 99. The GCF is 29\frac{2}{9}:

23x+49=29(3x+2)\frac{2}{3}x + \frac{4}{9} = \frac{2}{9}(3x + 2)

Verify: 29⋅3x=23x\frac{2}{9} \cdot 3x = \frac{2}{3}x and 29⋅2=49\frac{2}{9} \cdot 2 = \frac{4}{9}. A second route is to pull out the common denominator first, 19(6x+4)\frac{1}{9}(6x + 4), then factor the 22 from the bracket. Decimals work like whole numbers shifted: 0.6x+0.9=0.3(2x+3)0.6x + 0.9 = 0.3(2x + 3).

The GCF/LCM mix-up is a classic slip. GCF uses the lowest exponents and the largest number dividing every term. LCM uses the highest exponents and the smallest number every term divides into. If a factored answer contains a negative exponent, the wrong one was used.

Quick check

Factor out the GCF: 16x2+12x\frac{1}{6}x^2 + \frac{1}{2}x.

How do you factor out a binomial GCF?

The common factor can be a whole parenthesis. In x(x+4)+3(x+4)x(x + 4) + 3(x + 4), the binomial (x+4)(x + 4) appears in both terms, so it comes out front:

x(x+4)+3(x+4)=(x+4)(x+3)x(x + 4) + 3(x + 4) = (x + 4)(x + 3)

The substitution trick

Replace (x+4)(x + 4) with a single letter uu. Then xu+3u=u(x+3)xu + 3u = u(x + 3) is ordinary GCF work, and you swap (x+4)(x + 4) back in at the end.

This move is the engine of factoring by grouping: grouping rearranges four terms until a common binomial appears. The trap is that binomials often arrive in disguise. (2−x)(2 - x) and (x−2)(x - 2) are opposites, since 2−x=−(x−2)2 - x = -(x - 2), so a sign must be flipped before they match.

Example 4. Factor 5x(x−2)−3(2−x)5x(x - 2) - 3(2 - x). Rewrite 2−x2 - x as −(x−2)-(x - 2):

5x(x−2)−3(2−x)=5x(x−2)+3(x−2)=(x−2)(5x+3)5x(x - 2) - 3(2 - x) = 5x(x - 2) + 3(x - 2) = (x - 2)(5x + 3)

Expand to confirm: (x−2)(5x+3)=5x2+3x−10x−6=5x2−7x−6(x - 2)(5x + 3) = 5x^2 + 3x - 10x - 6 = 5x^2 - 7x - 6. The original gives 5x2−10x−6+3x5x^2 - 10x - 6 + 3x, which is the same.

What if the terms share nothing but 1?

Then the method has nothing to remove, and it fails quietly: x2+5x+6x^2 + 5x + 6 has a GCF of 11, so the factoring must come from somewhere else. The GCF is step zero, not the whole job. After pulling it out, look at what remains and match it to a pattern:

Skipping the GCF is how students end up with answers that are factored but not complete. Take 4x2−364x^2 - 36. Spotting the difference of squares directly gives (2x−6)(2x+6)(2x - 6)(2x + 6), and both brackets still hold a 22. Starting with the GCF is cleaner:

4x2−36=4(x2−9)=4(x−3)(x+3)4x^2 - 36 = 4(x^2 - 9) = 4(x - 3)(x + 3)

The same habit rescues harder problems: 3x3−48x=3x(x2−16)=3x(x−4)(x+4)3x^3 - 48x = 3x(x^2 - 16) = 3x(x - 4)(x + 4). The GCF turned a cubic with no obvious pattern into one the difference-of-squares rule finishes in a line.

Why does factoring out the GCF help solve equations?

Number lines comparing dividing by x, which loses root 0, with factoring x(x − 5) = 0
For x² = 5x, dividing by x finds only 5, but factoring out x finds both 0 and 5.

Factored form unlocks the zero product property: if a product equals zero, at least one factor is zero. A polynomial equation with no constant term collapses at once. Take x2=5xx^2 = 5x. Move everything left, x2−5x=0x^2 - 5x = 0, factor out xx to get x(x−5)=0x(x - 5) = 0, and read off x=0x = 0 or x=5x = 5.

The tempting shortcut is dividing both sides by xx. That produces x=5x = 5 and silently loses the root x=0x = 0. Factoring never loses a solution, which is why it beats dividing. Equations of the form ax2+bx=0ax^2 + bx = 0 never need the formula; save the quadratic formula for cases where the GCF is not enough.

A real use: a ball thrown upward has height h=−16t2+48th = -16t^2 + 48t feet after tt seconds. Factoring gives h=−16t(t−3)h = -16t(t - 3), so the height is zero at t=0t = 0 (the throw) and t=3t = 3 (the landing). Factoring also simplifies fractions: 6x2+9x3x=3x(2x+3)3x=2x+3\frac{6x^2 + 9x}{3x} = \frac{3x(2x + 3)}{3x} = 2x + 3 for x≠0x \neq 0. That is the quick monomial case of polynomial long division.

How do you check a factored answer?

The slow check is multiplying back: distribute the GCF across the parentheses and compare with the original. It is reliable, and it is also exactly how an error hides, because the eye tends to see what it expects.

The fast check is substitution. Pick a small value for each variable, avoiding 00 and 11 where possible, since those make many terms collapse and can hide mistakes. Test Example 1 at x=1x = 1, y=2y = 2. The original is 18⋅4+12⋅16−30⋅2=72+192−60=20418 \cdot 4 + 12 \cdot 16 - 30 \cdot 2 = 72 + 192 - 60 = 204. The factored form is 6⋅1⋅2⋅(3⋅2+2⋅8−5)=12⋅17=2046 \cdot 1 \cdot 2 \cdot (3 \cdot 2 + 2 \cdot 8 - 5) = 12 \cdot 17 = 204. Both match, so the answer holds.

Pair that with two structural checks: the parentheses hold as many terms as the original, and the terms inside share no common factor. Together, the three checks catch almost every slip. When you want more reps, the set of factoring practice problems puts the GCF alongside every other factoring method.

Quick check

A student writes 9x2−6x=3x(3x−3)9x^2 - 6x = 3x(3x - 3). Test it at x=2x = 2. Is it right, and if not, what is the correct form?

Practice problems

0 of 5 solved

  1. Factor out the GCF: 8x+128x + 12.

  2. Factor out the GCF: 15x3−20x215x^3 - 20x^2.

  3. Factor out the GCF, using a negative leading factor: −14a2b+21ab2−7ab-14a^2b + 21ab^2 - 7ab.

  4. Factor out the GCF: 3x(x−4)2+6(x−4)3x(x - 4)^2 + 6(x - 4).

  5. Factor out the GCF: 23x3−49x2+815x\frac{2}{3}x^3 - \frac{4}{9}x^2 + \frac{8}{15}x.

Common questions

What does GCF mean in factoring?

GCF stands for greatest common factor: the largest expression that divides every term evenly. In algebra it includes both a number part and a variable part, such as 6x26x^2 for the terms 12x312x^3 and 18x218x^2.

Do you always factor out the GCF first?

Yes, make it the first step every time. It shrinks the numbers, can reveal a pattern such as a difference of squares, and is required if the question asks you to factor completely.

What is the GCF of terms with different variables?

Only variables that appear in every term count. For 6x2y6x^2y and 9xz9xz the GCF is 3x3x, because yy and zz are each missing from one of the terms.

What if the GCF is 1?

Then there is nothing to pull out, and the expression needs another method. Try grouping for four terms, a trinomial method for three terms, or a special pattern for two terms.

Should the GCF be negative?

Either sign is mathematically correct, but when the leading term is negative it is usually best to factor out a negative GCF. That leaves a positive leading coefficient inside the parentheses, which makes further factoring easier.

How do you check that you factored out the GCF correctly?

Multiply the GCF back through the parentheses and confirm you get the original expression. For a faster test, substitute a small value such as x=2x = 2 into both forms and compare the results.

Up next