Get Started
How to Find the Least Common Multiple (LCM): 4 Easy Methods

How to Find the Least Common Multiple (LCM): 4 Easy Methods

Last Updated: 8 min read
Sheet of paper with handwritten numbers and math working

Learn how to find the LCM of two or more numbers by listing multiples, prime factorization, the GCF formula and the ladder method, with fraction examples and word problems.

Table of Contents 15 sections
  1. What is the least common multiple?
  2. Method 1: how to find the LCM by listing multiples
  3. Method 2: how to find the LCM using prime factorization
  4. Method 3: how to find the LCM with the GCF formula
  5. Method 4: the ladder (cake) method
  6. How to find the LCM of three or more numbers
  7. Shortcuts to spot instantly
  8. Using the LCM to add and subtract fractions
  9. LCM word problems
  10. LCM or GCF? How to decide
  11. Why the methods work
  12. Quick LCM table for times-table pairs
  13. Practice problems
  14. How to use this guide
  15. Frequently asked questions
Need a quick answer with steps? The free LCM Calculator finds the least common multiple of up to 10 numbers and shows every method.

The least common multiple is one of those ideas that seems abstract until you need it, and then it is everywhere: adding fractions, lining up schedules, buying hot dogs and buns in matching numbers. This guide explains what the least common multiple is and shows you how to find the LCM with four reliable methods, from simply listing multiples to the GCF formula used by calculators and computers. Along the way you will see worked examples, shortcuts and word problems, plus practice questions to test yourself.

What is the least common multiple?

The least common multiple (LCM) of two or more whole numbers is the smallest positive number that each of them divides into exactly. You may also see it called the lowest common multiple or smallest common multiple.

Start with multiples. The multiples of a number are its times table: the multiples of 3 are 3, 6, 9, 12, 15, 18 and so on. A common multiple appears in the times tables of every number in the set, and the least common multiple is the first one you reach.

Method 1: how to find the LCM by listing multiples

Step 1: write out the multiples of each number

Find LCM(6, 9). Multiples of 6: 6, 12, 18, 24, 30, 36. Multiples of 9: 9, 18, 27, 36.

Step 2: find the first number on every list

18 appears on both lists before any other shared number.

Step 3: that number is the LCM

LCM(6, 9) = 18.

Tip: list the multiples of the largest number only, and check each one against the smaller numbers. For LCM(6, 9), try 9 (not divisible by 6), then 18 (divisible by 6). Done in two steps.

Method 2: how to find the LCM using prime factorization

This method shines when the numbers are larger or when there are three or more of them.

Step 1: break each number into primes

24 = 2³ × 3
36 = 2² × 3²
40 = 2³ × 5

Step 2: list every prime that appears anywhere

The primes are 2, 3 and 5.

Step 3: take the highest power of each

The highest power of 2 is 2³ (from 24 and 40), of 3 is 3² (from 36), and of 5 is 5 (from 40).

Step 4: multiply

LCM = 2³ × 3² × 5 = 8 × 9 × 5 = 360.

Method 3: how to find the LCM with the GCF formula

If you already know the greatest common factor, or can find it quickly, this is the fastest route for two numbers:

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

Example: LCM(20, 28). The GCF of 20 and 28 is 4. So LCM = 20 × 28 ÷ 4 = 560 ÷ 4 = 140. Dividing one number by the GCF first keeps the arithmetic small: 20 ÷ 4 × 28 = 5 × 28 = 140.

Not sure how to find the GCF? Our guide on how to find the greatest common factor covers listing factors, prime factorization and the Euclidean algorithm.

Method 4: the ladder (cake) method

The ladder method is popular in classrooms because it organises the prime factors neatly.

  1. Write the numbers side by side.
  2. Divide by a prime that goes into at least two of them. Write the quotients underneath, and bring down any number that does not divide.
  3. Repeat until no prime divides two or more of the numbers on the bottom row.
  4. Multiply all the primes down the left side and all the numbers in the bottom row.
2 | 24 36 40
2 | 12 18 20
2 | 6 9 10
3 | 3 9 5
  | 1 3 5
LCM = 2 × 2 × 2 × 3 × 1 × 3 × 5 = 360

How to find the LCM of three or more numbers

Either use prime factorization with all the numbers at once (Method 2), or work in pairs: LCM(a, b, c) = LCM(LCM(a, b), c).

Example: LCM(3, 8, 10). LCM(3, 8) = 24 because 3 and 8 are coprime. Then LCM(24, 10): the GCF of 24 and 10 is 2, so 24 × 10 ÷ 2 = 120. The answer is 120.

Shortcuts to spot instantly

  • One number divides the other: the larger is the LCM. LCM(7, 21) = 21.
  • The numbers are coprime: multiply them. LCM(9, 10) = 90.
  • Two different primes: multiply them. LCM(5, 13) = 65.
  • Consecutive numbers: always coprime, so multiply. LCM(11, 12) = 132.
  • Both even: the product overcounts. Halve the product at least once, then check.

Using the LCM to add and subtract fractions

The most common reason to find an LCM in school is to add or subtract fractions with unlike denominators. The LCM of the denominators is the least common denominator.

