Arithly

← All maths topics

Highest common factor (HCF) and lowest common multiple (LCM)

The highest common factor (HCF) of two numbers is the largest number that divides both of them. The lowest common multiple (LCM) is the smallest number that both of them divide into.

Prime factorisation finds both from the same working: the HCF takes the primes the numbers SHARE, at the lowest power; the LCM takes every prime that appears, at the highest power.

The same prime working answers both questions, which is why textbooks teach them as a pair. A useful check: for any two numbers, HCF × LCM equals the product of the two numbers themselves. In word problems the two hide in disguise — buses leaving a station together again (an LCM) or two ropes cut into the longest equal pieces with nothing left over (an HCF) — so decide first which of the two the story is really asking for.

Think first

Before reading the solution, try to answer these — they are the hints Arithly itself gives:

Worked example

Find the HCF of 24 and 36

  1. 24 = 2³ × 3.
  2. 36 = 2² × 3².
  3. Keep only the primes that appear in EVERY number, at their LOWEST power: 2² × 3.
  4. HCF = 2² × 3 = 12.

Answer: 12

Practice

Try these yourself. Each one opens in Arithly with the question already filled in — solve it there and check your working:

More topics: all maths topics · Next topic: Laws of indices

© 2026 Arithly. Content: CC BY-NC 4.0 · Code & solver: all rights reserved.