LCM Calculator (Least Common Multiple)
Type two to ten positive whole numbers. See the least common multiple, greatest common factor and steps.
Find the LCM of your numbers
Loading the calculator. It needs JavaScript.
How to find the LCM
There are two good ways. Both give the same answer.
Prime factors. Break each number into primes. For each prime, keep the highest power that shows up in any number. Multiply those together. For 8, 9 and 21:
- 8 = 2 x 2 x 2 = 2^3
- 9 = 3 x 3 = 3^2
- 21 = 3 x 7
The highest powers are 2^3, 3^2 and 7. So the LCM is 8 x 9 x 7 = 504. The table above shows this working for your own numbers. Its last row checks the answer: 504 / 8 = 63, 504 / 9 = 56 and 504 / 21 = 24, all whole numbers.
The GCF shortcut. For two numbers, LCM = (a x b) / GCF. For 21 and 6, the GCF is 3, so the LCM is 126 / 3 = 42. This is the method the tool uses, because it stays fast even for huge numbers. To keep the middle numbers small, it divides first, then multiplies.
Listing multiples
You can also just list multiples until two lists meet. For 4 and 6:
- Multiples of 4: 4, 8, 12, 16, 20, 24
- Multiples of 6: 6, 12, 18, 24
The first match is 12. That is the LCM. The next match, 24, is the next common multiple. Listing is fine for small numbers but slow for big ones, so use the prime or GCF method instead.
What the LCM is used for
- Adding fractions. The LCM of the bottom numbers is the smallest common denominator. For 1/4 + 1/6, use 12 as the bottom number. Add 3/12 and 2/12 to get 5/12.
- Repeating schedules. If one bus comes every 12 minutes and another every 18, they arrive together every 36 minutes.
- Gears and patterns. Two repeating cycles line up again after the LCM of their lengths.
Common mistakes
- Mixing up LCM and GCF. The LCM is never smaller than your biggest number. The GCF is never bigger than your smallest.
- Multiplying the numbers together. That gives a common multiple, but not always the least one. 4 x 6 = 24, but the LCM is 12.
- Using decimals. The LCM is for whole numbers, so entries like 6.5 are skipped. A minus sign is dropped, because -4 and 4 have the same LCM with any number.
- Adding zero. Every number divides 0, so a list with 0 has no smallest positive common multiple. Zero is outside this calculator's range. If you type it, the tool asks you to remove it instead of answering for a different list.
- Commas inside big numbers. 12,345 is read as one number. To list 12 and 345, put a space after the comma.
Limits of this tool
You can enter 2 to 10 positive whole numbers of up to 18 digits each. The math uses exact big integers, so the answer never rounds. Prime factor steps show for numbers up to one trillion. Larger numbers still get the right LCM and GCF, but no factor table, because factoring huge numbers is slow for any computer.
Questions
What is the LCM of two numbers?
It is the smallest positive number that both numbers divide into evenly. The LCM of 4 and 6 is 12, because 12 is the first number on both lists of multiples.
Is the lowest common multiple the same as the least common multiple?
Yes. Least common multiple, lowest common multiple and smallest common multiple all mean the same thing. This calculator answers all of them.
How do I find common multiples of two numbers?
Find the LCM first. Every common multiple is the LCM times 1, 2, 3 and so on. The calculator lists the first eight.
What is the difference between LCM and GCF?
The LCM is the smallest number both numbers fit into. The GCF is the biggest number that fits into both. For 12 and 18, the LCM is 36 and the GCF is 6.
What is the LCM when one number is a multiple of the other?
It is the bigger number. The LCM of 5 and 20 is 20.
Can I find the LCM of more than two numbers?
Yes. Work out the LCM of the first two, then the LCM of that answer and the next number, and keep going. The calculator does this for up to ten numbers.
Facts checked 2026-11-29. Sources: Least Common Multiple (Wolfram MathWorld), Least common multiple (Wikipedia).
