HCF and LCM of 12 and 18
For 12 and 18, the highest common factor is 6 and the least common multiple is 36.
HCF = 6. LCM = 36.
These two results answer different questions: the HCF is the largest shared divisor, while the LCM is the smallest positive shared multiple.
6 divides both 12 and 18 exactly.
36 is the first positive number both values divide into.
Factors of 12 and 18
- Factors of 12
- 1, 2, 3, 4, 6, 12
- Factors of 18
- 1, 2, 3, 6, 9, 18
- Common factors
- 1, 2, 3, 6
The common factors are the values that divide both numbers with no remainder. The greatest one is 6, so HCF(12, 18) = 6.
Prime factorisation working
For the HCF, use only the shared primes at their smallest powers: 2 × 3 = 6. For the LCM, use every prime needed at its greatest power: 2² × 3² = 36.
Need to calculate different numbers?
Enter any valid pair or longer list in the full calculators. They update as you type and show their own working.
What these answers mean
Use the HCF when you want the largest equal grouping size or to simplify a fraction. Use the LCM when you want the first time two repeating schedules meet, or a least common denominator for fractions.
This page is a worked answer for 12 and 18. It is not a replacement for checking your own question: use the calculators above for other inputs.