How to use it
- Type two or more whole numbers separated by commas, such as
4, 6, 10. - The prime factors are shown side by side, and for two numbers also the shortcut through the greatest common divisor.
- The address bar holds the numbers, and the same link works on the greatest common divisor page.
- The calculator works exactly up to 16 digits. A larger multiple is not rounded. The calculator says it is too large instead.
What is the least common multiple?
The least common multiple, lcm, is the smallest positive whole number that all of the numbers divide. The multiples of 4 are 4, 8, 12, 16 and so on, those of 6 are 6, 12, 18, and 12 is the first in both. Add 10 and it becomes lcm(4, 6, 10) = 60.
With prime factors
Factorize each number and take every prime that occurs, to its highest power.
- 4 = 2²
- 6 = 2 · 3
- 10 = 2 · 5
The primes are 2, 3 and 5, and the highest power of 2 is 2². lcm = 2² · 3 · 5 = 60.
Through the greatest common divisor
For two numbers, gcd(a, b) · lcm(a, b) = a · b, so lcm(a, b) = a · b / gcd(a, b). For 84 and 126, whose gcd is 42, that is 84 · 126 / 42 = 10,584 / 42 = 252. The identity holds for two numbers at a time only. With more, take them in turn: lcm(a, b, c) = lcm(lcm(a, b), c).
The common denominator
A common reason to look up an lcm is adding fractions. Two fractions are added over a common denominator, and the smallest one is the lcm of the denominators, which is why it is also called the least common denominator (LCD). In 1/4 + 1/6, lcm(4, 6) = 12, so 1/4 + 1/6 = 3/12 + 2/12 = 5/12.
Two shortcuts
- Coprime numbers share no factor, so the lcm is their product: lcm(7, 13) = 91.
- When one number divides the other, the lcm is the larger: lcm(6, 18) = 18.
How a single number is built from primes is on the prime factorization page.
Common mistakes
- Multiplying the numbers and stopping there. 6 · 8 = 48 is a common multiple, but the least is 24. The product is the lcm only when the numbers share no factor.
- Adding powers instead of taking the highest. Take the highest power of each prime, not the sum. For 12 = 2² · 3 and 18 = 2 · 3², the lcm is 2² · 3² = 36.
The formula and more examples are on the least common multiple formula page.
Common questions
Where is the lcm used outside a textbook?
Whenever two things repeat at different rates and you want to know when they line up. One bus runs every
12 minutes and another every 18. If they leave together now, they do so again in lcm(12, 18) = 36
minutes.
How do I find the lcm of three numbers?
Take two at a time. lcm(4, 6, 10) = lcm(lcm(4, 6), 10) = lcm(12, 10) = 60. With primes, take the highest
power of every prime that appears in any of the numbers: 2² · 3 · 5 = 60.