Pre Algebra

GCF and LCM

Last updated: March 2026 · Beginner
Before you start

You should be comfortable with:

Real-world applications
πŸ“
Carpentry

Measurements, material estimation, cutting calculations

πŸ’°
Retail & Finance

Discounts, tax, tips, profit margins

Once you know how to find factors and multiples, two natural follow-up questions arise. Given two or more numbers, what is the largest factor they share? And what is the smallest multiple they have in common? These are the greatest common factor (GCF) and the least common multiple (LCM) β€” two tools that show up constantly when simplifying fractions, finding common denominators, scheduling repeating events, and dividing materials into equal groups.

Greatest Common Factor (GCF)

The greatest common factor of two or more numbers is the largest number that divides evenly into all of them.

Other names for the same concept: greatest common divisor (GCD), highest common factor (HCF).

Method 1: Listing Factors

  1. List all factors of each number
  2. Identify the factors that appear in every list
  3. The largest one is the GCF

Example 1: GCF by Listing β€” GCF of 24 and 36

Factors of 24: 1,2,3,4,6,8,12,241, 2, 3, 4, 6, 8, 12, 24

Factors of 36: 1,2,3,4,6,9,12,18,361, 2, 3, 4, 6, 9, 12, 18, 36

Common factors: 1,2,3,4,6,121, 2, 3, 4, 6, 12

Greatest common factor: GCF(24,36)=12\text{GCF}(24, 36) = 12

Method 2: Prime Factorization

  1. Write the prime factorization of each number
  2. Identify the prime factors that appear in both factorizations
  3. For each shared prime, take the smaller exponent
  4. Multiply these together

Example 2: GCF by Prime Factorization β€” GCF of 48 and 60

Prime factorization of 48:

48=2Γ—24=2Γ—2Γ—12=2Γ—2Γ—2Γ—6=2Γ—2Γ—2Γ—2Γ—3=24Γ—348 = 2 \times 24 = 2 \times 2 \times 12 = 2 \times 2 \times 2 \times 6 = 2 \times 2 \times 2 \times 2 \times 3 = 2^4 \times 3

Prime factorization of 60:

60=2Γ—30=2Γ—2Γ—15=2Γ—2Γ—3Γ—5=22Γ—3Γ—560 = 2 \times 30 = 2 \times 2 \times 15 = 2 \times 2 \times 3 \times 5 = 2^2 \times 3 \times 5

Shared primes with smaller exponents:

  • 22: appears as 242^4 in 4848 and 222^2 in 6060 β€” take 222^2
  • 33: appears as 313^1 in both β€” take 313^1
  • 55: appears only in 6060 β€” not shared, skip it

GCF(48,60)=22Γ—3=4Γ—3=12\text{GCF}(48, 60) = 2^2 \times 3 = 4 \times 3 = 12

Example 3: GCF of Three Numbers

Find the GCF of 30, 45, and 75.

Prime factorizations:

30=2Γ—3Γ—530 = 2 \times 3 \times 5 45=32Γ—545 = 3^2 \times 5 75=3Γ—5275 = 3 \times 5^2

Primes common to all three: 33 and 55.

  • 33: smallest exponent is 313^1
  • 55: smallest exponent is 515^1

GCF(30,45,75)=3Γ—5=15\text{GCF}(30, 45, 75) = 3 \times 5 = 15

Least Common Multiple (LCM)

The least common multiple of two or more numbers is the smallest positive number that is a multiple of all of them.

Method 1: Listing Multiples

  1. List multiples of each number
  2. Find the smallest value that appears in every list

Example 4: LCM by Listing β€” LCM of 4 and 6

Multiples of 4: 4,8,12,16,20,24,28,…4, 8, 12, 16, 20, 24, 28, \ldots

Multiples of 6: 6,12,18,24,30,…6, 12, 18, 24, 30, \ldots

Common multiples: 12,24,36,…12, 24, 36, \ldots

Least common multiple: LCM(4,6)=12\text{LCM}(4, 6) = 12

Method 2: Prime Factorization

  1. Write the prime factorization of each number
  2. For each prime that appears in any factorization, take the larger (or largest) exponent
  3. Multiply these together

Example 5: LCM by Prime Factorization β€” LCM of 12 and 18

