Explore all tools
December 1, 2026

How to Find the Least Common Multiple (2 Methods + Examples)

How to Find the Least Common Multiple (2 Methods + Examples)

Two buses leave a station on different schedules — one every 12 minutes, one every 18 minutes. They just left together at noon. When will they next leave together? The answer is a single number, and it is the same number that decides the denominator when you add fractions, the moment two machines need servicing on the same day, and the point where two repeating cycles line up again. That number is the least common multiple.

The least common multiple (LCM) of two or more numbers is the smallest number that every one of them divides into exactly, with no remainder. There are two reliable ways to find it, and this guide works through both with fresh examples. Or skip the handwriting and use our free LCM Calculator — it shows the prime factorisation and the answer together.

What the LCM Actually Means

Take 12 and 18. The multiples of 12 are 12, 24, 36, 48, 60, 72… The multiples of 18 are 18, 36, 54, 72, 90… The numbers that appear in both lists — the common multiples — are 36, 72, 108… The smallest of them is 36, so LCM(12, 18) = 36.

Back to the buses: the 12-minute bus and the 18-minute bus next leave together 36 minutes after noon, at 12:36. That one fact does real work far beyond timetables. The fraction 1/12 + 1/18 needs a common denominator, and the smallest one that works is 36: the sum becomes 3/36 + 2/36 = 5/36. And two machines serviced every 14 and 21 days line up for a joint service day after LCM(14, 21) = 42 days.

Method 1: List the Multiples

How it works: write out the multiples of each number until one appears in every list. The first number that appears everywhere is the LCM.

Worked example: LCM(6, 8). The multiples of 6 run 6, 12, 18, 24, 30… The multiples of 8 run 8, 16, 24, 32… The first number on both lists is 24, so LCM(6, 8) = 24.

Worked example: LCM(9, 12). The multiples of 9 are 9, 18, 27, 36, 45… The multiples of 12 are 12, 24, 36, 48… The first shared multiple is 36, so LCM(9, 12) = 36. Two buses on 9-minute and 12-minute schedules next leave together after 36 minutes.

This method is the easiest to understand and the best one to teach, because you can see exactly why the answer is what it is. Its weakness is speed: when the answer runs into the hundreds, the lists get long and it is easy to skip a multiple by mistake. Use it for small numbers, and reach for the next method when the numbers grow.

Method 2: Prime Factorisation

How it works: break each number into its prime factors, take every prime at its highest power in any one factorisation, and multiply. (This is the mirror image of the GCF, which takes shared primes at their lowest power.)

Worked example: LCM(12, 18). Break them down: 12 = 2² × 3 and 18 = 2 × 3². The prime 2 reaches its highest power 2² in 12. The prime 3 reaches its highest power 3² in 18. Multiply: 2² × 3² = 4 × 9 = 36. So LCM(12, 18) = 36 — the same answer the listing method gave, reached faster.

Worked example: LCM(24, 36). 24 = 2³ × 3 and 36 = 2² × 3². Take 2 at its highest power, 2³, and 3 at its highest power, 3². Multiply: 8 × 9 = 72. So LCM(24, 36) = 72. Check it: 72 ÷ 24 = 3 and 72 ÷ 36 = 2, both exact.

Worked example with three numbers: LCM(4, 6, 10). 4 = 2², 6 = 2 × 3 and 10 = 2 × 5. A prime counts at the highest power it reaches anywhere: 2 reaches 2², 3 reaches 3¹, and 5 reaches 5¹. Multiply: 4 × 3 × 5 = 60. So LCM(4, 6, 10) = 60 — the smallest timetable on which a 4-minute, a 6-minute and a 10-minute cycle all line up together.

Prime factorisation is the method our LCM Calculator uses, and it shows the factorisation of every number you enter in a table, so each step is checkable instead of taken on trust.

LCM, GCF and the Identity That Connects Them

The LCM has a close partner: the greatest common factor (GCF). Where the LCM is the smallest number both numbers divide into, the GCF is the largest number that divides both. The two are tied together by one neat identity — for two numbers only:

LCM(a, b) × GCF(a, b) = a × b

