HCF and LCM calculator
The highest common factor and the lowest common multiple of two numbers, with both broken into primes.
AnswerHCF 3 · LCM 105
- Break 21 into primes3 × 7
- Break 15 into primes3 × 5
- HCF — multiply the primes they share3
- LCM — the shortcut21 × 15 ÷ HCF = 315 ÷ 3 = 105
- Which one do I need?The HCF simplifies a fraction. The LCM gives a common denominator for adding one.
How it works
They sound alike and get confused, so it helps to know what each is for: the HCF simplifies a fraction, the LCM gives you a common denominator for adding one.
The mistake worth knowing about
Using the HCF where the LCM is wanted. If you are adding fractions, it is the multiple you need, not the factor.
Practise it on paper
Free printable worksheets for the same topic, with the answers on the sheet.
Using this with a class
Put it on the board, send the link home, or leave it open on a tablet. There is nothing to sign up for, no advert on it and no limit on how often it is used. If it is useful, pass it on.
The calculators either side of this one
- Percentage calculator — Year 6 to Year 9 · Grade 5 to Grade 8
- Prime factorisation calculator — Year 7 to Year 9 · Grade 6 to Grade 8
Every calculator · Free worksheets · How we teach maths
Would one-to-one lessons help your child with this?
A calculator shows the method. What it cannot do is notice that your child is getting the right answer by a route that will stop working next year — and that is the thing a teacher watching them work sees in a few minutes. The first lesson is free and no card is taken.
Start Your Journey of Online Learning Today!
Book a free trial class, meet the teacher, and decide afterwards. There is nothing to pay and nothing to cancel.
- 1-on-1 lessons, never a group
- Male and female tutors available
- Parents can join any lesson to watch
- Friendly, expert teachers who make learning fun
Schedule Free Trial Class
A quick session to meet the teacher, see where your child is and ask any questions.
Step 1 of 3
- Meet the teacher first
- Free trial, no card needed
- Female or male teacher, your choice
