Arithmetic

GCF and LCM

Last updated: March 2026 · Beginner

The Greatest Common Factor (GCF) is the largest number that divides evenly into two or more numbers. The Least Common Multiple (LCM) is the smallest number that is a multiple of two or more numbers. You use the GCF to simplify fractions and the LCM to find common denominators — two of the most frequent tasks in arithmetic.

Greatest Common Factor (GCF)

The GCF is also called the Greatest Common Divisor (GCD) or Highest Common Factor (HCF).

Method 1: List the Factors

List all factors of each number, then find the largest one they share.

Example 1: Find the GCF of 18 and 24

  • Factors of 18: 1, 2, 3, 6, 9, 18
  • Factors of 24: 1, 2, 3, 4, 6, 8, 12, 24
  • Common factors: 1, 2, 3, 6

GCF = 6

Method 2: Prime Factorization

Find the prime factorization of each number. The GCF is the product of the shared prime factors, each taken to the lowest power it appears.

Example 2: Find the GCF of 36 and 60

36=22×3236 = 2^2 \times 3^2 60=22×3×560 = 2^2 \times 3 \times 5

Shared primes: 2 and 3.

  • 22: lowest power is 222^2
  • 33: lowest power is 313^1

GCF=22×3=4×3=12\text{GCF} = 2^2 \times 3 = 4 \times 3 = 12

Example 3: Find the GCF of 45, 60, and 75

45=32×545 = 3^2 \times 5 60=22×3×560 = 2^2 \times 3 \times 5 75=3×5275 = 3 \times 5^2

Shared primes: 3 and 5.

  • 33: lowest power is 313^1
  • 55: lowest power is 515^1

GCF=3×5=15\text{GCF} = 3 \times 5 = 15

Least Common Multiple (LCM)

Method 1: List the Multiples

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

Example 4: Find the LCM of 4 and 6

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

LCM = 12

Method 2: Prime Factorization

Find the prime factorization of each number. The LCM is the product of all prime factors, each taken to the highest power it appears.

Example 5: Find the LCM of 12 and 18

12=22×312 = 2^2 \times 3 18=2×3218 = 2 \times 3^2

All primes: 2 and 3.

  • 22: highest power is 222^2
  • 33: highest power is 323^2

LCM=22×32=4×9=36\text{LCM} = 2^2 \times 3^2 = 4 \times 9 = 36

Example 6: Find the LCM of 8, 12, and 15

8=238 = 2^3 12=22×312 = 2^2 \times 3 15=3×515 = 3 \times 5

All primes: 2, 3, 5.

  • 22: highest power is 232^3
  • 33: highest power is 313^1
  • 55: highest power is 515^1

LCM=23×3×5=8×3×5=120\text{LCM} = 2^3 \times 3 \times 5 = 8 \times 3 \times 5 = 120

GCF and LCM Relationship

For any two numbers aa and bb:

GCF(a,b)×LCM(a,b)=a×b\text{GCF}(a, b) \times \text{LCM}(a, b) = a \times b

Example 7: Verify with 12 and 18

GCF(12,18)=6\text{GCF}(12, 18) = 6 and LCM(12,18)=36\text{LCM}(12, 18) = 36

6×36=216=12×186 \times 36 = 216 = 12 \times 18 \checkmark

This formula is a quick way to find the LCM if you already know the GCF:

LCM(a,b)=a×bGCF(a,b)\text{LCM}(a, b) = \frac{a \times b}{\text{GCF}(a, b)}

When to Use GCF vs. LCM

TaskUse
Simplifying fractionsGCF — divide both parts by the GCF
Finding common denominatorsLCM — the LCD is the LCM of the denominators
Splitting items into equal groupsGCF — the GCF tells you the largest group size
Finding when events coincideLCM — when cycles sync up

Practice Problems

Test your understanding with these problems. Click to reveal each answer.

Problem 1: Find the GCF of 28 and 42

28=22×728 = 2^2 \times 7

42=2×3×742 = 2 \times 3 \times 7

Shared primes: 2 (lowest: 212^1) and 7 (lowest: 717^1)

GCF = 2×7=142 \times 7 = 14

Problem 2: Find the LCM of 6 and 10

6=2×36 = 2 \times 3

10=2×510 = 2 \times 5

LCM = 2×3×5=302 \times 3 \times 5 = 30

LCM = 30

Problem 3: Find the GCF of 54 and 81

54=2×3354 = 2 \times 3^3

81=3481 = 3^4

Shared prime: 3 (lowest: 333^3)

GCF = 33=273^3 = 27

Problem 4: Find the LCM of 9, 12, and 15

9=329 = 3^2, 12=22×312 = 2^2 \times 3, 15=3×515 = 3 \times 5

LCM = 22×32×5=4×9×5=1802^2 \times 3^2 \times 5 = 4 \times 9 \times 5 = 180

LCM = 180

Problem 5: Simplify 3648\frac{36}{48} using the GCF

GCF(36,48)=12\text{GCF}(36, 48) = 12

3648=36÷1248÷12=34\frac{36}{48} = \frac{36 \div 12}{48 \div 12} = \frac{3}{4}

Answer: 34\frac{3}{4}

Key Takeaways

  • GCF: largest factor shared by two or more numbers — use lowest powers of shared primes
  • LCM: smallest multiple shared by two or more numbers — use highest powers of all primes
  • GCF simplifies fractions; LCM finds common denominators
  • The relationship: GCF×LCM=a×b\text{GCF} \times \text{LCM} = a \times b
  • Both the listing method and prime factorization method work — use whichever is faster for the numbers

Return to Arithmetic for more foundational math topics.

Last updated: March 29, 2026