Prime factorizations:

12=22Γ—312 = 2^2 \times 3 18=2Γ—3218 = 2 \times 3^2

Take the larger exponent for each prime:

  • 22: larger exponent is 222^2 (from 1212)
  • 33: larger exponent is 323^2 (from 1818)

LCM(12,18)=22Γ—32=4Γ—9=36\text{LCM}(12, 18) = 2^2 \times 3^2 = 4 \times 9 = 36

Example 6: LCM of Three Numbers

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

Take the largest exponent for each prime:

  • 22: largest is 232^3 (from 88)
  • 33: largest is 313^1 (from 1212 or 1515)
  • 55: largest is 515^1 (from 1515)

LCM(8,12,15)=23Γ—3Γ—5=8Γ—3Γ—5=120\text{LCM}(8, 12, 15) = 2^3 \times 3 \times 5 = 8 \times 3 \times 5 = 120

GCF vs LCM: When to Use Which

Choosing between GCF and LCM depends on the type of problem.

SituationUseWhy
Splitting into equal groupsGCFYou need the largest group size that works for all quantities
Simplifying a fractionGCFDivide numerator and denominator by their GCF
Finding a common denominatorLCMThe LCD is the LCM of the denominators
Scheduling events that repeatLCMYou need the first time all cycles align
Cutting materials to equal sizeGCFLargest piece size that divides all lengths evenly

The GCF-LCM Relationship

For any two positive integers aa and bb:

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

This means if you know one, you can find the other:

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

Example 7: Using the Relationship

Find the LCM of 2020 and 3030 using their GCF.

GCF(20,30)=10\text{GCF}(20, 30) = 10 (both share 2Γ—5=102 \times 5 = 10).

LCM(20,30)=20Γ—3010=60010=60\text{LCM}(20, 30) = \frac{20 \times 30}{10} = \frac{600}{10} = 60

Word Problems

Example 8: GCF Word Problem

A florist has 3636 roses and 4848 carnations. She wants to make identical bouquets using all the flowers, with no flowers left over. What is the greatest number of bouquets she can make?

The number of bouquets must divide evenly into both 3636 and 4848, so we need the GCF.

36=22Γ—3248=24Γ—336 = 2^2 \times 3^2 \qquad 48 = 2^4 \times 3

GCF(36,48)=22Γ—3=12\text{GCF}(36, 48) = 2^2 \times 3 = 12

She can make 12 bouquets, each with 36Γ·12=336 \div 12 = 3 roses and 48Γ·12=448 \div 12 = 4 carnations.

Example 9: LCM Word Problem

Two buses depart from the same station. Bus A departs every 1515 minutes and Bus B departs every 2020 minutes. If both leave at 8:00 AM, when will they next depart at the same time?

We need the LCM of 1515 and 2020 β€” the first time both schedules align.

15=3Γ—520=22Γ—515 = 3 \times 5 \qquad 20 = 2^2 \times 5

LCM(15,20)=22Γ—3Γ—5=60\text{LCM}(15, 20) = 2^2 \times 3 \times 5 = 60

They will next depart together in 60 minutes, at 9:00 AM.

Real-World Application: Carpentry β€” Tile Layout

A carpenter is tiling a floor that measures 3636 inches by 4848 inches with square tiles. What is the largest square tile that fits perfectly with no cutting?

The tile side length must divide evenly into both 3636 and 4848:

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

The largest square tile is 1212 inches by 1212 inches. The floor will need (36Γ·12)Γ—(48Γ·12)=3Γ—4=12(36 \div 12) \times (48 \div 12) = 3 \times 4 = 12 tiles.

Real-World Application: Retail β€” Reorder Scheduling

A store reorders paper towels every 88 days and cleaning spray every 1212 days. The manager wants to schedule deliveries so that both products arrive on the same day whenever possible. How often do the orders coincide?

LCM(8,12)=24\text{LCM}(8, 12) = 24

Both orders will arrive on the same day every 24 days. The manager can arrange a single combined delivery on those days to reduce shipping costs.

