Skip to content
mathismaths.com

Numbers · Lesson 17 of 36

Highest Common Factor and Lowest Common Multiple

The HCF is the biggest number that divides both numbers. The LCM is the smallest number that both divide into. Listing or prime factors finds either.

What you will learn

  • Find the HCF and LCM of two numbers by listing.
  • Find them using prime factors.
  • Decide which one a problem needs.

Before you start: you should know factors, multiples and primes. See Factors and Multiples and Prime Numbers.

The idea

Two numbers can share factors and share multiples. The highest common factor (HCF) is the biggest number that is a factor of both. The lowest common multiple (LCM) is the smallest number that is a multiple of both.

Finding the HCF by listing

List the factors of each number, mark the ones they share, and pick the biggest.

Sorted into groups: Factors of 12, Factors of 18, SharedFactors of 12: 1, 2, 3, 4, 6, 12. Factors of 18: 1, 2, 3, 6, 9, 18. Shared: 1, 2, 3, 6.Factors of 121234612Factors of 181236918Shared1236
Factors of 12 and 18. The shared factors are 1, 2, 3 and 6, and the biggest is 6, so HCF(12, 18) = 6.

Finding the LCM by listing

List multiples of each until they meet. The first number in both lists is the LCM.

Number grid from 1 to 36Number grid from 1 to 36, 6 numbers in each row. Shaded: 4, 8, 12, 16, 20, 24, 28, 32 and 36. Outlined: 6, 12, 18, 24, 30 and 36.123456789101112131415161718192021222324252627282930313233343536
Multiples of 4 are shaded and multiples of 6 are ringed. The first number with both is 12, so LCM(4, 6) = 12. The next is 24.

Using prime factors

For bigger numbers, write each as a product of primes.

Factor tree for 3636 split into factors until only primes are left: 2 × 2 × 3 × 3.223391836
36 split into primes: 2 × 2 × 3 × 3. For the HCF of 24 and 36, take the primes they share, using the smaller count of each: 2 × 2 × 3 = 12. For the LCM, use the larger count of each.

HCF: the primes in common, each used the fewest times. LCM: all the primes, each used the most times.

Which one do I need?

  • Sharing into equal groups, or simplifying a fraction: use the HCF.
  • Two things repeating together, or a common denominator: use the LCM.

Worked examples

Example 1: HCF with prime factors

Find the HCF of 2424 and 3636.

  1. 24=2×2×2×324 = 2 \times 2 \times 2 \times 3.
  2. 36=2×2×3×336 = 2 \times 2 \times 3 \times 3.
  3. Shared primes: 2,2,32, 2, 3.
  4. 2×2×3=122 \times 2 \times 3 = 12.

Answer: 1212.

Example 2: LCM with prime factors

Find the LCM of 1212 and 1818.

  1. 12=22×312 = 2^2 \times 3 and 18=2×3218 = 2 \times 3^2.
  2. Take the most of each prime: 222^2 and 323^2.
  3. 4×9=364 \times 9 = 36.

Answer: 3636.

Example 3: A timing problem

A light flashes every 99 seconds and another every 1212 seconds. They flash together now. When do they flash together next?

  1. This needs the LCM of 99 and 1212.
  2. Multiples of 1212: 12,24,3612, 24, 36. Multiples of 99: 9,18,27,369, 18, 27, 36.
  3. The first shared is 3636.

Answer: after 3636 seconds.

The LCM is never smaller than the bigger number, and the HCF is never bigger than the smaller number.

Why it matters

The HCF simplifies fractions and splits things into the biggest equal groups, and the LCM finds common denominators and repeating schedules. Both appear again in Fractions and in algebra.

Practice

Your turn. Type or choose an answer, then press Check. Getting one wrong is fine, that is what practice is for. You can try as many times as you like.

Question 1 of 8

Find the highest common factor of 1212 and 1818.

Question 2 of 8

Find the lowest common multiple of 44 and 66.

Question 3 of 8

Find the highest common factor of 2424 and 3636.

Question 4 of 8

Find the lowest common multiple of 66 and 88.

Question 5 of 8

Find the lowest common multiple of 33 and 55.

Question 6 of 8

Find the highest common factor of 1515 and 2525.

Question 7 of 8

One bus comes every 66 minutes and another every 88 minutes. They both leave at 8 ⁣: ⁣008\!:\!00. After how many minutes do they next leave together?

Question 8 of 8

Which would you use to simplify 1218\frac{12}{18}?

Choose one answer