Use this free LCM calculator to find the least common multiple of two or more whole numbers. Enter your numbers, and the calculator shows the LCM along with the steps in three methods: listing multiples, prime factorization, and the GCF formula. It also shows the greatest common factor (GCF) for comparison. No signup needed.
Enter 2 to 10 positive whole numbers separated by commas, spaces, or new lines.
The first common multiple is highlighted.
12, 18 or 15 20 25.You can enter up to 10 numbers. The calculator does not accept decimals or negative numbers. For a decimal problem, multiply every number by a power of 10 first.
A multiple of a number is what you get when you multiply it by 1, 2, 3, and so on. The multiples of 4 are 4, 8, 12, 16, 20, 24, …
A common multiple of two numbers is a number that is a multiple of both. The least common multiple (LCM) is the smallest positive common multiple.
For 4 and 6:
The LCM is also called the lowest common multiple or the smallest common multiple.
Write the multiples of each number until you find the first one they share.
LCM(a, b) = (a × b) ÷ GCF(a, b)
Equivalently, GCF(a, b) × LCM(a, b) = a × b.
For more than two numbers, find the LCM of the first two, then find the LCM of that result and the next number, and so on.
When two numbers share no common factor (they are coprime), the LCM is their product.
If a is a factor of b, then LCM(a, b) = b.
Divide by 2: (6, 9, 15). Divide by 3: (2, 3, 5). No prime divides two of them.
Add 1/4 + 1/6. The least common denominator is the LCM of 4 and 6, which is 12.
One bus leaves every 12 minutes, and another leaves every 15 minutes. They both leave at 8:00 a.m. When do they next leave together?
Two gears have 24 and 36 teeth. After how many teeth do they return to the same starting position?
One task is done every 4 days, and another every 6 days, starting on day 0.
LCM(1, 2, …, 10) = 2,520. This is the smallest number that all of 1 to 10 divide evenly. (For 1 to 20, it is 232,792,560.)
| Numbers | LCM |
|---|---|
| 2, 3 | 6 |
| 3, 4 | 12 |
| 4, 5 | 20 |
| 4, 6 | 12 |
| 5, 6 | 30 |
| 6, 8 | 24 |
| 6, 9 | 18 |
| 8, 12 | 24 |
| 9, 12 | 36 |
| 10, 15 | 30 |
| 12, 15 | 60 |
| 14, 21 | 42 |
| 16, 24 | 48 |
| 20, 30 | 60 |
| LCM (least common multiple) | GCF (greatest common factor) | |
|---|---|---|
| What it is | The smallest number that both numbers divide into | The largest number that divides both numbers |
| Size | At least as large as the bigger number | At most as large as the smaller number |
| Used for | Common denominators, schedules, and repeating cycles | Simplifying fractions and splitting into equal groups |
| Example (12, 18) | 36 | 6 |
The two are linked: GCF × LCM = a × b for two numbers.
The smallest positive number that is a multiple of every number in your set. The LCM of 4 and 6 is 12.
List the multiples of each number until you find the first match, or use prime factorization, or use LCM = (a × b) ÷ GCF. For 12 and 18, the LCM is 36.
Write each number as a product of primes, take the highest power of each prime that appears, and multiply. For 12 = 2² × 3 and 18 = 2 × 3², the LCM is 2² × 3² = 36.
Find the LCM of two of them, then find the LCM of that result and the third. For 15, 20, and 25, the LCM is 300.
LCM(a, b) = (a × b) ÷ GCF(a, b).
Their product, since they share no common factors. LCM(3, 5) = 15.
The multiple. For example, LCM(9, 27) = 27.
The LCM is the smallest common multiple, and the GCF is the largest common factor. For 12 and 18, the LCM is 36 and the GCF is 6.
Find the LCM of the denominators and use it as the common denominator. For 1/4 + 1/6, the LCM of 4 and 6 is 12, so 3/12 + 2/12 = 5/12.
It is the LCM of the denominators of the fractions.
By convention it is 0, but most calculators and textbooks only use positive whole numbers.
Yes. It is free, with no registration and no limits.
It uses exact integer arithmetic, so the answer is exact, even for large numbers.
A few of the most-used tools in each hub.
This calculator is for general and educational use. Results are exact for positive whole numbers. Try the problem by hand first and use the calculator to check your work. Follow your teacher’s rules on the method and the form of the answer.