Greatest Common Factor and Factor by Grouping
Find the greatest common factor of two or more expressions
Earlier we multiplied factors together to get a product. Now we will be reversing this process; we will start with a product and then break it down into its factors. Splitting a product into factors is called factoring.
We have learned how to factor numbers to find the least common multiple (LCM) of two or more numbers. Now we will factor expressions and find the greatest common factor of two or more expressions. The method we use is similar to what we used to find the LCM.
First we’ll find the GCF of two numbers.
Example. Find the GCF of and .
Factor each coefficient into primes, and line up the common factors in columns. We circle the , , and that are shared by both numbers:
Bring down the common factors that both share — one , and two — then multiply:
The GCF of and is . Notice that, because the GCF is a factor of both numbers, and can be written as multiples of :
Find the GCF of 48 and 80.
Factor each number into primes, line up the shared primes in columns, and multiply the common ones.Find the GCF of 18 and 40.
Factor and ; only one prime is shared.We summarize the steps we use to find the GCF below.
Find the greatest common factor (GCF) of two expressions.
- Factor each coefficient into primes. Write all variables with exponents in expanded form.
- List all factors — matching common factors in a column. In each column, circle the common factors.
- Bring down the common factors that all expressions share.
- Multiply the factors.
In the first example, the GCF was a constant. In the next two examples, we will get variables in the greatest common factor.
Example. Find the greatest common factor of and .
Factor each coefficient into primes and write the variables with exponents in expanded form. Circle the common factors in each column, then bring them down:
The shared factors are two and three , so:
The GCF of and is .
Find the GCF of and .
The GCF of the coefficients and is ; for the variable, take the smaller power of .Find the GCF of and .
Find the GCF of and , then take the smaller power of .Example. Find the GCF of and .
Factor each coefficient into primes and expand the variables. The shared factors are one , one , and one :
The GCF of and is .
Find the GCF of and .
The GCF of and is ; for each variable take the smaller power that appears in both.Find the GCF of and .
The GCF of and is ; take the smaller power of and of .We can also find the greatest common factor of more than two expressions.
Example. Find the GCF of , , and .
Factor each coefficient into primes and expand the variables. Every term shares one and one :
The GCF of , , and is .
Find the greatest common factor of , , and .
Find the GCF of , , and , then take the smallest power of that appears in every term.Find the greatest common factor of , , and .
The GCF of , , and is ; the smallest power of is .Factor the greatest common factor from a polynomial
Just like in arithmetic, where it is sometimes useful to represent a number in factored form (for example, as or ), in algebra it can be useful to represent a polynomial in factored form. One way to do this is by finding the GCF of all the terms. Remember, we multiply a polynomial by a monomial using the Distributive Property:
Now we will start with a product, like , and end with its factors, . To do this we apply the Distributive Property “in reverse.”
Distributive Property. If , , are real numbers, then
The form on the left is used to multiply. The form on the right is used to factor.
So how do you use the Distributive Property to factor a polynomial? You just find the GCF of all the terms and write the polynomial as a product!
Example. Factor .
First find the GCF of all the terms. Since and , the GCF is . Rewrite each term as a product using the GCF, then use the “reverse” Distributive Property to factor:
Check by multiplying: . ✓
Factor: .
The GCF of and is ; write each term as times something.Factor: .
The GCF of and is .Factor the greatest common factor from a polynomial.
- Find the GCF of all the terms of the polynomial.
- Rewrite each term as a product using the GCF.
- Use the “reverse” Distributive Property to factor the expression.
- Check by multiplying the factors.
We use “factor” as both a noun and a verb. As a noun, is a factor of . As a verb, we factor from .
Example. Factor .
The GCF of and is . Rewrite each term as a product using the GCF, then factor:
Check by multiplying: . ✓
Factor: .
The GCF of and is ; remember .Factor: .
The GCF of and is .The expressions in the next example have several factors in common. Remember to write the GCF as the product of all the common factors.
Example. Factor .
Since and , the GCF is . Rewrite each term and factor:
Check by multiplying: . ✓
Factor: .
The GCF of and is ; note .Factor: .
The GCF of and is .Now we’ll factor the greatest common factor from a trinomial. We start by finding the GCF of all three terms.
Example. Factor .
Find the GCF of all three terms. Since , , and , the GCF is . Rewrite each term as a product using the GCF, then factor:
Check by multiplying: . ✓
Factor: .
The GCF of , , and is ; divide each term by .Factor: .
The GCF of the three terms is ; divide each term by .Example. Factor .
The GCF of and is . Rewrite each term and factor:
Check by multiplying: . ✓
Factor: .
The GCF of and is ; take the smaller power of .Factor: .
The GCF of and is .Example. Factor .
In a previous example we found the GCF of , , and to be . Rewrite each term using the GCF, then factor:
Check by multiplying: . ✓
Factor: .
The GCF of the three terms is ; divide each term by .Factor: .
The GCF of , , and is .Example. Factor .
Since , , and , the GCF is . Rewrite each term and factor:
Check by multiplying: . ✓
Factor: .
The GCF of the three terms is ; divide each term by .Factor: .
The GCF of the three terms is ; divide each term by .When the leading coefficient is negative, we factor the negative out as part of the GCF.
Example. Factor .
When the leading coefficient is negative, the GCF will be negative. Ignoring the signs of the terms, the GCF of and is . Since the expression has a negative leading coefficient, we use as the GCF. Rewrite each term and factor:
Check by multiplying: . ✓
Factor: .
The leading coefficient is negative, so use as the GCF; watch the sign on the second term.Factor: .
Use as the GCF; factoring from leaves .Example. Factor .
The leading coefficient is negative, so the GCF is negative, . Rewrite each term using the GCF, then factor:
Check by multiplying: . ✓
Factor: .
Use as the GCF; factoring from leaves .Factor: .
Use as the GCF; watch the sign on the second term.The greatest common factor doesn’t have to be a monomial — it can be a binomial too.
Example. Factor .
The GCF here is the binomial . Factor it out from each term:
Check on your own by multiplying.
Factor: .
The common factor is the binomial ; pull it out, and what remains from each term forms the other factor.Factor: .
The common factor is the binomial ; the leftover pieces and form the other factor.Factor by grouping
When there is no common factor of all the terms of a polynomial, look for a common factor in just some of the terms. When there are four terms, a good way to start is by separating the polynomial into two parts with two terms in each part. Then look for the GCF in each part. If the polynomial can be factored, you will find a common factor emerges from both parts.
(Not all polynomials can be factored. Just like some numbers are prime, some polynomials are prime.)
Example. Factor .
There is no greatest common factor of all four terms, so let’s separate the first two terms from the second two terms. Factor the GCF from each group: from we factor , and from we factor :
Notice that each term now has a common factor of , so we factor it out. Check by multiplying: . ✓
Factor: .
Group the first two terms and the last two: factor from and from ; a common binomial should appear.Factor: .
Factor from and from ; the two groups should share a binomial factor.Factor by grouping.
- Group terms with common factors.
- Factor out the common factor in each group.
- Factor the common factor from the expression.
- Check by multiplying the factors.
Example. Factor .
There is no GCF in all four terms. Separate the polynomial into two parts: and . Factor the GCF from both parts, being careful with the signs when factoring the GCF from the last two terms:
Check on your own by multiplying.
Factor: .
Factor from and from ; watch the sign, and a common binomial appears.Factor: .
Factor from and from ; the two groups share a binomial factor.Key terms
factoring — splitting a product into the factors that multiply to give it. greatest common factor (GCF) — the largest expression that is a factor of each of two or more given expressions. factor by grouping — a method for factoring a four-term polynomial by grouping terms with common factors, factoring the GCF from each group, and then factoring out the common binomial.
This section is adapted from Elementary Algebra 2e, Section 7.1: Greatest Common Factor and Factor by Grouping by Lynn Marecek, MaryAnne Anthony-Smith, and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: recast the GCF prime-factorization tables and worked factoring examples as prose with display equality chains, and stated each GCF as a bring-down product; omitted the Be Prepared quiz, Self Check checklist, media links, and end-of-section exercises; and converted the practice problems (“Try Its”) into interactive exercises with instant feedback.