Two or more numbers. The HCF is also called the GCF (greatest common factor) or GCD (greatest common divisor).

36
lowest common multiple (LCM)

Highest common factor (HCF)6
By prime factors12 = 2² × 3; 18 = 2 × 3²; HCF = 2 × 3, LCM = 2² × 3²
Check6 × 36 = 216 = 12 × 18

How it works

Write each number as a product of primes. The HCF multiplies the primes they share, each to the lowest power it appears; the LCM multiplies every prime that appears, each to the highest power. 12 = 2² × 3 and 18 = 2 × 3², so the HCF is 2 × 3 = 6 and the LCM is 2² × 3² = 36. For two numbers, HCF × LCM always equals the two numbers multiplied together: 6 × 36 = 216 = 12 × 18.

Common pairs

NumbersHCFLCM
4 and 6212
6 and 8224
8 and 12424
9 and 12336
12 and 18636
12 and 16448
15 and 20560
18 and 24672
24 and 361272
7 and 9163

LCM and HCF of other pairs

Frequently asked questions

How do you find the LCM of two numbers?

List the multiples of each until you find the first one they share, or use prime factors: multiply every prime that appears in either number, each to its highest power. For 12 and 18: multiples of 12 are 12, 24, 36…; of 18, 18, 36…; so the LCM is 36.

How do you find the HCF of two numbers?

List the factors of each and take the biggest they share, or multiply the primes they have in common, each to its lowest power. Factors of 12 are 1, 2, 3, 4, 6, 12; of 18, 1, 2, 3, 6, 9, 18; so the HCF is 6. For big numbers, Euclid's method is quickest: divide the bigger by the smaller, then the smaller by the remainder, until the remainder is 0; the last divisor is the HCF.

What's the difference between HCF, GCF and GCD?

Nothing: highest common factor (HCF, usual in the UK), greatest common factor (GCF) and greatest common divisor (GCD) are the same thing.

What does coprime mean?

Two numbers are coprime when their only common factor is 1, like 7 and 9. Their LCM is just the two multiplied together: 63.

What is the LCM used for?

Adding fractions with different denominators (the LCM of the denominators is the lowest common denominator), and working out when repeating events line up, such as two buses every 12 and 18 minutes leaving together every 36.

Embed this calculator on your website

Free to use. Paste this into your page's HTML; please keep the link underneath.

Related calculators