Maths explained · Years 7 and 8

How to find the HCF and LCM

The highest common factor (HCF) and lowest common multiple (LCM) come up in fractions, algebra and a whole family of word problems about packs, tiles and timetables. Here are three ways to find them, how to tell which one a question wants, and a calculator that shows the prime factor working for any two or three numbers.

Quick answer

To find the HCF and LCM, write each number as a product of prime factors. The HCF multiplies the primes the numbers share, using the lowest power of each. The LCM multiplies every prime that appears, using the highest power. For 84 = 2² × 3 × 7 and 120 = 2³ × 3 × 5, the HCF is 2² × 3 = 12 and the LCM is 2³ × 3 × 5 × 7 = 840.

Stuck on an HCF or LCM question?

Snap it. Tuterly shows a detailed worked solution, then gives fresh questions on the same skill until you can do it on your own. Years 7 to 10.

Coming soon on iPhone. Android soon after.

Launch price: 50% off until 31 March 2027. $17.99 $8.99 a week or $59.99 $29.99 a month.

We'll email you when Tuterly launches, plus occasional maths tips and offers. Unsubscribe any time. See our privacy policy.

Years 7 to 10 maths · Coming to iPhone first, then Android

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 1212 and 1818 is 66.
  • The lowest common multiple (LCM) is the smallest number that is a multiple of all of them. The LCM of 1212 and 1818 is 3636.

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 1818 and 2424.

List the factors of each number in pairs, so none are missed:

18: 1,2,3,6,9,1818:\ 1, 2, 3, 6, 9, 18 24: 1,2,3,4,6,8,12,2424:\ 1, 2, 3, 4, 6, 8, 12, 24

The common factors are 1,2,31, 2, 3 and 66. The highest is

HCF=6\text{HCF} = 6

Worked example: LCM by listing

Find the LCM of 66 and 88.

List multiples of the bigger number and stop at the first one the smaller number divides into:

8, 16, 24,…8,\ 16,\ 24, \ldots

8÷68 \div 6 and 16÷616 \div 6 don’t work, but 24÷6=424 \div 6 = 4. So

LCM=24\text{LCM} = 24

Notice it isn’t 6×8=486 \times 8 = 48. 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 8484 and 120120.

84=22×3×784 = 2^2 \times 3 \times 7 120=23×3×5120 = 2^3 \times 3 \times 5

HCF. Both contain 22 and 33. The lowest power of 22 is 222^2, and of 33 is 313^1:

HCF=22×3=12\text{HCF} = 2^2 \times 3 = 12

LCM. The primes are 2,3,5,72, 3, 5, 7. Highest powers: 232^3, 33, 55, 77:

LCM=23×3×5×7=840\text{LCM} = 2^3 \times 3 \times 5 \times 7 = 840

Check: 12×840=10 08012 \times 840 = 10\,080 and 84×120=10 08084 \times 120 = 10\,080 ✓

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 6060 and 7272.

Write out every prime, repeats included:

60=2×2×3×560 = 2 \times 2 \times 3 \times 5 72=2×2×2×3×372 = 2 \times 2 \times 2 \times 3 \times 3

Match up the ones they share: two 22s and one 33. Those go in the overlap.

  • Overlap: 2,2,32, 2, 3
  • Only in 6060: 55
  • Only in 7272: 2,32, 3

The HCF is the overlap multiplied together:

HCF=2×2×3=12\text{HCF} = 2 \times 2 \times 3 = 12

The LCM is everything in the diagram multiplied together:

LCM=5×(2×2×3)×2×3\text{LCM} = 5 \times (2 \times 2 \times 3) \times 2 \times 3 LCM=5×12×6=360\text{LCM} = 5 \times 12 \times 6 = 360

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 = 12, LCM = 840

  1. Write each number as a product of prime factors:
  2. 84=22×3×784 = 2^{2} \times 3 \times 7
  3. 120=23×3×5120 = 2^{3} \times 3 \times 5
  4. HCF: take each prime that is in every number, with its lowest power: 22×3=122^{2} \times 3 = 12
  5. LCM: take every prime that appears anywhere, with its highest power: 23×3×5×7=8402^{3} \times 3 \times 5 \times 7 = 840
  6. Check: HCF×LCM=12×840=10080\text{HCF} \times \text{LCM} = 12 \times 840 = 10080, which equals 84×120=1008084 \times 120 = 10080 ✓

