LCM Calculator

Enter two or more numbers separated by commas (e.g. 12, 18, 30) to find their Least Common Multiple.

Try:

Related Calculator:

The Least Common Multiple, or LCM, is the smallest positive number that two or more numbers can divide into evenly. If you’ve ever needed to line up fractions with a common denominator, sync repeating events that happen on different schedules, or just solve a math homework problem, the LCM is the number you’re looking for. This calculator finds it instantly for any set of whole numbers you enter, and below you’ll find six different hand-calculation methods explained step by step, so you can see exactly how the answer comes together no matter which approach your textbook or teacher prefers.

What Is the Least Common Multiple?

A multiple of a number is simply that number multiplied by a whole number — multiples of 4, for instance, are 4, 8, 12, 16, and so on forever. When you’re looking at two or more numbers at once, a common multiple is any number that shows up in every one of their multiple lists. The Least Common Multiple is the smallest of those shared values.

LCM goes by a few other names depending on the textbook, including Lowest Common Multiple and Least Common Divisor (LCD), but they all mean the exact same thing.

How to Use This Calculator

Type your numbers into the input box, separated by commas or spaces — for example, “12 18 30” or “12, 18, 30.” Don’t include commas inside an individual number; write 2500 rather than 2,500. Hit Calculate and you’ll get the LCM along with the prime factorization of each number and a breakdown of how the result was reached.

Method 1: Listing Multiples

This is the most visual way to find an LCM, and it’s a great starting point if you’re new to the concept.

Write out several multiples of each number, then scan across the lists for the smallest value that appears in all of them.

Example: LCM(4, 6)

Multiples of 4: 4, 8, 12, 16, 20 Multiples of 6: 6, 12, 18, 24

The smallest number shared by both lists is 12, so LCM(4, 6) = 12.

Example with three numbers: LCM(8, 9, 12)

Multiples of 8: 8, 16, 24, 32, 40, 48, 56, 64, 72 Multiples of 9: 9, 18, 27, 36, 45, 54, 63, 72 Multiples of 12: 12, 24, 36, 48, 60, 72

LCM(8, 9, 12) = 72

This method works fine for small numbers, but it gets slow and impractical once your numbers get larger — that’s where the next few methods come in.

Method 2: Prime Factorization

Break every number down into its prime building blocks, then combine those primes — using each one as many times as it shows up in any single number — to build the LCM.

Example: LCM(14, 21)

14 = 2 × 7 21 = 3 × 7

Looking at both factorizations, 2 appears once, 3 appears once, and 7 appears once (in each number separately, so it’s only counted once, not twice). Multiplying these together: 2 × 3 × 7 = 42, so LCM(14, 21) = 42.

Example: LCM(18, 24)

18 = 2 × 3 × 3 24 = 2 × 2 × 2 × 3

Here, 2 shows up three times in 24 (more than the single 2 in 18), so we use three 2s. The factor 3 shows up twice in 18, so we use two 3s. That gives 2 × 2 × 2 × 3 × 3 = 72, so LCM(18, 24) = 72.

Method 3: Prime Factorization With Exponents

This is the same idea as Method 2, just written more compactly using exponents — and it’s the fastest way to handle larger sets of numbers.

Example: LCM(20, 50, 75)

20 = 2² × 5 50 = 2 × 5² 75 = 3 × 5²

For each prime, take the highest exponent that appears across all three numbers: the highest power of 2 is 2² (from 20), the highest power of 3 is 3¹ (from 75), and the highest power of 5 is 5² (from both 50 and 75).

LCM = 2² × 3 × 5² = 4 × 3 × 25 = 300

Method 4: The Cake (Ladder) Method

Also called the ladder method, box method, or factor box method, this approach uses simple division by prime numbers instead of full factorization, which makes it quick once you get the hang of it.

Example: LCM(8, 12, 20, 30)

Write your numbers in a row, then divide every number that’s evenly divisible by a chosen prime, carrying down anything that isn’t divisible unchanged.

Divide by8122030
2461015
223515
213515
31155
51111

Multiply every divisor used down the left-hand column: 2 × 2 × 2 × 3 × 5 = 120, so LCM(8, 12, 20, 30) = 120.

