Websink Prep UKGCSE MathsTextbook contentsMaths textbooksYear 1Year 2Year 4Year 5Year 6GCSEBrowse allPast papersFind a tutorBecome a tutor
GCSE Maths · EdexcelChapter 2 · Factors, multiples, primes and powers
GCSE Maths · Factors, Multiples and Primes · Higher · Lesson 2.4

GCSE Maths: Highest common factor and lowest common multiple (Higher)

Part of the GCSE Maths factors, multiples and primes chapter (Higher). Chapter overview · Foundation version of this lesson · whole chapter on one page · Download worksheet (PDF) · Answers (PDF)

Download worksheet (PDF)Answers (PDF)
2.4

Highest common factor and lowest common multiple

Edexcel 1MA1: N4
Grade 3-7

In Section 2.1 you met common factors and common multiples. Two special ones are used a lot.

The highest common factor (HCF) of two numbers is the biggest number that divides into both. We use it to cut things into the largest equal pieces, or to simplify fractions (Chapter 3).

The lowest common multiple (LCM) is the smallest number that is in both times tables. We use it when two things repeat and we want to know when they line up, or to find a common denominator.

Method 1: listing. For the HCF, list the factors of each number and find the biggest number in both lists. For the LCM, list the multiples of each number until you find the first one in both lists.

Method 2: prime factors and a Venn diagram. This method works for big numbers where lists would be long. Write each number as a product of primes. Draw two overlapping circles, one for each number. Put the primes that both numbers share in the middle, and the leftover primes in the outer parts.

12182233
12 = 2 × 2 × 3 and 18 = 2 × 3 × 3. Both share a 2 and a 3 (the middle). 12 has one more 2 and 18 has one more 3. HCF = 2 × 3 = 6. LCM = 2 × 3 × 2 × 3 = 36.

HCF = multiply the numbers in the middle. LCM = multiply all the numbers in the diagram (the middle ones only once). Why? The middle holds what both numbers have in common, which builds the biggest shared factor. The LCM has to contain everything that either number needs, and using the shared primes only once keeps it as small as possible.

608452237
60 = 2 × 2 × 3 × 5 and 84 = 2 × 2 × 3 × 7. The middle is 2, 2, 3 so HCF = 12. All the numbers multiplied: 2 × 2 × 3 × 5 × 7 = 420 = LCM.

Which one do I need? If the answer must be smaller than or equal to both numbers (cutting, sharing, grouping), it is the HCF. If it is bigger than or equal to both (meeting again, repeating, buying enough), it is the LCM.

Key ideas

  • HCF = the biggest number that divides into both. LCM = the smallest number in both times tables.
  • Listing works for small numbers. For larger numbers use prime factors and a Venn diagram.
  • Venn diagram: HCF = multiply the middle; LCM = multiply everything in the diagram.
  • HCF ≤ both numbers; LCM ≥ both numbers.
  • Check: HCF × LCM = the two numbers multiplied together.
Worked example 2.4.1
Find the HCF of 24 and 36 by listing factors.

Key words. A common factor of two numbers is a number that divides into both. The highest common factor (HCF) is the biggest one. A common multiple is a number that is in both times tables. The lowest common multiple (LCM) is the smallest one.

Method. The highest common factor (HCF) is the biggest number that divides into both 24 and 36. Here we list the factors.

  1. List the factors of 24. These are all the numbers that divide into it exactly.
    Factors of 24: 1, 2, 3, 4, 6, 8, 12, 24
  2. List the factors of 36. Do the same for the other number.
    Factors of 36: 1, 2, 3, 4, 6, 9, 12, 18, 36
  3. Find the common factors. These are the numbers that appear in both lists.
    Common factors: 1, 2, 3, 4, 6, 12
  4. Pick the highest one. The highest common factor is the biggest number in the common list.
    HCF = 12

Check. 24 ÷ 12 = 2 and 36 ÷ 12 = 3, and 2 and 3 have no common factor except 1, so no bigger number works. ✓

Watch out. HCF = highest factor (smaller than or equal to both numbers). Do not confuse it with the LCM, which is bigger than or equal to both.

Worked example 2.4.2
Find the LCM of 6 and 8 by listing multiples.

Key words. A common factor of two numbers is a number that divides into both. The highest common factor (HCF) is the biggest one. A common multiple is a number that is in both times tables. The lowest common multiple (LCM) is the smallest one.