HCF: primes in every number, lowest power. LCM: every prime, highest power.

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 1818, 3030 and 4545.

18=2×3218 = 2 \times 3^2 30=2×3×530 = 2 \times 3 \times 5 45=32×545 = 3^2 \times 5

HCF. Only 33 is in all three (22 is missing from 4545, and 55 is missing from 1818). The lowest power of 33 is 313^1:

HCF=3\text{HCF} = 3

LCM. Every prime with its highest power: 212^1, 323^2, 515^1:

LCM=2×32×5=90\text{LCM} = 2 \times 3^2 \times 5 = 90

Check: 90÷18=590 \div 18 = 5, 90÷30=390 \div 30 = 3, 90÷45=290 \div 45 = 2 ✓

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 4848 pencils and 3636 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 4848 and 3636, and we want the greatest, so find the HCF.

48=24×336=22×3248 = 2^4 \times 3 \qquad 36 = 2^2 \times 3^2 HCF=22×3=12\text{HCF} = 2^2 \times 3 = 12

She can make 1212 packs, each with 48÷12=448 \div 12 = 4 pencils and 36÷12=336 \div 12 = 3 erasers.

Worked example: an LCM problem

Two buses leave the depot together at 7:00 am. Route A leaves every 1212 minutes and Route B every 2020 minutes. When do they next leave together?

Route A leaves at 12,24,36,…12, 24, 36, \ldots minutes and Route B at 20,40,60,…20, 40, 60, \ldots minutes. We need the first time in both lists, which is the LCM.

12=22×320=22×512 = 2^2 \times 3 \qquad 20 = 2^2 \times 5 LCM=22×3×5=60\text{LCM} = 2^2 \times 3 \times 5 = 60

They next leave together 6060 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 84120\dfrac{84}{120}. (b) Work out 512+718\dfrac{5}{12} + \dfrac{7}{18}.

(a) The HCF of 8484 and 120120 is 1212 (from Method 2). Divide top and bottom by 1212:

84120=84÷12120÷12=710\frac{84}{120} = \frac{84 \div 12}{120 \div 12} = \frac{7}{10}

(b) 12=22×312 = 2^2 \times 3 and 18=2×3218 = 2 \times 3^2, so the LCM is 22×32=362^2 \times 3^2 = 36.

512+718=1536+1436=2936\frac{5}{12} + \frac{7}{18} = \frac{15}{36} + \frac{14}{36} = \frac{29}{36}

2929 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. 6×8=486 \times 8 = 48 is a common multiple, but the LCM is 2424. Only coprime numbers have their product as the LCM.
  • Using the highest power for the HCF. For 22×32^2 \times 3 and 23×52^3 \times 5, the HCF uses 222^2, not 232^3, because 23=82^3 = 8 doesn’t divide into 1212.
  • Including a prime that isn’t in every number. In the HCF of 1818, 3030 and 4545, the 22 is left out because 4545 is odd.
  • Saying the HCF is 0 when nothing is shared. If no prime is shared, the HCF is 11, since 11 divides every whole number.
  • Using HCF × LCM = product for three numbers. It only holds for two. For 1818, 3030 and 4545: 3×90=2703 \times 90 = 270, but 18×30×45=24 30018 \times 30 \times 45 = 24\,300.

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.

  1. List the factors of 3030 and 4242, and find their HCF.

    Show the answer

    Factors of 3030: 1,2,3,5,6,10,15,301, 2, 3, 5, 6, 10, 15, 30. Factors of 4242: 1,2,3,6,7,14,21,421, 2, 3, 6, 7, 14, 21, 42. The highest in both lists is 66, so the HCF is 66.

  2. List multiples to find the LCM of 99 and 1515.

    Show the answer

    Multiples of 1515: 15,30,45,…15, 30, 45, \ldots The first that 99 also divides into is 4545, so the LCM is 4545.

  3. Use prime factors to find the HCF and LCM of 9090 and 126126.

    Show the answer

    90=2×32×590 = 2 \times 3^2 \times 5 and 126=2×32×7126 = 2 \times 3^2 \times 7. HCF =2×32=18= 2 \times 3^2 = 18. LCM =2×32×5×7=630= 2 \times 3^2 \times 5 \times 7 = 630. Check: 18×630=11 340=90×12618 \times 630 = 11\,340 = 90 \times 126 ✓

  4. Find the HCF and LCM of 1616, 2424 and 4040.

    Show the answer

    16=2416 = 2^4, 24=23×324 = 2^3 \times 3, 40=23×540 = 2^3 \times 5. HCF =23=8= 2^3 = 8. LCM =24×3×5=240= 2^4 \times 3 \times 5 = 240.

  5. Find the HCF and LCM of 3535 and 4848.

    Show the answer

    35=5×735 = 5 \times 7 and 48=24×348 = 2^4 \times 3. They share no primes, so the HCF is 11 and the LCM is 35×48=168035 \times 48 = 1680.

  6. A rectangular courtyard is 360360 cm by 280280 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 360360 and 280280: 360=23×32×5360 = 2^3 \times 3^2 \times 5, 280=23×5×7280 = 2^3 \times 5 \times 7, so HCF =23×5=40= 2^3 \times 5 = 40 cm. That gives 360÷40=9360 \div 40 = 9 by 280÷40=7280 \div 40 = 7, so 9×7=639 \times 7 = 63 pavers.

  7. One lighthouse flashes every 88 seconds and another every 1414 seconds. They flash together now. How long until they next flash together?

    Show the answer

    LCM of 8=238 = 2^3 and 14=2×714 = 2 \times 7 is 23×7=562^3 \times 7 = 56. They flash together again after 5656 seconds.

  8. Two numbers have an HCF of 66 and an LCM of 7272. One number is 1818. Find the other.

    Show the answer

    For two numbers, HCF ×\times LCM == product. 6×72=4326 \times 72 = 432, so the other number is 432÷18=24432 \div 18 = 24. Check: HCF of 1818 and 2424 is 66, LCM is 7272 ✓

