How to find the HCF (highest common factor): 3 methods
TutorAura guide · Updated
The highest common factor (HCF), also called the greatest common factor (GCF), is the largest number that divides into two or more numbers exactly. The HCF of 12 and 18 is 6. Three methods work: listing factors (small numbers), prime factors (most exam questions) and Euclid's method (large numbers).
Key takeaways
- Listing factors works for small numbers.
- Prime factors: take only shared primes, with their lowest power.
- Euclid's method is fast for large numbers.
- Use the HCF to simplify fractions and factorise.
Method 1: list factors
- Factors of 12: 1, 2, 3, 4, 6, 12
- Factors of 18: 1, 2, 3, 6, 9, 18
The largest factor in both lists is 6.
Method 2: prime factors
- and .
- Keep only the primes in both: 2 and 3.
- Use the lowest power of each: and .
- HCF .
Method 3: Euclid's method
Divide the larger number by the smaller, then repeat with the smaller number and the remainder:
The last non-zero remainder, 12, is the HCF. This is very quick for large numbers.
Using the HCF
- Simplify fractions: . See how to simplify fractions.
- Factorise: . See factorising.
- Word problems: What's the largest number of identical gift bags you can make from 84 sweets and 120 stickers, with nothing left over? 12 bags.
Common mistakes
- Taking the highest powers (that gives the LCM).
- Including a prime that's in only one number.
- Stopping at a common factor that isn't the highest.
Practice
Find the HCF of: (a) 24 and 36, (b) 45 and 75, (c) 18, 30 and 42. Answers: 12, 15, 6. Check with the HCF calculator.
The HCF of three numbers
For 18, 30 and 42:
The primes in all three are 2 and 3, each with lowest power 1, so the HCF is . 5 and 7 are left out because they're not in every number.
When the HCF is 1
Some pairs of numbers share no prime factors at all, such as 8 () and 15 (). Their HCF is 1, and they're called coprime. A fraction whose top and bottom are coprime, like , is already in its simplest form. Two different primes are always coprime, and so are any two consecutive numbers.
HCF or LCM? Reading word problems
- HCF questions split things into the largest equal groups: "greatest number of bags", "largest possible tile", "longest equal pieces".
- LCM questions wait for things to line up again: "next time together", "smallest number of packs to have the same amount".
A floor is 240 cm by 180 cm. What's the largest square tile that covers it exactly, with no cutting? That's the HCF: and , so the HCF is cm. You'd need tiles.
Frequently asked questions
How can I check an HCF answer?
Divide both numbers by it. Both answers should be whole numbers, and they should share no common factor other than 1. For 12 and 18, dividing by 6 gives 2 and 3, which share nothing, so 6 is the highest common factor.
What is the HCF of 12 and 18?
6. The factors of 12 are 1, 2, 3, 4, 6 and 12; the factors of 18 are 1, 2, 3, 6, 9 and 18. The largest factor in both lists is 6.
Is the HCF the same as the GCF and GCD?
Yes. Highest common factor (HCF), greatest common factor (GCF) and greatest common divisor (GCD) are three names for the same thing. UK schools usually say HCF; US schools say GCF.
Sources
- National curriculum in England: mathematics programmes of study. Department for Education.
- Common Core State Standards for Mathematics. Common Core State Standards Initiative.
- Mathematics GCSE subject content and assessment objectives. Department for Education.
Keep reading
HCF and LCM questions and answers
8 GCSE and IGCSE questions with worked answers, checked as you type.
HCF and GCF calculator with steps (highest common factor)
Highest common factor (greatest common factor) of 2 to 10 numbers, with prime factors and a Venn diagram.
How to find the LCM (lowest common multiple): 3 methods
Listing multiples, prime factors and Venn diagrams, with worked examples and word problems.
Factor trees: how to find prime factors step by step
How to draw a factor tree, write the answer in index form, and use it for HCF, LCM and roots.
How to simplify fractions (with examples)
Divide top and bottom by common factors (or the HCF) until the fraction is in lowest terms.