For 8 and 12: LCM = 24 and GCF = 4. Check the identity: 24 × 4 = 96, and 8 × 12 = 96. It matches — a useful cross-check when you have worked out one of the two and want to verify the other. For three or more numbers the identity breaks, but the prime method does not, which is why the calculator accepts a whole list. If you need the GCF itself, our free GCF Calculator finds it the same way, with the factorisations shown.

Everyday Uses of the LCM

Adding and subtracting fractions. The fraction 1/15 + 1/20 looks awkward until you find the least common denominator: LCM(15, 20) = 60. Convert: 1/15 = 4/60 and 1/20 = 3/60, so the sum is 7/60. Every fraction addition you have ever done was an LCM problem in disguise — the LCM simply gives the smallest denominator, so the numbers stay manageable.

Timetables and schedules. A bus every 12 minutes and a tram every 18 minutes that leave together will next leave together after 36 minutes. A machine serviced every 14 days and another every 21 days share a service day every 42 days. Whenever two cycles repeat, the LCM is the moment they resynchronise.

Work and rosters. Two part-time workers are on 4-day and 6-day rotas. LCM(4, 6) = 12, so their days off line up every 12 days — the first date you can plan a joint day off.

When the LCM is just the product. If two numbers share no prime factor at all — they are coprime — the LCM is simply their product. For example, LCM(7, 11) = 77, because 7 and 11 have no prime in common. The same rule explains why LCM(8, 9) = 72: 8 = 2³ and 9 = 3² share nothing, so the answer is 8 × 9.

3 Mistakes That Make LCM Answers Wrong

Mistake 1: taking the lowest power instead of the highest. In prime factorisation, the LCM takes every prime at its highest power. For 12 = 2² × 3 and 18 = 2 × 3², taking the lowest powers gives 2 × 3 = 6 — that is the GCF, not the LCM. The LCM needs 2² × 3² = 36.

Mistake 2: dropping a prime that appears in only one number. In LCM(8, 9), the prime 3 appears only in 9 and the prime 2 only in 8 — but both must be included. Dropping the 3² gives 8, which 9 does not divide into. The correct answer keeps every prime that appears anywhere: 2³ × 3² = 72.

Mistake 3: stopping the multiples list too early. When listing multiples, the first shared number is the answer — but only if neither list skipped a multiple. In LCM(15, 20), the multiples of 15 are 15, 30, 45, 60… and of 20 are 20, 40, 60… Skipping 45 in the first list is harmless, but skipping 60 in the second would push you to a wrong, larger answer. Prime factorisation avoids this trap entirely.

Frequently Asked Questions

How do I find the LCM of two numbers?

List the multiples of both numbers and take the smallest one they share; or factorise both into primes, take every prime at its highest power, and multiply. For example, LCM(12, 18) = 36, because 12 = 2² × 3 and 18 = 2 × 3², and the highest powers give 2² × 3² = 36.

What is the LCM of 6 and 8?

24. The multiples of 6 are 6, 12, 18, 24… and the multiples of 8 are 8, 16, 24… The first number on both lists is 24. By prime factorisation: 6 = 2 × 3 and 8 = 2³, so the highest powers give 2³ × 3 = 24.

What is the difference between LCM and GCF?

The LCM is the smallest number both numbers divide into; the GCF is the largest number that divides both. For 8 and 12, the LCM is 24 and the GCF is 4. For two numbers they are linked by the identity LCM × GCF = a × b.

How do I find the LCM of three or more numbers?

Use prime factorisation and take every prime at the highest power it reaches in any number. For 4, 6 and 10 that gives 2² × 3 × 5 = 60. The listing method works too, but the lists get long — factorisation stays short.

What is the LCM used for?

Most often as the least common denominator when adding or subtracting fractions, for working out when two repeating schedules or cycles line up again, and for finding the smallest quantity that two different pack sizes or batch sizes both divide into evenly.

Try the Free LCM Calculator

Both methods give the same answer — listing multiples is the clearest, and prime factorisation is the reliable route for larger numbers and longer lists. Practice them on small pairs like 6 and 8 until the steps feel automatic, and use factorisation when the numbers stop being friendly.

Our free LCM Calculator runs the prime factorisation for you and shows the factorisations, the LCM and the companion GCF in one place — entirely in your browser, with nothing to sign up for. And when you need the other half of the pair, the free GCF Calculator is right beside it.