Example: 3/8 + 5/12.

  1. LCM(8, 12) = 24.
  2. Convert: 3/8 = 9/24 (multiply top and bottom by 3), and 5/12 = 10/24 (multiply by 2).
  3. Add: 9/24 + 10/24 = 19/24.

Multiplying the denominators (8 × 12 = 96) would also work, but you would end up with 36/96 + 40/96 = 76/96, which then needs simplifying back to 19/24. The LCM saves that step.

LCM word problems

Traffic lights

One light turns green every 45 seconds and another every 60 seconds. If they both turn green now, when will they next turn green together? LCM(45, 60) = 180 seconds, or 3 minutes.

Party supplies

Plates come in packs of 12 and cups in packs of 18. What is the smallest number of each you can buy to have the same amount? LCM(12, 18) = 36, so buy 3 packs of plates and 2 packs of cups.

Shift patterns

A nurse works every 4th day and her friend every 6th day. Both are working today. They will next share a shift in LCM(4, 6) = 12 days.

Planets and orbits

Two moons orbit a planet every 6 and 15 days. They line up again every LCM(6, 15) = 30 days.

LCM or GCF? How to decide

If the problem asks when things will happen together again, or for the smallest amount that works for every group, it wants the LCM. If it asks for the largest size of equal groups, or how to split things with nothing left over, it wants the GCF. A quick check: the LCM is never smaller than your biggest number, and the GCF is never bigger than your smallest number.

Why the methods work

Every whole number greater than 1 can be written as a product of primes in exactly one way, a fact known as the fundamental theorem of arithmetic. A number is a multiple of 24 = 2³ × 3 only if it contains at least three 2s and one 3 among its prime factors. A number is a multiple of 36 = 2² × 3² only if it contains at least two 2s and two 3s. To be a multiple of both, it needs at least three 2s and two 3s, and the smallest such number contains exactly that: 2³ × 3² = 72. That is why the prime factorization method takes the highest power of each prime. Adding any extra prime would make a common multiple, but not the least one.

The GCF formula works for the same reason. Multiplying a by b counts the shared primes twice, once from each number. The shared part is exactly the GCF, so dividing by it once removes the double count and leaves the LCM. The listing method is simply a brute-force search that will always find the same answer, just more slowly.

Quick LCM table for times-table pairs

PairLCMPairLCM
2 and 5104 and 936
3 and 5155 and 630
3 and 996 and 918
4 and 5206 and 1030
4 and 888 and 1040
5 and 7359 and 1236

Notice the pattern: when the numbers share a factor (4 and 8, 6 and 9, 8 and 10), the LCM is smaller than their product. When they share none (2 and 5, 5 and 7, 4 and 9), the LCM is the product.

Practice problems

  1. LCM of 4 and 10 (answer: 20)
  2. LCM of 6 and 14 (answer: 42)
  3. LCM of 9 and 15 (answer: 45)
  4. LCM of 16 and 24 (answer: 48)
  5. LCM of 7 and 12 (answer: 84)
  6. LCM of 2, 5 and 6 (answer: 30)
  7. LCM of 12, 15 and 20 (answer: 60)
  8. LCM of 18 and 84 using the GCF formula (answer: 252)

Check each answer, and see every method worked out, with the free LCM calculator.

How to use this guide

Work through the steps in order with your own numbers, writing each result down as you go, then check your answer against the matching calculator on this site. If your hand calculation and the calculator disagree, the usual culprits are unit conversions, rounding, and a percentage typed as a whole number instead of a decimal. The examples are illustrations, not recommendations, and your situation may call for different assumptions. For important financial or health decisions, confirm your plan with a licensed professional who knows your circumstances. This article is reviewed periodically and was last updated in November 2026.

Frequently asked questions

What is the fastest way to find the LCM?

For two numbers, divide their product by their greatest common factor. For three or more numbers, prime factorization with the highest power of each prime is usually fastest.

How do you find the LCM using prime factorization?

Write each number as a product of primes, list every prime that appears, take the highest power of each, and multiply them together.

What is the LCM of 6 and 8?

The LCM of 6 and 8 is 24. Multiples of 8 are 8, 16, 24, and 24 is the first one that 6 also divides.

What is the least common denominator?

The least common denominator of two or more fractions is the LCM of their denominators. It is the smallest denominator you can convert all the fractions to.

How do I know if a word problem needs the LCM?

If the question asks when repeating events will next happen together, or for the smallest quantity that works for every group size, use the LCM.

Why is the LCM not just the two numbers multiplied?

Multiplying gives a common multiple, but if the numbers share a factor the product counts it twice. Dividing by the GCF removes the repeat and gives the least common multiple.

This LCM calculator is a free educational tool for positive whole numbers. Very large inputs can produce an LCM beyond exact computer precision, in which case the calculator says so. Check homework answers against the method your teacher asks for.

Sawera Shahid

About the author

Sawera Shahid is the founder and lead writer of Calculators360. She builds the site's free online calculators and writes clear, step-by-step guides on finance, math and health, with every formula explained and worked examples you can check by hand.

© 2026 Calculators360. Free calculators for math, finance and health. Privacy · About · Contact

Leave a Reply

Your email address will not be published. Required fields are marked *