GCF vs. LCM: How to Tell Them Apart and Solve Both Fast
Stop mixing up Greatest Common Factor (GCF) and Least Common Multiple (LCM). Learn prime factorization, Euclidean steps, and word-problem clues.
Students and developers mix up Greatest Common Factor (GCF / GCD) and Least Common Multiple (LCM) constantly — mainly because “Greatest” sounds big even though GCF shrinks things, and “Least” sounds small even though LCM grows larger!
Keep one anchor rule in mind:
- GCF cannot exceed the smallest number you started with.
- LCM cannot be smaller than the largest number you started with.
Side-by-Side Example: 24 and 36
Break both numbers into primes using the Prime Factorization Calculator:
24 = 2³ × 3¹36 = 2² × 3²
Now apply two contrasting rules:
- GCF (Intersection — lowest shared powers): Both share prime
2(minimum power2²) and prime3(minimum power3¹). Multiply them:2² × 3¹ = 4 × 3 = 12. So12is the largest integer dividing both24and36cleanly (24/36reduces by12to2/3). Check any list of numbers in the GCF Calculator. - LCM (Union — highest powers across all inputs): Pick the highest exponent for
2(2³) and3(3²). Multiply them:2³ × 3² = 8 × 9 = 72. So72is the first number both24and36divide into evenly.
Notice the built-in identity check: 12 × 72 = 864, and 24 × 36 = 864!
Word-Problem Clue Cheat Sheet
Choose GCF When You Are Dividing Up
- Cutting two ribbons of lengths
24 cmand36 cminto the longest equal pieces with zero waste (12 cm). - Packing
24apples and36oranges into identical gift baskets with maximum basket count (12baskets). - Reducing fractions or factoring common terms out of an algebraic expression.
Choose LCM When Cycles Line Up
- Two buses leave at the same time — one repeats every
24minutes, the other every36minutes — and you want when they arrive together again (72minutes later). - Tiling squares along a grid until edges match.
- Finding the least common denominator (LCD) before adding or subtracting fractions.
Tools used in this guide
Free, and they run in your browser — nothing is uploaded. See every tool on the Math Calculators page.
Frequently asked questions
What is the quickest sanity check between GCF and LCM?
GCF (Greatest Common Factor) is always less than or equal to the smallest input number because factors divide into your numbers. LCM (Least Common Multiple) is always greater than or equal to the largest input number because multiples grow by multiplying your numbers.
How do GCF and LCM relate mathematically for two numbers?
For any two positive integers a and b, GCF(a, b) × LCM(a, b) = a × b. Finding GCF first via Euclid's algorithm gives LCM immediately as (a × b) ÷ GCF(a, b).
Which word problems need LCM vs GCF?
Use GCF when splitting items evenly into identical groups or simplifying fractions to lowest terms. Use LCM when scheduling repeating events to happen together again or finding a common denominator for adding fractions.
Does prime factorization work for three or more numbers?
Yes. Factor every integer into primes: take the lowest exponent of shared primes only for GCF, and the highest exponent of every prime appearing anywhere for LCM.