An LCM calculator finds the least common multiple of two or more whole numbers: the smallest positive number that all of them divide into exactly. It is also called the lowest common multiple. Type your numbers, press Find LCM, and this calculator gives the answer along with the prime factors of each number, the highest powers it used, the highest common factor, and the first few common multiples, so you can see exactly how the result was reached.
What is the least common multiple?
A multiple of a number is that number multiplied by a whole number. The multiples of 4 are 4, 8, 12, 16, 20, 24 and so on, and the multiples of 6 are 6, 12, 18, 24, 30 and so on. The values that appear in both lists, namely 12, 24, 36, 48 and onwards, are the common multiples. The smallest of them is 12, so the LCM of 4 and 6 is 12. Every other common multiple is simply a multiple of the LCM.
How to use the LCM calculator
- Type your numbers in the box, with commas or spaces between them. You can enter up to twenty numbers.
- Press Find LCM.
- Read the answer at the top of the result panel.
- Check the working. The panel lists each number's prime factors and the highest power of each prime. For two numbers, it also shows the division formula.
How to find the LCM by prime factorisation
Write each number as a product of primes. Then take every prime that appears in any of the numbers, use its highest power, and multiply them together.
- 18 = 2 × 3²
- 24 = 2³ × 3
The primes involved are 2 and 3. The highest power of 2 is 2³ and the highest power of 3 is 3², so the LCM is 8 × 9 = 72. This method works just as well for three, four or more numbers.
How to find the LCM using the HCF
For two numbers there is a neat shortcut: multiply them together and divide by their highest common factor.
LCM(a, b) = a × b ÷ HCF(a, b)
For 18 and 24, the HCF is 6, so the LCM is 18 × 24 ÷ 6 = 432 ÷ 6 = 72. That matches the answer from prime factorisation. Finding the HCF first is quick because Euclid's division method needs only a few steps, which makes this approach especially handy for large numbers.
Finding the LCM of more than two numbers
The formula above applies to only two numbers at once, but you can use it repeatedly. Find the LCM of the first two numbers, then find the LCM of that answer and the third, and continue to the end of the list. For 4, 6 and 10, the LCM of 4 and 6 is 12, and the LCM of 12 and 10 is 60, so the LCM of all three is 60.
Using the LCM to add fractions
The least common multiple of the denominators of two fractions is called the lowest common denominator, and it is the most common everyday use of the LCM. To add 2/21 and 1/6, find the LCM of 21 and 6, which is 42. Convert each fraction so that it has this denominator: 2/21 becomes 4/42 and 1/6 becomes 7/42. Now the two fractions can be added directly, giving 11/42. Using the lowest common denominator keeps the numbers small and often saves you from having to simplify at the end.
Other places the LCM appears
- Repeating events. If one bus leaves every 12 minutes and another every 18 minutes, they next leave together after the LCM of 12 and 18, which is 36 minutes.
- Gears. When two meshing gears have different numbers of teeth, the LCM tells you when the same teeth will line up again.
- Buying in packs. If one item comes in packs of 6 and a matching item in packs of 8, you need 24 of each to have the same number with none left over.
LCM of numbers that share no factors
When two numbers are coprime, meaning their highest common factor is 1, the LCM is simply the two numbers multiplied together. For instance, 9 and 28 share no factor other than 1, so their LCM is 9 × 28 = 252. If one number divides the other exactly, the LCM is just the larger number: the LCM of 5 and 15 is 15.
Common mistakes
- Mixing up the LCM and the HCF. The LCM can never be smaller than the largest number in your list.
- Using the lowest powers of the primes. That gives the HCF. For the LCM you always need the highest power.
- Multiplying everything together. The product is a common multiple, but it is often not the smallest one.
- Typing commas inside a number. Enter 1000, not 1,000, because a comma separates numbers here.
How to check your answer
You can test any answer in a moment. Divide the LCM by each of your numbers, and every division must come out exactly. Next, make sure that it really is the smallest possible value by looking at the results of those divisions: taken together, they should share no common factor other than 1. For 18 and 24, dividing 72 gives 4 and 3, which have nothing in common, so 72 is the smallest. If the results still share a factor, your answer is a common multiple, but not the lowest one, and you can divide it by that shared factor to reach the true LCM.
Related math tools
Find the highest common factor with the HCF calculator, add fractions with the fraction calculator, and simplify proportions with the ratio calculator.
What next
Use this often? Add LCM to your Home screen.
Frequently asked questions
How does the LCM calculator work?
It finds the highest power of every prime in your numbers and multiplies them together, giving the smallest number they all divide into.
What is the LCM of 4 and 6?
The LCM of 4 and 6 is 12, the smallest number that both divide into exactly.
How do I find the LCM of two numbers quickly?
Multiply the two numbers and divide by their highest common factor.
Is the LCM the same as the lowest common denominator?
The lowest common denominator is the LCM of the denominators of a set of fractions.
Can the LCM be equal to one of the numbers?
Yes. If one number divides the other exactly, the LCM is the larger number.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.