Skip to content

GCF and LCM: Greatest Common Factor and Least Common Multiple

Mathematics Knowledge · 9 min lesson

The greatest common factor and least common multiple sound alike but answer opposite questions. This lesson shows you how to find each one from prime factors, how to tell which one a problem needs, and how to check your answer in seconds.
Greatest Common Factor and Least Common Multiple

What you will learn

Find the GCF and LCM of two numbers from their prime factors and pick the right one for a problem.

The lesson

The greatest common factor (GCF) of two numbers is the largest number that divides evenly into both. The least common multiple (LCM) is the smallest number that both divide into evenly. One looks down for a shared divisor. The other looks up for a shared multiple.

↓ GCF

Largest shared factor. It is never bigger than the smaller number. GCF of 16 and 40 is 8.

↑ LCM

Smallest shared multiple. It is never smaller than the larger number. LCM of 8 and 6 is 24.

Method 1: list them

For small numbers, listing works. Factors of 16: 1, 2, 4, 8, 16. Factors of 40: 1, 2, 4, 5, 8, 10, 20, 40. The biggest one in both lists is 8, so the GCF is 8.

Multiples of 8: 8, 16, 24, 32. Multiples of 6: 6, 12, 18, 24. The first one in both lists is 24, so the LCM is 24.

Method 2: use prime factors

For bigger numbers, write each number as a product of primes. Then:

  • GCF: take only the primes the numbers share, using the smaller power of each.
  • LCM: take every prime that appears in either number, using the larger power of each.
60 = 2 × 2 × 3 × 572 = 2 × 2 × 2 × 3 × 352 2323sharedGCF = shared middle = 2 × 2 × 3 = 12LCM = all factors shown = 2 × 2 × 3 × 5 × 2 × 3 = 360
Shared primes go in the middle. The middle gives the GCF. Everything in the picture, counted once, gives the LCM.

In exponent form, 60 = 2² × 3 × 5 and 72 = 2³ × 3². The GCF uses the smaller powers of the shared primes: 2² × 3 = 12. The LCM uses the larger power of every prime: 2³ × 3² × 5 = 360.

Check with the product rule

For any two positive whole numbers, GCF × LCM = the first number × the second number. Here 12 × 360 = 4,320 and 60 × 72 = 4,320.

Which one does the problem want?

SituationUseExample
Simplify a fractionGCF60/72: divide top and bottom by 12 to get 5/6
Split items into the largest equal groupsGCF24 red and 36 blue pens make 12 identical packs
Add fractions with different denominatorsLCM1/8 + 1/6 = 3/24 + 4/24 = 7/24
When will repeating events line up again?LCMSchedules, lights, gears or laps
Key idea

GCF: shared primes, smaller powers, answer is small. LCM: all primes, larger powers, answer is big. Splitting into groups points to GCF; things repeating together points to LCM.

Worked example

Problem: One shuttle leaves the main gate every 12 minutes. Another leaves every 20 minutes. Both leave together at 8:00 a.m. When will they next leave together?

  1. Choose GCF or LCMTwo repeating schedules lining up again: this is an LCM question.
  2. Factor12 = 2² × 3 and 20 = 2² × 5.
  3. Build the LCMTake every prime at its largest power: 2² × 3 × 5 = 60.
  4. Answer the question60 minutes after 8:00 a.m. is 9:00 a.m.

Answer: 9:00 a.m.

Faster method

Count up by the larger number and stop at the first one the smaller number divides: 20, 40, 60. 20 and 40 are not multiples of 12, but 60 is.

Practice with a hint

Hint: Write each number as a product of primes. Keep only the primes both lists share, using the smaller power each time, and multiply them.

Try it on your own

You do not need to find the two numbers. Think about which rule connects the GCF, the LCM and the product.

Common mistakes

  • Answering with the wrong one. Asked for the LCM of 14 and 21, choosing their GCF, 7, is wrong. The LCM is 42.
  • Just multiplying the numbers for the LCM. 8 × 6 = 48 is a common multiple, but not the least one. The LCM is 24.
  • Using larger powers for the GCF. For 2² × 3 and 2³ × 3², the GCF uses 2² and 3, giving 12, not 72.
  • Including primes that are not shared in the GCF. If a prime appears in only one number, it cannot divide both, so it stays out of the GCF.
  • Getting an impossible size. A GCF bigger than the smaller number, or an LCM smaller than the larger number, is always wrong.

Next step

  • GCF: shared primes at their smaller powers.
  • LCM: every prime at its larger power.
  • GCF × LCM = the product of the two numbers.
  • Equal groups or simplifying: GCF. Events repeating together or common denominators: LCM.

Practice this with the free Mathematics Knowledge practice test, then review key ideas with the Mathematics Knowledge flashcards.

Reviewed by Mock ASVAB Test Team · 2026-11-28