Method. The lowest common multiple (LCM) is the smallest number that is in both the 6 times table and the 8 times table. Here we list the multiples.

  1. List the multiples of 6. Count up in 6s. Keep going until you have passed a number that is also in the other list.
    Multiples of 6: 6, 12, 18, 24, ...
  2. List the multiples of 8. Count up in 8s in the same way.
    Multiples of 8: 8, 16, 24, ...
  3. Find the first number that is in both lists. That is the lowest common multiple.
    LCM = 24

Check. 24 ÷ 6 = 4 and 24 ÷ 8 = 3, both whole numbers. And no smaller number appears in both lists. ✓

Watch out. LCM = lowest multiple (bigger than or equal to both numbers). Do not just multiply the two numbers: that gives a common multiple, but often not the lowest.

Worked example 2.4.3
Find the HCF and the LCM of 60 and 84.

Key words. A common factor of two numbers is a number that divides into both. The highest common factor (HCF) is the biggest one. A common multiple is a number that is in both times tables. The lowest common multiple (LCM) is the smallest one.

Method. Find the HCF (biggest number dividing into both) and the LCM (smallest number in both times tables) of 60 and 84.

  1. Write 60 and 84 as products of prime factors. Use a factor tree or repeated division by primes. Prime factors are the building blocks of each number.
    60 = 2 × 2 × 3 × 5
    84 = 2 × 2 × 3 × 7
  2. Put the primes in a Venn diagram. A prime that is in both numbers goes in the middle (where the circles overlap). A prime that belongs to only one number goes in that circle only. If a prime is repeated, e.g. 2 × 2, put as many copies in the middle as both numbers have.
    608452237
  3. HCF: multiply the numbers in the middle (the overlap). The overlap holds the prime factors that both numbers share, so it builds the biggest number that divides into both.
    HCF = 2 × 2 × 3 = 12
  4. LCM: multiply all the numbers in the diagram (the overlap counted once). Everything in the diagram is needed to build a number that both can divide into, and the shared primes are used only once to keep it as small as possible.
    LCM = 5 × 2 × 2 × 3 × 7 = 420

Check. HCF × LCM = 12 × 420 = 5040 and 60 × 84 = 5040. They are equal. ✓

Watch out. Check you give both answers, labelled HCF and LCM.

Worked example 2.4.4
Bus A leaves the station every 12 minutes. Bus B leaves every 18 minutes. Both leave at 9:00 am. At what time do they next leave together?

Key words. A common factor of two numbers is a number that divides into both. The highest common factor (HCF) is the biggest one. A common multiple is a number that is in both times tables. The lowest common multiple (LCM) is the smallest one.

Method. The lowest common multiple (LCM) is the smallest number that is in both the 12 times table and the 18 times table. Here we use prime factors in a Venn diagram.

  1. Decide what the question is asking. The buses leave together again after a number of minutes that is in both the 12 times table and the 18 times table. We want the first time, so we need the lowest common multiple.
    Find the lowest common multiple of 12 and 18.
  2. Write 12 and 18 as products of prime factors. Use a factor tree or repeated division by primes. Prime factors are the building blocks of each number.
    12 = 2 × 2 × 3
    18 = 2 × 3 × 3
  3. Put the primes in a Venn diagram. A prime that is in both numbers goes in the middle (where the circles overlap). A prime that belongs to only one number goes in that circle only. If a prime is repeated, e.g. 2 × 2, put as many copies in the middle as both numbers have.
    12182233
  4. LCM: multiply all the numbers in the diagram (the overlap counted once). Everything in the diagram is needed to build a number that both can divide into, and the shared primes are used only once to keep it as small as possible.
    LCM = 2 × 2 × 3 × 3 = 36
  5. Answer the question in words. Always finish by saying what the number means.
    They leave together again after 36 minutes, which is 9:36 am.

Check. HCF × LCM = 6 × 36 = 216 and 12 × 18 = 216. They are equal. ✓

Watch out. LCM = lowest multiple (bigger than or equal to both numbers). Do not just multiply the two numbers: that gives a common multiple, but often not the lowest.

Worked example 2.4.5
Find the HCF and the LCM of 24, 36 and 60.

Key words. A common factor of two numbers is a number that divides into both. The highest common factor (HCF) is the biggest one. A common multiple is a number that is in both times tables. The lowest common multiple (LCM) is the smallest one. Index form means writing repeated multiplication as a power.