The Tuterly Method

Snap. Fix. Ace.

Gave the LCM when the question wanted the HCF? Don't just fix it. Study the mistake.

  1. Snap.

    Snap every question you get wrong, from tests, homework and class work.

  2. Fix.

    See the worked solution, then fresh questions on that skill. Even just one each day.

  3. Ace.

    A full practice test, with questions you've got wrong mixed in.

How the Tuterly Method works →

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.

HCF and LCM: common questions

What is the difference between HCF and LCM?

The highest common factor (HCF) is the biggest number that divides exactly into all of the numbers, so it is never bigger than the smallest one. The lowest common multiple (LCM) is the smallest number that all of the numbers divide into, so it is never smaller than the biggest one. For 12 and 18, the HCF is 6 and the LCM is 36.

How do you find the HCF using prime factors?

Write each number as a product of primes in index notation. Take each prime that appears in every number, using the lowest power, and multiply them. For 84 = 2² × 3 × 7 and 120 = 2³ × 3 × 5, the shared primes are 2 and 3, the lowest powers are 2² and 3, so the HCF is 4 × 3 = 12.

How do you find the LCM using prime factors?

Write each number as a product of primes. Take every prime that appears in any of the numbers, using its highest power, and multiply them. For 84 = 2² × 3 × 7 and 120 = 2³ × 3 × 5, that is 2³ × 3 × 5 × 7 = 840.

Is HCF the same as GCD or GCF?

Yes. Highest common factor (HCF), greatest common factor (GCF) and greatest common divisor (GCD) are three names for the same thing. Australian textbooks usually say HCF. Similarly, lowest common multiple and least common multiple (both LCM) mean the same.

How do I know whether a word problem needs the HCF or the LCM?

If you are splitting things into equal groups, packs or pieces that are as large as possible, it is an HCF question, and the answer is smaller than the numbers given. If you are waiting for repeating events to line up again, or need the smallest amount that several sizes fit into exactly, it is an LCM question, and the answer is bigger than the numbers given.

What is the HCF of two prime numbers?

The HCF of two different prime numbers is always 1, because a prime's only factors are 1 and itself. Their LCM is their product, so for 7 and 11 the HCF is 1 and the LCM is 77. Numbers with an HCF of 1 are called coprime.

Tuterly · Years 7 to 10 maths

Mixed up the HCF and the LCM on a test?

Snap the question with Tuterly. You’ll see every step of the working, then get fresh questions on the same skill until it’s mastered. Built for the Australian Curriculum by Bayside Academics.

Coming soon on iPhone. Android soon after.

Launch price: 50% off until 31 March 2027. $17.99 $8.99 a week or $59.99 $29.99 a month.

We'll email you when Tuterly launches, plus occasional maths tips and offers. Unsubscribe any time. See our privacy policy.

Years 7 to 10 maths · Coming to iPhone first, then Android
Or try it free now with your own question →