ShareYourGroupShareYourGroupFactors

HCF: highest common factor, three methods

The highest common factor (HCF) of two or more numbers is the largest number that divides all of them exactly. It is also called the greatest common divisor (GCD) or greatest common factor (GCF). All three names mean the same thing.

Method 1: listing factors

Good for small numbers. Find the HCF of 24 and 36.

The highest is 12, so HCF(24, 36) = 12.

Method 2: prime factorisation

Write each number as a product of primes. Take the primes that appear in every number, each with its smallest power, and multiply.

Both contain 2 and 3. The smaller power of 2 is 2², and of 3 is 3. HCF = 2² × 3 = 12.

Method 3: long division (Euclid's method)

Best for large numbers, because it needs no factorising. Divide the larger number by the smaller. Then divide the divisor by the remainder. Keep going until the remainder is 0. The last divisor is the HCF.

Find the HCF of 198 and 360:

  1. 360 ÷ 198 = 1, remainder 162
  2. 198 ÷ 162 = 1, remainder 36
  3. 162 ÷ 36 = 4, remainder 18
  4. 36 ÷ 18 = 2, remainder 0

The last divisor is 18, so HCF(198, 360) = 18. The reason this works is on the Euclid's algorithm page.

HCF of three numbers

Find the HCF of the first two, then the HCF of that answer and the third. For 24, 36 and 60: HCF(24, 36) = 12, and HCF(12, 60) = 12. With prime factors it can be done in one step: 24 = 2³ × 3, 36 = 2² × 3², 60 = 2² × 3 × 5. All three share 2² and 3, so the HCF is 12.

Facts about HCF

When a question needs the HCF

Look for the words largest, greatest, maximum, or the idea of cutting or sharing things into equal parts with nothing left over.

More solved questions are on the word problems page. To see the working for your own numbers, use the HCF and LCM calculator.

More