Method. Compare the prime factorisations: for the HCF take the smallest power of each prime, for the LCM take the largest power of each prime.

  1. Write each number as a product of prime factors in index form. Use a factor tree or repeated division by primes.
    24 = 23 × 3
    36 = 22 × 32
    60 = 22 × 3 × 5
  2. For each prime, write down its power in every number (use power 0 if it is missing). Comparing the powers prime by prime is the same as filling in a Venn diagram. A missing prime has power 0 because p0 = 1.
    Prime 2: 24: 23  |  36: 22  |  60: 22
    Prime 3: 24: 31  |  36: 32  |  60: 31
    Prime 5: 24: 50  |  36: 50  |  60: 51
  3. HCF: for each prime take the smallest power. The HCF can only use primes that all the numbers share, and no more copies than the number with the fewest.
    2: smallest power is 2, so 22
    3: smallest power is 1, so 3
    5: smallest power is 0, so it is left out
    HCF = 22 × 3
  4. LCM: for each prime take the largest power. The LCM must contain enough of every prime for every number to divide into it.
    2: largest power is 3, so 23
    3: largest power is 2, so 32
    5: largest power is 1, so 5
    LCM = 23 × 32 × 5

Check. The HCF divides every number: 24 ÷ 12 = 2, 36 ÷ 12 = 3, 60 ÷ 12 = 5. Every number divides the LCM: 360 ÷ 24 = 15, 360 ÷ 36 = 10, 360 ÷ 60 = 6. ✓

Watch out. HCF: smallest powers, and leave out any prime that is missing from a number. LCM: largest powers, using every prime that appears.

Worked example 2.4.6
A = 23 × 3 × 52 and B = 22 × 32 × 7. Write the HCF and the LCM of A and B as products of prime factors.

Key words. A common factor of two numbers is a number that divides into both. The highest common factor (HCF) is the biggest one. A common multiple is a number that is in both times tables. The lowest common multiple (LCM) is the smallest one. Index form means writing repeated multiplication as a power.

Method. Compare the prime factorisations: for the HCF take the smallest power of each prime, for the LCM take the largest power of each prime.

  1. Write down the numbers in index form. They are already products of primes.
    A = 23 × 3 × 52
    B = 22 × 32 × 7
  2. For each prime, write down its power in every number (use power 0 if it is missing). Comparing the powers prime by prime is the same as filling in a Venn diagram. A missing prime has power 0 because p0 = 1.
    Prime 2: A: 23  |  B: 22
    Prime 3: A: 31  |  B: 32
    Prime 5: A: 52  |  B: 50
    Prime 7: A: 70  |  B: 71
  3. HCF: for each prime take the smallest power. The HCF can only use primes that all the numbers share, and no more copies than the number with the fewest.
    2: smallest power is 2, so 22
    3: smallest power is 1, so 3
    5: smallest power is 0, so it is left out
    7: smallest power is 0, so it is left out
    HCF = 22 × 3
  4. LCM: for each prime take the largest power. The LCM must contain enough of every prime for every number to divide into it.
    2: largest power is 3, so 23
    3: largest power is 2, so 32
    5: largest power is 2, so 52
    7: largest power is 1, so 7
    LCM = 23 × 32 × 52 × 7

Check. The HCF divides every number: 600 ÷ 12 = 50, 252 ÷ 12 = 21. Every number divides the LCM: 12,600 ÷ 600 = 21, 12,600 ÷ 252 = 50. ✓

Watch out. HCF: smallest powers, and leave out any prime that is missing from a number. LCM: largest powers, using every prime that appears.

Worked example 2.4.7
The HCF of x and 18 is 6. The LCM of x and 18 is 90. Find x.

Key words. A common factor of two numbers is a number that divides into both. The highest common factor (HCF) is the biggest one. A common multiple is a number that is in both times tables. The lowest common multiple (LCM) is the smallest one.

Method. Use the fact that HCF × LCM = the product of the two numbers.

  1. Write the fact. For any two numbers a and b, HCF × LCM = a × b. (In a Venn diagram, the HCF and LCM together contain every prime of both numbers.)
    HCF × LCM = x × 18
  2. Substitute the known values.
    6 × 90 = x × 18
    540 = 18x
  3. Solve. Divide both sides by 18.
    x = 540 ÷ 18 = 30

