LCM and HCF are two partners: the LCM (lowest common multiple) is the first meeting point of their times tables, and the HCF (highest common factor) is the largest piece that fits into each of them evenly. For 20 and 30, the HCF is 10 and the LCM is 60.
One prime factor tree gives you both answers, and for two numbers they are tied by a neat rule shown in the product section below. This page puts the two ideas next to each other so you stop mixing them up, shows two methods that find both in one go, and ends with a test for word problems.

At a glance
LCM
Lowest common multipleHCF
Highest common factor20 and 30
HCF 10, LCM 60Prime rule
HCF lowest powers, LCM highestTwo numbers
HCF × LCM = a × bAlways true
HCF ≤ each number ≤ LCM
What is LCM and HCF
Start from the times tables and the factor lists of 20 and 30.
- Multiples of 20: 20, 40, 60, 80, ... Multiples of 30: 30, 60, 90, ... The first shared multiple is 60, so LCM = 60.
- Factors of 20: 1, 2, 4, 5, 10, 20. Factors of 30: 1, 2, 3, 5, 6, 10, 15, 30. The largest shared factor is 10, so HCF = 10.
A multiple can never be smaller than its own number, and a factor can never be larger. That is why an HCF never goes past the least of the given numbers, and an LCM never drops under the greatest. Separate pages go deeper on each: how to find LCM and how to find HCF.
HCF and LCM compared in one table
| Point | HCF | LCM |
|---|---|---|
| Built from | factors | multiples |
| Size | no more than the least of them | no less than the greatest of them |
| Prime factor rule | shared primes, lowest power | all primes, highest power |
| Co-prime pair like 9 and 16 | 1 | the product, 144 |
| Typical use | cutting into the largest equal pieces | events that repeat and meet again |
| Fractions | reducing to lowest terms | finding a common denominator |
If you remember just one row, make it the prime factor rule. Every other row follows from it.
How to find LCM and HCF from one factor tree
Factorise each number once, line them up, and read off both answers.
Example 1. Get both answers for 40 and 56 from one set of factors.
- 40 = 23 × 5
- 56 = 23 × 7
- HCF: only 2 is shared, lowest power 23, so HCF = 8
- LCM: 23 × 5 × 7 = 280
- Check: 8 × 280 = 2240 = 40 × 56
Lay the powers out in a small grid with one column per prime. Circle the smaller power in each shared column for the HCF and the larger power in every column for the LCM. The grid stops you dropping a prime, the slip examiners see most often.
The ladder method gives both at once
For two numbers there is a faster layout. Use only primes that split both numbers at once. Stop when the two numbers left have no common factor.
| Common divisor | 36 | 48 |
|---|---|---|
| 2 | 18 | 24 |
| 2 | 9 | 12 |
| 3 | 3 | 4 |
Now 3 and 4 share nothing, so stop. The HCF is the product down the left side: 2 × 2 × 3 = 12. The LCM is that HCF times the two numbers left at the bottom: 12 × 3 × 4 = 144. This L shape, left column for HCF and left column plus bottom row for LCM, is quick to draw in an exam. It is different from the usual LCM division method, where you may divide by a prime that fits only one number. That version is on LCM by division method.
The HCF and LCM product rule
Why it works: in each prime column, one of the two powers goes to the HCF and the other to the LCM, so between them every prime power of a and b is used exactly once.
Example 2. A pair has HCF 6 and LCM 180. If one member of the pair is 36, what is the other?
- Product of the numbers = 6 × 180 = 1080
- Other number = 1080 ÷ 36 = 30
- Check: HCF (36, 30) = 6 and LCM (36, 30) = 180
A trap question gives an HCF that does not divide the LCM, such as HCF 7 and LCM 60. No such pair exists, since the LCM of a pair is a whole number of HCFs. Proof and practice live on relation between HCF and LCM. The rule is for two numbers only.
HCF and LCM of fractions
Example 3. For the fractions 2/3 and 4/9, work out the HCF first and then the LCM.
- Numerators 2 and 4: HCF 2, LCM 4
- Denominators 3 and 9: HCF 3, LCM 9
- HCF of the fractions = 2/9
- LCM of the fractions = 4/3
Write each fraction in lowest terms first, or the answer can come out wrong. For more cases see LCM of fractions.
Does the question want the HCF or the LCM?
Read the story, then ask: will the answer be bigger or smaller than the numbers given?
- Smaller, and it splits things evenly: HCF. Words like largest size, greatest number of rows, maximum length of each piece.
- Bigger, and things line up again: LCM. Look for phrases such as next time they coincide, sound at once, or least number divisible by.
Example 4. Three alarms go off every 6, 8 and 12 seconds and have just sounded at once. When do all three sound at once again?
- The beeps repeat and meet again, so this is an LCM sum.
- LCM (6, 8, 12) = 24
- Answer: after 24 seconds
Example 5. 48 mangoes, 64 apples and 80 bananas go into crates, one kind of fruit per crate, and every crate equally full. How many fruits can each crate take at most?
- Equal crates, as full as possible: an HCF sum.
- HCF (48, 64, 80) = 16
- Each crate holds 16 fruits, and there are 3 + 4 + 5 = 12 crates.
LCM and HCF in Hindi and other names
In Hindi medium books the two terms have their own names. Learn them so you can read questions in either language.
LCM को लघुत्तम समापवर्त्य (ल.स.) और HCF को महत्तम समापवर्तक (म.स.) कहते हैं।
In some books HCF is written GCD, for greatest common divisor, or GCF, for greatest common factor. They all mean the same thing. For a full Hindi walk through of LCM, see LCM kaise nikale. All the pages in this topic are gathered on the number system section page.
Mistakes that mix up HCF and LCM
- Using the highest powers for the HCF. Lowest powers give the HCF; highest give the LCM.
- Giving an HCF bigger than one of the numbers, or an LCM smaller than one of them. Both are impossible.
- Trusting the two number product rule with three numbers. For 6, 8 and 12, HCF 2 × LCM 24 = 48, but 6 × 8 × 12 = 576.
- Answering an equal pieces question with the LCM. If the answer must split the numbers, it is the HCF.
Frequently asked questions
What is HCF and LCM in maths?
In full, HCF is highest common factor and LCM is lowest common multiple. The first is the biggest shared factor, the second the first shared multiple. For 20 and 30 they are 10 and 60.
How to find HCF and LCM quickly?
Write each number in prime factors. Multiply the shared primes at their lowest powers for the HCF, and all primes at their highest powers for the LCM. For two numbers the ladder method is even faster.
Can the HCF be greater than the LCM?
No. The HCF sits at or below each number, and each number sits at or below the LCM, so the HCF can never come out on top. The two match only if every given number is identical.
What is the HCF and LCM of two co-prime numbers?
The HCF is 1 and the LCM is their product. For 9 and 16, HCF = 1 and LCM = 144.
Does the HCF always divide the LCM?
Yes. Every prime power in the HCF also appears, at the same or a higher power, in the LCM. So LCM ÷ HCF is always a whole number.
Where can I practise LCM and HCF?
Try our LCM and HCF questions with worked answers, or the printable LCM and HCF worksheet.