LCM Calculator

Type two or more numbers to find their least common multiple, with the working laid out four different ways.

LCM36
GCF6
Try

How it was worked out

Break each number into primes, then keep the highest power of each prime

PrimeHighest powerFound in

What the least common multiple means

A multiple is what you get when you keep adding a number to itself. The multiples of 4 are 4, 8, 12, 16 and so on, and the multiples of 6 are 6, 12, 18, 24. The first number on both lists is 12, so that's the LCM of 4 and 6.

Think of two buses that leave the same stop together, one every 12 minutes and one every 18. They'll next leave together after 36 minutes, because 36 is the LCM of 12 and 18.

Three ways to find it by hand

List the multiples

This is the easiest to understand and works well with small numbers. It gets tedious fast with anything bigger.

12: 12, 24, 36. 18: 18, 36. First match: 36

Use prime factors

Write each number as a product of primes. For each prime, keep the highest power you can see in any of the numbers, then multiply those together.

12 = 2² × 3. 18 = 2 × 3². Highest powers: 2² × 3² = 36

Use the GCF

For two numbers, multiply them and divide by their greatest common factor. This is often the quickest way on a calculator.

12 × 18 ÷ 6 = 216 ÷ 6 = 36

The calculator also shows the division method, sometimes called the ladder. It's a tidy way to handle three or more numbers on paper.

Shortcuts worth knowing

One number divides the other

The LCM is the larger number. The LCM of 6 and 18 is 18, because 18 is already a multiple of 6.

The numbers share no factors

The LCM is their product. This always happens with two different primes, so the LCM of 7 and 13 is 91.

The numbers are next to each other

Consecutive numbers never share a factor, so you can multiply them straight away. The LCM of 8 and 9 is 72.

Where you'll actually use it

1/4 + 1/6 = 5/12

Adding fractions

The LCM of 4 and 6 is 12, which makes it the lowest common denominator. You get 3/12 + 2/12.

10 and 8

Buying in packs

If hot dogs come in 10s and buns in 8s, you need 40 of each to match exactly. That's 4 packs of hot dogs and 5 of buns.

21 and 30 teeth

Gears

The same two teeth meet again after 210 teeth have passed. With 20 and 30 teeth it's only 60, so engineers often choose counts that spread the wear around.

13 and 17 years

Cicadas

Some cicada broods emerge every 13 years and others every 17. A given pair can only come out in the same year once every 221 years. In 2024 two neighbouring broods in the US did, for the first time since 1803.

LCM chart for 1 to 12

Find one number along the top and the other down the side. Select any answer to see its working.

Need the factors instead?

The LCM builds upwards from your numbers, and factors break them down. The factor calculator lists every factor, and the GCF calculator finds the largest one your numbers share.

Where answers usually go wrong

Multiplying everything together

That gives you a common multiple, but not always the least one. 4 × 6 is 24, and the LCM is 12.

Mixing it up with the GCF

The LCM is at least as big as your largest number, and the GCF is at most as big as your smallest. If your answer is smaller than one of the numbers, you've found a factor.

Keeping the lowest powers

The LCM takes the highest power of each prime, and the GCF takes the lowest. It's easy to swap them when you're moving quickly.

Stretching the formula to three numbers

Multiplying and dividing by the GCF only works for two. For 2, 4 and 6 it would give 48 ÷ 2 = 24, and the real LCM is 12. Work through them a pair at a time instead.

Try these yourself

Work each one out on paper before you open it.

What is the LCM of 8 and 12?

24. 8 is 2³ and 12 is 2² × 3, so you keep 2³ × 3.

What is the LCM of 6, 10 and 15?

30. Each prime 2, 3 and 5 appears once at most, and 2 × 3 × 5 = 30.

What is the LCM of 9 and 28?

252. They share no factors, so you can multiply them: 9 × 28 = 252.

Common questions

What does LCM stand for?

Least common multiple. Some textbooks call it the lowest common multiple, and it means the same thing.

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. The working is identical, and only the setting changes.

What is the LCM of 1 to 10?

2,520. It's the smallest number that all of 1 to 10 divide into evenly. Press "1 to 10" above to see the working.

Why can't I use zero or negative numbers?

Every number's multiples include 0, so "least" stops meaning anything useful, and the LCM is defined for numbers above zero. For negative numbers, ignore the signs and use the positive values.

How large can the numbers be?

You can enter up to 20 numbers, each up to 1,000,000,000,000. The answer itself can be much longer, and it's never rounded. Listing multiples only appears when the lists are short enough to read.

Are my numbers sent anywhere?

No. The calculation runs in your browser, so your numbers never reach our server. A link you copy from the address bar can contain them.