GCF and LCM: How to Find Them
GCF and LCM are two ways of comparing numbers. Both of them start with factors or multiples, so if you know what a factor and a multiple are, you already know most of this page.
What GCF means
GCF stands for greatest common factor. It is the largest number that divides two numbers exactly, with nothing left over.
Take 12 and 18. The factors of 12 are 1, 2, 3, 4, 6 and 12. The factors of 18 are 1, 2, 3, 6, 9 and 18. The numbers that appear in both lists are 1, 2, 3 and 6. The greatest of these is 6, so the GCF of 12 and 18 is 6.
When two numbers share no factor except 1, their GCF is 1. For example, the GCF of 8 and 15 is 1, because 8 and 15 have no common factor except 1.
What LCM means
LCM stands for least common multiple. It is the smallest number that both numbers divide into exactly.
Take 4 and 6. The multiples of 4 are 4, 8, 12, 16, 20, 24, and so on. The multiples of 6 are 6, 12, 18, 24, 30, and so on. The first number that appears in both lists is 12, so the LCM of 4 and 6 is 12.
When one number divides the other exactly, the LCM is the larger number. The LCM of 4 and 8 is 8, because 8 is already a multiple of 4.
Finding the GCF by listing factors
Listing works well for small numbers. Write down the factors of each number, circle the ones they share, and pick the largest.
Example: find the GCF of 24 and 36.
Step 1: List the factors of 24: 1, 2, 3, 4, 6, 8, 12, 24.
Step 2: List the factors of 36: 1, 2, 3, 4, 6, 9, 12, 18, 36.
Step 3: The common factors are 1, 2, 3, 4, 6 and 12. The greatest is 12, so the GCF of 24 and 36 is 12.
Finding the LCM by listing multiples
Listing works for the LCM too. Write down the multiples of each number until you find one that appears in both lists.
Example: find the LCM of 8 and 10.
Step 1: Multiples of 8: 8, 16, 24, 32, 40.
Step 2: Multiples of 10: 10, 20, 30, 40.
Step 3: The first number in both lists is 40, so the LCM of 8 and 10 is 40.
Listing multiples can take a while when the numbers are large. For larger numbers, prime factorisation is faster.
Finding both by prime factorisation
Prime factorisation means breaking a number into a product of prime numbers. Once you have that, the GCF and the LCM both come out of the same working.
Example: find the GCF and the LCM of 12 and 18.
Step 1: Break each number down. 12 = 2 × 2 × 3, and 18 = 2 × 3 × 3.
Step 2: For the GCF, take the primes they share, using the smallest power that appears. Both numbers have 2 and 3, so the GCF is 2 × 3 = 6.
Step 3: For the LCM, take every prime that appears, using the largest power that appears. The largest power of 2 is 2² and the largest power of 3 is 3², so the LCM is 2² × 3² = 4 × 9 = 36.
Check the LCM by dividing. 36 ÷ 12 = 3 and 36 ÷ 18 = 2, so 36 is a multiple of both numbers.
Here is the same method for 4 and 6. 4 = 2² and 6 = 2 × 3. The shared prime is 2, so the GCF is 2. For the LCM, take the largest powers: 2² × 3 = 12.
GCF and LCM side by side
| Numbers | GCF | LCM |
|---|---|---|
| 12 and 18 | 6 | 36 |
| 4 and 6 | 2 | 12 |
| 8 and 10 | 2 | 40 |
| 24 and 36 | 12 | 72 |
Where GCF and LCM are used
Simplifying a fraction uses the GCF. To simplify 12/18, divide the top and the bottom by their GCF, 6. 12 ÷ 6 = 2 and 18 ÷ 6 = 3, so 12/18 simplifies to 2/3. The equivalent fractions guides on this site use the same step.
Adding fractions uses the LCM. To add 1/4 and 1/6, first find the LCM of 4 and 6, which is 12. Then rewrite both fractions with 12 as the denominator. 1/4 = 3/12 and 1/6 = 2/12, so 1/4 + 1/6 = 5/12.
Outside fractions, the LCM answers "when will they meet again" questions. If one bus leaves every 12 minutes and another leaves every 18 minutes, and they leave together now, they leave together again after 36 minutes, because 36 is the LCM of 12 and 18.
The GCF answers "how large can the equal pieces be" questions. If you have a 12 metre rope and an 18 metre rope and you want to cut both into equal pieces with nothing left over, the longest piece you can cut is 6 metres, because 6 is the GCF of 12 and 18.
Common mistakes
Mixing up GCF and LCM. The GCF is never larger than the smaller number. The LCM is never smaller than the larger number. If your GCF comes out bigger than your numbers, or your LCM comes out smaller, you have them the wrong way round.
Stopping at the first common factor. The first common factor you find is often 1 or 2, but the GCF is the greatest one, so check the whole list.
Stopping the multiples too early. When you list multiples, keep going until a number appears in both lists. The LCM of 8 and 10 is 40, not 16, even though 16 is a multiple of 8.
Using the LCM to simplify a fraction. Simplifying needs the GCF. The LCM is for adding and subtracting fractions, not for simplifying them.
Related guides
Previous: How to Calculate a Percentage · Next: Mean, Median, Mode and Range · All guides in this category