Method 5: The Division Method

The division method is nearly identical to the cake method, but instead of dividing every number at each step, you only need at least one number in the row to be divisible by your chosen prime — anything that doesn’t divide evenly just gets carried straight down.

Example: LCM(9, 15, 21)

Divide by91521
3357
3157
5117
7111

Multiply the divisors used: 3 × 3 × 5 × 7 = 315, so LCM(9, 15, 21) = 315.

Method 6: Using the GCF Formula

If you already know the Greatest Common Factor (GCF) — also called the HCF, GCD, or HCD depending on your textbook — you can find the LCM of two numbers in a single step using this relationship:

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

Example: LCM(8, 20)

The GCF of 8 and 20 is 4. Plugging into the formula: (8 × 20) ÷ 4 = 160 ÷ 4 = 40, so LCM(8, 20) = 40.

This shortcut only works cleanly for two numbers at a time. For three or more numbers, it’s easier to combine numbers two at a time, or just use one of the prime factorization methods above.

Bonus: The Venn Diagram Method

A Venn diagram approach works well for visual learners. Draw an overlapping circle for each number, place the prime factors that are unique to a number inside that number’s circle only, and place any prime factors shared between numbers in the overlapping section. Once every prime factor has a home in the diagram, multiply everything in every circle together (counting overlapping factors only once each) to get the LCM.

Finding the LCM of Decimal Numbers

Decimals throw a wrench into the usual process, but a simple shift fixes that.

Find which number has the most decimal places, and count how many that is — call this number D. Multiply every number in your set by 10 raised to the power of D, which shifts the decimal point D places to the right and turns everything into whole numbers. Find the LCM of those whole numbers using any method above, then shift the decimal point back D places to the left to get your final answer.

Example: LCM(0.4, 0.65)

0.65 has 2 decimal places, so D = 2. Multiplying both numbers by 100 gives 40 and 65.

LCM(40, 65): 40 = 2³ × 5, 65 = 5 × 13, so LCM = 2³ × 5 × 13 = 520.

Shifting the decimal 2 places back to the left: LCM(0.4, 0.65) = 5.2.

Useful Properties of LCM

A few patterns are worth knowing when you’re working with the LCM regularly.

Order doesn’t matter. LCM(a, b) always equals LCM(b, a), no matter which order you list the numbers in.

Grouping doesn’t matter either. For three numbers, LCM(a, b, c) gives the same result whether you compute LCM(LCM(a, b), c) or LCM(a, LCM(b, c)).

Scaling carries through. If every number in a set is multiplied by the same value d, the LCM of the new set equals d times the LCM of the original set.

It’s tied directly to the GCF. For any two numbers, LCM(a, b) × GCF(a, b) = a × b. That means once you know one of the two values, you can always solve for the other.

Frequently Asked Questions

What’s the difference between LCM and GCF? The LCM is the smallest number that all your given numbers divide into evenly, while the GCF is the largest number that divides evenly into all of them. They’re opposite ends of the same relationship.

Why do I need the LCM for adding fractions? To add or subtract fractions, they need a shared denominator. Using the LCM of the denominators keeps that shared denominator as small as possible, which means smaller numbers to work with and less simplifying afterward.

Can the LCM ever be smaller than the largest number in the set? No. The LCM is always greater than or equal to the largest number in your set, since it has to be a multiple of every number, including the biggest one.

Does every set of numbers have an LCM? Yes, as long as you’re working with positive whole numbers. The LCM isn’t defined for zero, since zero isn’t a multiple of any positive number in the usual sense.

Which method is fastest for large numbers? Prime factorization with exponents or the ladder method are both quick once you’re comfortable with them. Listing multiples works fine for small numbers but becomes slow as numbers grow.

Can this calculator handle more than two numbers at once? Yes, you can enter as many numbers as you need, separated by commas or spaces, and it will find the LCM across the entire set at once.

Putting It All Together

Whether you’re helping with homework, scheduling something that repeats on different cycles, or just need a quick answer without doing the math by hand, this calculator and the methods above have you covered from the simplest two-number case to large multi-number sets.