Check. HCF(30, 18): 30 = 2 × 3 × 5 and 18 = 2 × 3 × 3 share 2 × 3 = 6. LCM = 2 × 3 × 5 × 3 = 90. ✓

Watch out. This shortcut only works for two numbers.

Watch out

Do not mix the two up: HCF is a factor (small), LCM is a multiple (big). And the LCM is not always the two numbers multiplied together: LCM of 6 and 8 is 24, not 48.

Exercise 2D  HCF and LCM

Non-calculator
1
FFind the HCF of each pair of numbers by listing their factors.
(a)12 and 18
(b)8 and 20
(c)15 and 25
(d)16 and 40
(e)14 and 21
(f)24 and 36
2
FFind the LCM of each pair of numbers by listing their multiples.
(a)3 and 4
(b)6 and 8
(c)10 and 15
(d)4 and 18
(e)9 and 12
(f)5 and 7
3
FWrite each number as a product of primes, then use a Venn diagram to find the HCF and LCM.
(a)18 and 24
(b)30 and 42
(c)36 and 48
(d)40 and 56
(e)45 and 75
(f)60 and 90
4
FFind the HCF and LCM of each pair of numbers.
(a)84 and 126
(b)72 and 108
(c)120 and 150
(d)168 and 252
5
PSTwo buses leave a depot together at 8:00 am. One leaves every 15 minutes and the other every 20 minutes. At what time do they next leave together?
6
PSA ribbon 84 cm long and a ribbon 126 cm long are cut into equal pieces with no ribbon left over. All the pieces must be the same length. What is the greatest possible length of each piece?
7
PSPencils come in packs of 12. Rubbers come in packs of 15. Ravi wants to buy the same number of pencils as rubbers. What is the smallest number of each pack he must buy?
8
PSTwo lighthouses flash together at 8:00 pm. One flashes every 20 seconds and the other every 30 seconds. How many more times in the next 5 minutes do they flash together?
9
PSA baker has 48 chocolate biscuits and 72 oat biscuits. She makes identical bags, using all the biscuits. Each bag has the same number of chocolate biscuits and the same number of oat biscuits. What is the greatest number of bags she can make, and how many of each biscuit are in a bag?
10
PSThe Venn diagram shows the prime factors of two numbers, A and B.
AB22357
(a)Work out A.
(b)Work out B.
(c)Work out the HCF of A and B.
(d)Work out the LCM of A and B.
11
RSara says: “The LCM of two numbers is always bigger than both of them.” Is she correct? Give an example to explain.
12
R(a) Find the HCF of 8 and 15. (b) Find the LCM of 8 and 15. (c) What do you notice about the LCM and 8 × 15?
(a)(a)
(b)(b)
(c)(c)
13
FFind the HCF and LCM of each set of three numbers.
(a)12, 18, 30
(b)24, 36, 60
(c)20, 30, 45
(d)16, 24, 40
14
PSWrite down the HCF and LCM of A and B as products of prime factors. Then work out their values.
(a)A = 23 × 3 × 52,  B = 22 × 32 × 7
(b)A = 24 × 32,  B = 2 × 33 × 5
(c)A = 22 × 52 × 7,  B = 23 × 5 × 11
15
PSFind the number x in each part. Use HCF × LCM = the product of the two numbers.
(a)The HCF of x and 18 is 6 and the LCM is 90.
(b)The HCF of x and 28 is 4 and the LCM is 84.
(c)The HCF of x and 30 is 5 and the LCM is 150.
16
Ra = 23 × 3 and b = 2 × 32 × 5. Show that HCF × LCM = a × b.
17
PSAlice visits the library every 6 days, Ben every 8 days and Cara every 9 days. All three are there on Monday 1 May. After how many days will they next all be there together?
18
RTwo different whole numbers are both between 10 and 40. Their HCF is 5 and their LCM is 60. Find the two numbers.

Websink Prep UK is an independent site. It is not affiliated with, endorsed by or sponsored by AQA, Pearson Edexcel, OCR, WJEC, Eduqas, CCEA, SQA, GL Assessment, CEM or the Department for Education. All exam board names and trademarks belong to their owners. Past papers are linked from the exam boards' own websites and are not hosted here.

About Websink Prep UK · Find a tutor · Privacy · Terms · Cookie settings