Common Mistakes to Avoid

  1. Mixing up GCF and LCM. GCF is always smaller than or equal to the smaller number. LCM is always larger than or equal to the larger number. If your GCF is bigger than one of the inputs, you computed the LCM by mistake (or vice versa).
  2. Taking the wrong exponent. For GCF, take the smaller exponent of shared primes. For LCM, take the larger exponent of all primes. Swapping these is the most common error.
  3. Forgetting unshared primes in LCM. When computing LCM, include every prime that appears in any factorization β€” not just the shared ones.
  4. Not fully factoring. If you write 12=2Γ—612 = 2 \times 6 and stop, you have not reached prime factors (6=2Γ—36 = 2 \times 3). Always break down to primes.
  5. Using GCF when the problem calls for LCM. β€œWhen will two events coincide?” is an LCM problem. β€œWhat is the largest group size?” is a GCF problem.

Practice Problems

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

Problem 1: Find the GCF of 1616 and 4040.

16=2416 = 2^4, 40=23Γ—540 = 2^3 \times 5.

Shared prime: 22, smaller exponent is 23=82^3 = 8.

Answer: GCF(16,40)=8\text{GCF}(16, 40) = 8

Problem 2: Find the LCM of 99 and 1515.

9=329 = 3^2, 15=3Γ—515 = 3 \times 5.

Largest exponents: 323^2 and 515^1.

LCM=9Γ—5=45\text{LCM} = 9 \times 5 = 45

Answer: LCM(9,15)=45\text{LCM}(9, 15) = 45

Problem 3: Simplify 4256\frac{42}{56} using the GCF.

42=2Γ—3Γ—742 = 2 \times 3 \times 7, 56=23Γ—756 = 2^3 \times 7.

GCF(42,56)=2Γ—7=14\text{GCF}(42, 56) = 2 \times 7 = 14.

4256=42Γ·1456Γ·14=34\frac{42}{56} = \frac{42 \div 14}{56 \div 14} = \frac{3}{4}

Answer: 34\frac{3}{4}

Problem 4: Find the LCM of 66, 1010, and 1515.

6=2Γ—36 = 2 \times 3, 10=2Γ—510 = 2 \times 5, 15=3Γ—515 = 3 \times 5.

Largest exponents: 212^1, 313^1, 515^1.

LCM=2Γ—3Γ—5=30\text{LCM} = 2 \times 3 \times 5 = 30

Answer: LCM(6,10,15)=30\text{LCM}(6, 10, 15) = 30

Problem 5: A gardener has 5454 red tulips and 7272 yellow tulips. She wants to make identical bunches with no flowers left over. What is the maximum number of bunches?

GCF(54,72)\text{GCF}(54, 72):

54=2Γ—3354 = 2 \times 3^3, 72=23Γ—3272 = 2^3 \times 3^2.

Shared primes: 21Γ—32=2Γ—9=182^1 \times 3^2 = 2 \times 9 = 18.

Answer: She can make 18 bunches (each with 33 red and 44 yellow tulips).

Problem 6: Light A flashes every 66 seconds, Light B every 88 seconds, and Light C every 1010 seconds. All three flash at the same moment. How many seconds until they all flash together again?

LCM(6,8,10)\text{LCM}(6, 8, 10):

6=2Γ—36 = 2 \times 3, 8=238 = 2^3, 10=2Γ—510 = 2 \times 5.

Largest exponents: 232^3, 313^1, 515^1.

LCM=8Γ—3Γ—5=120\text{LCM} = 8 \times 3 \times 5 = 120

Answer: They all flash together again in 120 seconds (2 minutes).

Key Takeaways

  • The GCF is the largest number that divides evenly into all given numbers β€” use the smaller exponent of shared primes
  • The LCM is the smallest number that is a multiple of all given numbers β€” use the larger exponent of all primes
  • Listing method works well for small numbers; prime factorization is more efficient for larger numbers
  • Use GCF for splitting into equal groups, simplifying fractions, and finding the largest equal piece size
  • Use LCM for finding common denominators, scheduling repeating events, and synchronizing cycles
  • The relationship GCF(a,b)Γ—LCM(a,b)=aΓ—b\text{GCF}(a,b) \times \text{LCM}(a,b) = a \times b connects the two concepts and provides a shortcut

Return to Pre-Algebra for more topics in this section.

Last updated: March 29, 2026