➗ Mathematics

HCF and LCM Using Prime Factorisation (GCF and LCM)

Write numbers as products of primes, then find the highest common factor (greatest common factor in the US) and the lowest common multiple.

  • ⏱ 3 min read
  • ✏️ 3 worked examples
  • 🎯 5 practice questions
  • 📶 Intermediate
GCSEMiddle SchoolHigh School

Curriculum fit: GCSE Maths Number (Foundation and Higher, including Venn diagram method). US: Grade 6 greatest common factor and least common multiple.

On this page

What Is It?

Every whole number above 1 can be written as a product of prime numbers in exactly one way. This is called its prime factorisation. A factor tree is a simple way to find it.

The highest common factor (HCF, called GCF in the US) is the largest number that divides into two numbers. The lowest common multiple (LCM) is the smallest number that both divide into. Prime factorisation makes both easy to find.

60610232560 = 2 × 2 × 3 × 5 = 2² × 3 × 5
Keep splitting into factors until every branch ends in a prime number. Multiply the primes to write the number as a product of prime factors.

Key Formulas and Ideas

  • HCF: multiply the prime factors the two numbers share (using the lower power of each).
  • LCM: multiply all prime factors that appear, using the higher power of each.
  • For two numbers a and b: HCF × LCM = a × b.

Worked Examples

Example 1

Prime Factorisation

Question

Write 60 as a product of prime factors.

  1. 60 = 6 × 10.
  2. 6 = 2 × 3 and 10 = 2 × 5.
  3. Collect the primes: 2 × 2 × 3 × 5.

✓ Answer 60 = 2² × 3 × 5

Example 2

HCF

Question

Find the HCF of 36 and 48.

  1. 36 = 2² × 3² and 48 = 2⁴ × 3.
  2. Take the lower power of each shared prime: 2² and 3.
  3. Multiply: 4 × 3 = 12.

✓ Answer 12

Example 3

LCM

Question

Find the LCM of 36 and 48.

  1. Take the higher power of each prime: 2⁴ and 3².
  2. Multiply: 16 × 9 = 144.

✓ Answer 144

Common Mistakes to Avoid

  • Stopping a factor tree before every branch ends in a prime.
  • Mixing up HCF and LCM. The HCF is never larger than either number and the LCM is never smaller.
  • Using the higher power for the HCF instead of the lower.
  • Leaving the answer as a list instead of writing it with powers, such as 2² × 3.

Practice Questions

0 of 5 answered
Q1Write 24 as a product of primes.
Q2What is the HCF of 12 and 18?
Q3What is the LCM of 12 and 18?
Q4What is the HCF of 15 and 28?
Q5Two buses leave every 10 minutes and every 15 minutes. After how many minutes do they next leave together?

Frequently Asked Questions

When would I use LCM in real life?

To find when two repeating events line up, such as buses that leave every 12 and 18 minutes.

What if two numbers share no prime factors?

Their HCF is 1, and their LCM is the product of the two numbers.

Take This Guide With You

Get a free printable PDF with the worked examples and quiz answers. Enter your email and the download starts straight away.

Sources and Review

Reviewed by StudyMorrow editorial review on 5 Nov 2026.