---
slug: least-common-multiple-of-three-numbers
title: "How to Find the LCM of Three Numbers (3 Methods)"
category: math
updated: 2026-11-23
canonical: https://calcseed.com/guides/least-common-multiple-of-three-numbers/
---

# How to Find the LCM of Three Numbers (3 Methods)

Find the LCM of three numbers by prime factorization, the GCD pairwise method, and short division. Full worked example: LCM(12, 18, 30) = 180, step by step.

## What the LCM of Three Numbers Means

The least common multiple (LCM) of a set of numbers is the smallest positive integer that each of them divides evenly. With two numbers the idea is easy to picture by listing multiples, but with three numbers listing becomes tedious fast, so structured methods earn their keep. For the running example in this guide we will use 12, 18, and 30, whose LCM turns out to be 180. You can verify the claim by division: 180 ÷ 12 = 15, 180 ÷ 18 = 10, and 180 ÷ 30 = 6, all whole numbers, and no smaller positive integer passes all three tests.

The key principle behind every efficient method is that the LCM is built from the **prime factors** of the inputs. A common multiple must contain, for every prime that appears in any of the numbers, at least as many copies of that prime as appear in whichever number needs the most. Collecting one copy of each necessary prime-power, and nothing extra, yields the least common multiple.

## Method 1: Prime Factorization

This is the most transparent method and the one worth mastering first. Start by breaking each number into its prime factors:

1. Factor each number: 12 = 2 × 2 × 3 = 2² × 3; 18 = 2 × 3 × 3 = 2 × 3²; 30 = 2 × 3 × 5.
2. List every distinct prime that appears across all three factorizations: 2, 3, and 5.
3. For each prime, take the highest power that appears in any single number: 2² (from 12), 3² (from 18), and 5 (from 30).
4. Multiply the chosen powers together: 2² × 3² × 5 = 4 × 9 × 5 = 180.

The highest-power rule is what keeps the result "least." If you instead multiplied every factorization together you would get 12 × 18 × 30 = 6,480, which is a common multiple but far from the least one. Taking the maximum exponent per prime, rather than the sum of all exponents, removes exactly the redundant factors. A quick check confirms the result: 180 ÷ 12 = 15, 180 ÷ 18 = 10, 180 ÷ 30 = 6.

## Method 2: The GCD Pairwise Method

If you already know the greatest common divisor (GCD), you can build the LCM of three numbers two at a time. The identity that makes this work is:

Apply it to the example. First find LCM(12, 18): GCD(12, 18) = 6, so LCM = (12 × 18) ÷ 6 = 216 ÷ 6 = 36. Then combine 36 with 30: GCD(36, 30) = 6, so LCM = (36 × 30) ÷ 6 = 1,080 ÷ 6 = 180. The order in which you pair the numbers does not matter; LCM is associative, so LCM(LCM(12, 30), 18) and LCM(LCM(18, 30), 12) also return 180. This method is especially convenient when the numbers are small enough that their GCDs are easy to spot, and it generalizes to four or more numbers by simply continuing the chain.

## Method 3: Short Division (Ladder Method)

Short division handles all three numbers simultaneously, which many students find faster than factoring each one separately. Write 12, 18, and 30 in a row, then repeatedly divide the entire row by any prime that divides at least two of the numbers (or all of them), carrying down any number that cannot be divided:

1. Divide the row by 2: 12 ÷ 2 = 6, 18 ÷ 2 = 9, 30 ÷ 2 = 15, leaving the row 6, 9, 15.
2. Divide by 3: 6 ÷ 3 = 2, 9 ÷ 3 = 3, 15 ÷ 3 = 5, leaving the row 2, 3, 5.
3. No prime divides two or more of 2, 3, and 5, so stop. Multiply every divisor and everything left in the final row: 2 × 3 × 2 × 3 × 5 = 180.

The product of all the divisors down the side, times the surviving row at the bottom, is the LCM. Note the stopping condition: you stop when no prime divides at least two of the remaining numbers, not when the numbers all reach 1. That distinction is what separates the LCM ladder from a GCD ladder, and getting it wrong is the most common mistake with this method.

## Where the LCM of Three Numbers Shows Up

Three-way LCM problems appear constantly in scheduling, fractions, and periodic events. The core pattern is always the same: several cycles of different lengths, and you want the first moment they all line up.

- **Recurring events:** three buses leave a depot every 12, 18, and 30 minutes. They all depart together again every LCM(12, 18, 30) = 180 minutes, i.e. every 3 hours.
- **Adding three fractions:** to add 1/12 + 1/18 + 1/30 you need a common denominator, and the least one is the LCM, 180. The sum becomes 15/180 + 10/180 + 6/180 = 31/180.
- **Gears and rotations:** if three gears have 12, 18, and 30 teeth, marked teeth realign after 180 revolutions of the tooth-pattern, the first full coincidence.
- **Scheduling shifts:** three employees rotate with periods of 12, 18, and 30 days; all three coincide on day 180.

In the fraction case, using 180 rather than a larger common denominator such as 1,080 keeps the numbers small and the simplification short. That is the practical payoff of finding the *least* common multiple instead of just any common multiple.

## Common Mistakes to Watch For

A handful of errors account for most wrong LCM answers. Before finalizing a result, check it against this list:

- **Multiplying the three numbers together.** 12 × 18 × 30 = 6,480 is a common multiple but not the least one.
- **Taking the lowest prime power instead of the highest.** Using 2&sup1; instead of 2² for the example gives 90, which 12 does not divide.
- **Forgetting a prime entirely.** Dropping the 5 gives 36, which 30 does not divide.
- **Confusing LCM with GCD.** GCD(12, 18, 30) = 6, the largest number dividing all three; the LCM is the smallest number they all divide, and it is much larger.
- **Stopping the ladder too early.** In short division, continue while any prime divides at least two numbers in the row.

Finally, always run the division check on your answer: the LCM divided by each input must be a whole number. It takes three divisions and it catches every one of the mistakes above. For larger sets or bigger numbers, the LCM calculator at the top of this page applies these rules automatically, and the combined GCD and LCM tool shows both quantities side by side when you need the pair.

## FAQ

### What is the LCM of 12, 18, and 30?

180. The prime factorizations are 12 = 2² × 3, 18 = 2 × 3², and 30 = 2 × 3 × 5, so the LCM is 2² × 3² × 5 = 180.

### How do you find the LCM of three numbers using GCD?

Use LCM(a, b, c) = LCM(LCM(a, b), c), where LCM(x, y) = x × y ÷ GCD(x, y). For 12, 18, 30: LCM(12, 18) = 36, then LCM(36, 30) = 36 × 30 ÷ 6 = 180.

### Is the LCM of three numbers just the product of the three numbers?

No. The product 12 × 18 × 30 = 6,480 is a common multiple, but the least common multiple removes shared factors and equals 180. They coincide only when the numbers are pairwise coprime.

### When would I ever need the LCM of three numbers?

Common cases include finding a common denominator when adding three fractions, and finding when three repeating events with periods of 12, 18, and 30 minutes (or days) next coincide, which happens every 180 units.

## Method and sources

Last updated: 2026-11-23.
- Wolfram MathWorld, "Least Common Multiple": https://mathworld.wolfram.com/LeastCommonMultiple.html
- Khan Academy, "Least common multiple": https://www.khanacademy.org/math/arithmetic/x18ca194a:Factors-and-multiples
- Wolfram MathWorld, "Greatest Common Divisor": https://mathworld.wolfram.com/GreatestCommonDivisor.html
