Numbers
GCF and LCM explained with three methods
The greatest common factor (GCF) and the least common multiple (LCM) show up whenever you simplify a fraction, add fractions, or share things out evenly. They sound alike, so students often mix them up. This guide gives you a way to tell them apart and three reliable methods for finding each.
What the two terms mean
- A factor of a number divides it exactly. The factors of 12 are 1, 2, 3, 4, 6 and 12.
- A multiple of a number is what you get by multiplying it by 1, 2, 3 and so on. The multiples of 12 are 12, 24, 36, 48 and so on.
- The GCF of two numbers is the largest number that divides both. It is never bigger than the smaller number.
- The LCM is the smallest number that both of them divide into. It is never smaller than the larger number.
A simple memory aid: the GCF is about splitting things up into equal groups, and the LCM is about things lining up again later.
Method 1: list them
This works well for small numbers. Find the GCF and LCM of 12 and 18.
| Number | Factors | First multiples |
|---|---|---|
| 12 | 1, 2, 3, 4, 6, 12 | 12, 24, 36, 48 |
| 18 | 1, 2, 3, 6, 9, 18 | 18, 36, 54 |
The largest factor in both lists is 6, so the GCF is 6. The first multiple in both lists is 36, so the LCM is 36.
Method 2: prime factorization
For bigger numbers, break each into primes. Take 36 and 48.
- 36 = 2 × 2 × 3 × 3 = 2² × 3²
- 48 = 2 × 2 × 2 × 2 × 3 = 2⁴ × 3
For the GCF, take each prime with the smaller power: 2² × 3 = 12. For the LCM, take each prime with the larger power: 2⁴ × 3² = 16 × 9 = 144.
There is a handy check for two numbers: GCF × LCM = the two numbers multiplied together. Here 12 × 144 = 1,728 and 36 × 48 = 1,728, so the answers agree.
Method 3: the Euclidean algorithm
Factoring large numbers is slow. Euclid's method finds the GCF by repeated division, keeping only the remainders. Find the GCF of 252 and 105.
- 252 ÷ 105 = 2 remainder 42
- 105 ÷ 42 = 2 remainder 21
- 42 ÷ 21 = 2 remainder 0
When the remainder reaches 0, the last divisor is the GCF, so the GCF is 21. Now use the check above to get the LCM: 252 × 105 ÷ 21 = 26,460 ÷ 21 = 1,260. You can confirm by factoring: 252 = 2² × 3² × 7 and 105 = 3 × 5 × 7, so the LCM is 2² × 3² × 5 × 7 = 1,260.
More than two numbers
The same ideas extend. For the GCF of 18, 24 and 30, write 18 = 2 × 3², 24 = 2³ × 3 and 30 = 2 × 3 × 5. The primes shared by all three are 2 and 3, each at its lowest power, so the GCF is 2 × 3 = 6. For the LCM of 4, 6 and 10, take the highest power of every prime that appears: 2² from 4, 3 from 6, and 5 from 10, so the LCM is 4 × 3 × 5 = 60.
Using the GCF to simplify a fraction
To simplify 36/48, divide top and bottom by their GCF of 12 to get 3/4. Doing it in one step saves you from simplifying in several rounds. More on this in the fractions guide.
Using the LCM to add fractions
To add 5/12 + 7/18, use the LCM of 12 and 18 as the common denominator. The LCM is 36, so 5/12 = 15/36 and 7/18 = 14/36. Then 15/36 + 14/36 = 29/36. Using the LCM rather than just multiplying the denominators (12 × 18 = 216) keeps the numbers small and often saves a simplifying step.
Word problems: which one do I need?
Sharing equally means GCF. A baker has 48 cookies and 36 brownies and wants identical bags with nothing left over. The greatest number of bags is the GCF of 48 and 36, which is 12. Each bag holds 48 ÷ 12 = 4 cookies and 36 ÷ 12 = 3 brownies.
Repeating together means LCM. One bus leaves a stop every 12 minutes and another every 18 minutes. They leave together at 8:00. They next leave together after 36 minutes, the LCM of 12 and 18, so at 8:36.
Clues for GCF: "greatest number of groups", "largest possible size", "cut into equal pieces". Clues for LCM: "next time together", "how often", "smallest amount that works for both".
Quick reference
| Numbers | GCF | LCM |
|---|---|---|
| 6 and 8 | 2 | 24 |
| 9 and 12 | 3 | 36 |
| 14 and 21 | 7 | 42 |
| 15 and 28 | 1 | 420 |
| 20 and 50 | 10 | 100 |
When two numbers share no factor except 1, as 15 and 28 do, they are called coprime. Their LCM is simply their product.
Divisibility rules that speed up factoring
A few quick tests make prime factorization much faster. A number is divisible by 2 if it ends in an even digit, by 3 if its digits add to a multiple of 3, by 5 if it ends in 0 or 5, and by 9 if its digits add to a multiple of 9. For 252, the digits add to 9, so it divides by 9 and by 3, and it is even, so it divides by 2. Start with the smallest prime and keep dividing until you reach 1.
Common mistakes
- Mixing up the two. If your "GCF" is bigger than one of the numbers, you have found a multiple by mistake.
- Taking the wrong power. The GCF uses the smaller power of each shared prime, the LCM the larger.
- Leaving out primes. For the LCM, include primes that appear in only one number. For the GCF, ignore them.
- Stopping the Euclidean steps early. Keep going until the remainder is exactly 0.
Once the methods are familiar, the GCF and LCM calculator lets you check an answer and see both the factor lists and the Euclidean steps.