HCF and LCM calculator (GCF, GCD)
Find the highest common factor and lowest common multiple of several numbers, with steps.
- Private 1-to-1 lessons
- Maths in English or Russian
- Online, from anywhere
HCF and LCM calculator
Use the calculator to check your work. Try the problem yourself first, then compare your steps with the calculator's steps.
HCF and LCM using prime factors
1. Prime factors
For example 24 = 2³ · 3 and 36 = 2² · 3².
2. HCF
Take the common prime factors with the lowest powers: 2² · 3 = 12.
3. LCM
Take all prime factors with the highest powers: 2³ · 3² = 72.
HCF is also called GCF (greatest common factor) or GCD (greatest common divisor). It is used to simplify fractions. The LCM is used to find a common denominator.
Frequently asked questions
What is the HCF?
The highest common factor is the largest number that divides all the given numbers exactly. It is also called the GCF or GCD.
What is the LCM?
The lowest common multiple is the smallest number that all the given numbers divide into.
What are HCF and LCM used for?
HCF is used to simplify fractions. LCM is used to find a common denominator.
Can I enter more than two numbers?
Yes. Enter several whole numbers separated by spaces or commas, each up to 1,000,000,000.
More calculators and help
Free tools for students.
Need help with factors and multiples?
Tell us the year or grade and what feels hard, and we will suggest a plan.
Book a trial lesson