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.

LCM Calculator GCF Calculator

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.
LCM CalculatorFind the Least Common Multiple (LCM) of two or more numbers.Calculate LCM & Steps

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:

  1. GCF (Intersection — lowest shared powers): Both share prime 2 (minimum power 2²) and prime 3 (minimum power 3¹). Multiply them: 2² × 3¹ = 4 × 3 = 12. So 12 is the largest integer dividing both 24 and 36 cleanly (24/36 reduces by 12 to 2/3). Check any list of numbers in the GCF Calculator.
  2. LCM (Union — highest powers across all inputs): Pick the highest exponent for 2 (2³) and 3 (3²). Multiply them: 2³ × 3² = 8 × 9 = 72. So 72 is the first number both 24 and 36 divide 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 cm and 36 cm into the longest equal pieces with zero waste (12 cm).
  • Packing 24 apples and 36 oranges into identical gift baskets with maximum basket count (12 baskets).
  • 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 24 minutes, the other every 36 minutes — and you want when they arrive together again (72 minutes 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.