January 2026

GCF and LCM: How to Find Them

The Greatest Common Factor (GCF) and the Least Common Multiple (LCM) show up everywhere in math — from simplifying fractions to finding common denominators to solving word problems. They sound similar, but they answer very different questions. This tutorial covers both, with two methods for each and plenty of examples.

What is the GCF?

The Greatest Common Factor (also called the Greatest Common Divisor, or GCD) of two numbers is the largest number that divides evenly into both of them.

For example, the GCF of 12 and 18 is 6 because 6 is the biggest number that goes into both 12 and 18 with no remainder.

What is the LCM?

The Least Common Multiple of two numbers is the smallest positive number that is a multiple of both.

For example, the LCM of 4 and 6 is 12 because 12 is the first number that appears in both the 4-times table and the 6-times table.

Method 1: Listing

The most straightforward approach — write out lists and look for what they share.

Listing method for GCF

List all factors of each number, then pick the largest one they have in common.

GCF Example 1: GCF of 12 and 18

Factors of 12: 1, 2, 3, 4, 6, 12
Factors of 18: 1, 2, 3, 6, 9, 18
Common factors: 1, 2, 3, 6
Greatest: 6

GCF(12, 18) = 6

GCF Example 2: GCF of 20 and 35

Factors of 20: 1, 2, 4, 5, 10, 20
Factors of 35: 1, 5, 7, 35
Common factors: 1, 5
Greatest: 5

GCF(20, 35) = 5

Listing method for LCM

List multiples of each number until you find the first one they share.

LCM Example 1: LCM of 4 and 6

Multiples of 4: 4, 8, 12, 16, 20, …
Multiples of 6: 6, 12, 18, 24, …
First match: 12

LCM(4, 6) = 12

LCM Example 2: LCM of 5 and 8

Multiples of 5: 5, 10, 15, 20, 25, 30, 35, 40, …
Multiples of 8: 8, 16, 24, 32, 40, …
First match: 40

LCM(5, 8) = 40

Listing works well for small numbers, but for larger ones it gets tedious. That's where prime factorization comes in.

Method 2: Prime factorization

Break each number into its prime factors, then use those primes to build the GCF or LCM.

Prime factorization for GCF

Multiply together the shared primes, using the lowest power of each.

GCF Example 3: GCF of 24 and 36

24 = 2 × 2 × 2 × 3 = 2³ × 3¹
36 = 2 × 2 × 3 × 3 = 2² × 3²

Shared primes: 2 and 3
Lowest powers: 2² and 3¹
GCF = 2² × 3 = 4 × 3 = 12

GCF(24, 36) = 12

GCF Example 4: GCF of 45 and 75

45 = 3 × 3 × 5 = 3² × 5
75 = 3 × 5 × 5 = 3 × 5²

Shared primes: 3 and 5
Lowest powers: 3¹ and 5¹
GCF = 3 × 5 = 15

GCF(45, 75) = 15

Prime factorization for LCM

Multiply together all primes that appear in either number, using the highest power of each.

LCM Example 3: LCM of 12 and 18

12 = 2² × 3
18 = 2 × 3²

All primes: 2 and 3
Highest powers: 2² and 3²
LCM = 4 × 9 = 36

LCM(12, 18) = 36

LCM Example 4: LCM of 8 and 14

8 = 2³
14 = 2 × 7

All primes: 2 and 7
Highest powers: 2³ and 7¹
LCM = 8 × 7 = 56

LCM(8, 14) = 56

The GCF × LCM shortcut

There's a handy relationship between the GCF and LCM of two numbers:

GCF(a, b) × LCM(a, b) = a × b

This means if you already know the GCF, you can find the LCM (or vice versa) with a simple division:

LCM(a, b) = (a × b) ÷ GCF(a, b)

Example: Find the LCM of 12 and 18 using the shortcut.

GCF(12, 18) = 6 (found earlier)
LCM = (12 × 18) ÷ 6 = 216 ÷ 6 = 36

Same answer as the prime factorization method — 36. ✓

When to use GCF vs. LCM

Knowing which one you need is often the hardest part of a problem. Here's a quick guide:

More worked examples

GCF of 30 and 42

30 = 2 × 3 × 5
42 = 2 × 3 × 7
Shared: 2 × 3 = 6

GCF(30, 42) = 6

LCM of 9 and 15

9 = 3²
15 = 3 × 5
All primes: 3² and 5
LCM = 9 × 5 = 45

LCM(9, 15) = 45

GCF of 48 and 64

48 = 2&sup4; × 3
64 = 2&sup6;
Shared: 2&sup4; = 16

GCF(48, 64) = 16

LCM of 10 and 12

10 = 2 × 5
12 = 2² × 3
All primes: 2², 3, 5
LCM = 4 × 3 × 5 = 60

LCM(10, 12) = 60

Common mistakes

Confusing GCF and LCM: The GCF is always less than or equal to both numbers. The LCM is always greater than or equal to both numbers. If your "GCF" is larger than one of the numbers, you've actually found the LCM (or made an error).

Forgetting to use all primes for LCM: When building the LCM, you must include primes from both numbers, not just the shared ones. A prime that only appears in one number still goes into the LCM at its highest power.

Using highest powers for GCF: For the GCF, use the lowest power of each shared prime. Using the highest power gives the LCM instead.

Stopping the prime factorization too early: Make sure each factor is actually prime. 4 is not prime (it's 2 × 2), and 9 is not prime (it's 3 × 3). Keep breaking factors down until every piece is prime.

Quick tips

Practice problems

1. Find the GCF of 16 and 24

Show answer
16 = 2&sup4;, 24 = 2³ × 3. Shared: 2³ = 8. GCF = 8

2. Find the LCM of 6 and 10

Show answer
6 = 2 × 3, 10 = 2 × 5. All primes: 2, 3, 5. LCM = 2 × 3 × 5 = 30

3. Simplify 18/24 using the GCF

Show answer
GCF(18, 24) = 6. 18 ÷ 6 = 3, 24 ÷ 6 = 4. Answer: 3/4

4. Two alarms go off every 8 minutes and every 12 minutes. If they both go off at noon, when will they next go off at the same time?

Show answer
LCM(8, 12) = 24. They'll both go off 24 minutes after noon, at 12:24 PM.

Build strong number sense with Arithmia — a cozy math puzzle game where factors and multiples come alive through play.

Try Arithmia