LCM and HCF calculator
Lowest common multiple and highest common factor by prime factorisation.
HCF 6, LCM 180
- 12 = 2 × 2 × 3
- 18 = 2 × 3 × 3
- 30 = 2 × 3 × 5
- HCF = 6
- LCM = 180
How it works
Break each number into primes. The HCF takes each common prime with its smallest power; the LCM takes every prime with its largest power.
For two numbers, HCF × LCM = the product of the numbers, a quick way to check.
Worked example
With Numbers = 12, 18, 30:
- 12 = 2 × 2 × 3
- 18 = 2 × 3 × 3
- 30 = 2 × 3 × 5
- HCF = 6
- LCM = 180
Answer: HCF 6, LCM 180
Questions
- What is the difference between HCF and LCM?
- HCF is the biggest number that divides all of them; LCM is the smallest number all of them divide into.
Learn the method properly
The chapter behind this tool, with animations, an experiment and an AI tutor who checks each step you write.
Open the chapter