Steply

Calculate lcm(9, 12) using prime factors

Step by step, with the reason for every step · Factors and multiples · Foundations

Watch the video

Step by step

The question

Question: find the least common multiple of 9 and 12.

LCM(9, 12) = ?

The multiples of 9 are 9 times 1, 2, 3 and so on.

The least common multiple, the LCM, is the smallest number in both lists.

multiples of 9: 9, 18, 27, ...
LCM: the smallest common one

1 Find the prime factors

3 goes into 9.

9 is 3 times 3.

3 is prime, so we stop.

9 = 3 × 3

12 is even, so 2 goes in.

12 is 2 times 6.

12 = 2 × 6

6 is even, so 2 goes in.

6 is 2 times 3.

3 is prime, so we stop.

= 2 × 2 × 3

2 Line up the primes

We write the primes again, in columns.

The same primes go in the same column.

9 is 3 times 3.

9 has no 2, so we leave gaps there.

12 is 2 times 2 times 3.

12 has only one 3, so we leave a gap under the other 3.

3 Bring down every column

The LCM must be a multiple of every number.

So it needs all the primes of each number.

We bring down one prime from each column: 2, 2, 3 and 3.

A shared prime comes down only once.

4 Multiply

2 times 2 is 4.

2 × 2 = 4

4 times 3 is 12.

4 × 3 = 12

12 times 3 is 36.

12 × 3 = 36

So the LCM is 36.

LCM(9, 12) = 36

Careful!

Many people just multiply: 9 × 12 = 108.

108 is a common multiple too.

But it is not the least one: 36 is smaller.

Careful: not 9 × 12 = 108 ✗

5 Check

Let's check: each number goes into 36.

36 ÷ 9 = 4
36 ÷ 12 = 3

Nothing is left over.

So 36 is right!

Let's look back.

First: find the prime factors.

Then: line up the primes.

Then: bring down every column.

Then: multiply.

Last: check.

Answer
LCM(9, 12) = 36

Your turn

Try this one yourself, then check your answer:

Find the least common multiple of LCM(10, 15) = ?
Show the answer
LCM(10, 15) = 30

More from Factors and multiples

The whole lesson: Factors and multiples →