Learn how to find the Least Common Multiple (LCM) using prime factorization and the Euclidean algorithm. Covers methods, worked examples, and real-world uses in fractions and scheduling.
The Least Common Multiple (LCM) is the smallest positive integer that is divisible by all the given numbers without a remainder. It is the foundation for adding and subtracting fractions, finding common denominators, synchronizing repeating events in scheduling, and solving a wide range of number theory problems. Understanding how to calculate LCM — and why it works — makes fractions and periodic problems far easier to handle.
The LCM of two or more numbers is the smallest number that appears in the multiplication tables of all the given numbers.
This listing method works for small numbers, but for larger numbers, prime factorization or the Euclidean algorithm are far more efficient.
Step 1: Find the prime factorization of each number.
Step 2: Take every prime factor that appears, using the highest power it appears in any one number.
Step 3: Multiply these together.
(Take 2² from 12, 3² from 18 — the highest power of each prime across all numbers.)
The relationship between LCM and GCD:
LCM(a, b) = |a × b| ÷ GCD(a, b)
First find GCD using the Euclidean algorithm (divide larger by smaller, replace larger with remainder, repeat until remainder = 0).
This method is especially efficient for large numbers where prime factorization becomes slow.
The LCM of the denominators gives the Least Common Denominator (LCD), which lets you add fractions with different denominators:
5/12 + 7/18: LCM(12, 18) = 36 → 15/36 + 14/36 = 29/36
The LCD is always the LCM of the denominators — converting to the LCD is the same as finding the LCM.
Two buses leave the same stop — Bus A every 8 minutes, Bus B every 12 minutes. When do they next leave together?
LCM(8, 12) = 24 → they depart together every 24 minutes
This is the classic "scheduling synchronization" problem that appears in operations research, manufacturing, and logistics.
If one drum pattern repeats every 3 beats and another every 4 beats, both restart together every LCM(3, 4) = 12 beats — making 12 beats the actual period of the combined pattern.
| LCM | HCF / GCD | |
|---|---|---|
| Full name | Least Common Multiple | Highest Common Factor |
| Definition | Smallest number divisible by all | Largest number that divides all |
| Prime factorization rule | Highest power of each prime | Lowest power of common primes |
| Result size | ≥ largest input | ≤ smallest input |
| Used for | Adding fractions, scheduling | Simplifying fractions, dividing |
Use our free LCM Calculator — results appear as you type. No sign-up needed!
🚀 Open LCM Calculator Free