What HCF and LCM mean
A factor of a number divides into it exactly. A multiple of a number is in its times table.
- The highest common factor (HCF) of two or more numbers is the largest number that is a factor of all of them. The HCF of and is .
- The lowest common multiple (LCM) is the smallest number that is a multiple of all of them. The LCM of and is .
A quick sense check: the HCF can’t be bigger than the smallest number, and the LCM can’t be smaller than the biggest number.
Method 1: list the factors or multiples
For small numbers, writing out the lists is fast and hard to get wrong.
Worked example: HCF by listing
Find the HCF of and .
List the factors of each number in pairs, so none are missed:
The common factors are and . The highest is
Worked example: LCM by listing
Find the LCM of and .
List multiples of the bigger number and stop at the first one the smaller number divides into:
and don’t work, but . So
Notice it isn’t . Multiplying the numbers gives a common multiple, but not always the lowest one.
Method 2: prime factors (works for any size)
Once the numbers are bigger, listing gets slow. Write each number as a product of primes in index notation (see prime factorisation if you need a refresher), then:
- HCF: primes that are in every number, with the lowest power.
- LCM: every prime that appears, with the highest power.
Worked example
Find the HCF and LCM of and .
HCF. Both contain and . The lowest power of is , and of is :
LCM. The primes are . Highest powers: , , , :
Check: and ✓
That check always works for two numbers: the HCF times the LCM equals the two numbers multiplied together. It does not work for three numbers.
Method 3: a Venn diagram of prime factors
Some teachers like a Venn diagram because it shows both answers at once. Put the shared primes in the overlap and the leftovers in each side.
Worked example
Find the HCF and LCM of and .
Write out every prime, repeats included:
Match up the ones they share: two s and one . Those go in the overlap.
- Overlap:
- Only in :
- Only in :
The HCF is the overlap multiplied together:
The LCM is everything in the diagram multiplied together:
HCF and LCM calculator (with working)
Type two or three whole numbers up to one million, separated by commas. You’ll see each prime factorisation, how the HCF and LCM are built from it, and a check.
HCF and LCM of three numbers
The prime factor rules are exactly the same. The only difference is that for the HCF, a prime has to be in all three numbers.
Worked example
Find the HCF and LCM of , and .
HCF. Only is in all three ( is missing from , and is missing from ). The lowest power of is :
LCM. Every prime with its highest power: , , :
Check: , , ✓
Word problems: is it HCF or LCM?
- Sharing or cutting into equal groups, as big as possible: HCF. The answer is smaller than the numbers in the question.
- Things repeating until they line up again, or the smallest amount several sizes fit into: LCM. The answer is bigger than the numbers in the question.
Worked example: an HCF problem
A teacher has pencils and erasers. She wants to make identical packs using all of them, with nothing left over. What is the greatest number of packs she can make, and what is in each pack?
The number of packs must divide into both and , and we want the greatest, so find the HCF.
She can make packs, each with pencils and erasers.
Worked example: an LCM problem
Two buses leave the depot together at 7:00 am. Route A leaves every minutes and Route B every minutes. When do they next leave together?
Route A leaves at minutes and Route B at minutes. We need the first time in both lists, which is the LCM.
They next leave together minutes later, at 8:00 am.
Using HCF and LCM with fractions
The HCF simplifies a fraction in one step, and the LCM of the denominators is the lowest common denominator for adding and subtracting.
Worked example
(a) Simplify . (b) Work out .
(a) The HCF of and is (from Method 2). Divide top and bottom by :
(b) and , so the LCM is .
is prime, so the answer can’t be simplified.
Common mistakes
- Swapping the two answers. If your “HCF” is bigger than the numbers, or your “LCM” is smaller, you’ve mixed them up.
- Multiplying the numbers to get the LCM. is a common multiple, but the LCM is . Only coprime numbers have their product as the LCM.
- Using the highest power for the HCF. For and , the HCF uses , not , because doesn’t divide into .
- Including a prime that isn’t in every number. In the HCF of , and , the is left out because is odd.
- Saying the HCF is 0 when nothing is shared. If no prime is shared, the HCF is , since divides every whole number.
- Using HCF × LCM = product for three numbers. It only holds for two. For , and : , but .
Practice questions with answers
Try each one before you open the answer. For the word problems, decide first whether it’s an HCF or an LCM question.
List the factors of and , and find their HCF.
Show the answer
Factors of : . Factors of : . The highest in both lists is , so the HCF is .
List multiples to find the LCM of and .
Show the answer
Multiples of : The first that also divides into is , so the LCM is .
Use prime factors to find the HCF and LCM of and .
Show the answer
and . HCF . LCM . Check: ✓
Find the HCF and LCM of , and .
Show the answer
, , . HCF . LCM .
Find the HCF and LCM of and .
Show the answer
and . They share no primes, so the HCF is and the LCM is .
A rectangular courtyard is cm by cm. It will be covered with identical square pavers with no cutting. What is the largest paver side length possible, and how many pavers are needed?
Show the answer
HCF of and : , , so HCF cm. That gives by , so pavers.
One lighthouse flashes every seconds and another every seconds. They flash together now. How long until they next flash together?
Show the answer
LCM of and is . They flash together again after seconds.
Two numbers have an HCF of and an LCM of . One number is . Find the other.
Show the answer
For two numbers, HCF LCM product. , so the other number is . Check: HCF of and is , LCM is ✓
The Tuterly Method
Snap. Fix. Ace.
Gave the LCM when the question wanted the HCF? Don't just fix it. Study the mistake.
Snap.
Snap every question you get wrong, from tests, homework and class work.
Fix.
See the worked solution, then fresh questions on that skill. Even just one each day.
Ace.
A full practice test, with questions you've got wrong mixed in.
HCF and LCM by year level
Following the Victorian Curriculum 2.0. Schools sequence topics differently, so check your course.
Year 7
Powers and prime factors
Prime factors in index notation, and using them to find the HCF and LCM of whole numbers.
Year 7
Fraction operations
Simplifying with the HCF and adding or subtracting fractions over the lowest common denominator.
Year 8
Factorising
The HCF of algebraic terms like 12a²b and 18ab, taken outside the brackets.