How it works
The LCM calculator finds the least common multiple of two to six whole numbers: the smallest positive number that every one of them divides into evenly. It shows the prime factorizations, the shortcut through the GCF for two numbers, and the multiples of each number lining up.
With prime factors, the LCM is the product of every prime that appears in any of the numbers, each taken the largest number of times it appears. For two numbers there's a shortcut: LCM = a × b ÷ GCF, because the product counts the shared factors twice.
The LCM of the denominators is the least common denominator used to add or subtract fractions.
LCM = product of all primes, each to its largest powerLCM(a, b) = a × b ÷ GCF(a, b)LCM(a, b, c) = LCM(LCM(a, b), c)If GCF(a, b) = 1, then LCM(a, b) = a × b
Frequently asked questions
How do you find the least common multiple?
Write each number in prime factors and multiply every prime that appears, each the greatest number of times it appears in any one number. For 12 = 2²×3 and 18 = 2×3², the LCM is 2²×3² = 36.
What is the LCM of 6 and 8?
24. The multiples of 6 are 6, 12, 18, 24…, and of 8 are 8, 16, 24…; 24 is the first in both. With the shortcut: 6 × 8 ÷ 2 = 24.
What is the least common denominator?
The LCM of the denominators. To add 1/6 + 1/8, use 24: 4/24 + 3/24 = 7/24.
What's the relationship between GCF and LCM?
For two numbers, GCF × LCM = a × b. So LCM = a × b ÷ GCF; for 12 and 18, 216 ÷ 6 = 36.
How do you find the LCM of three numbers?
Combine two at a time: LCM(a, b, c) = LCM(LCM(a, b), c), or use prime factors with the largest power of every prime. LCM(4, 6, 10) = 60.