Number Calculators: LCM, GCF and HCF
Three calculators for factors and multiples of whole numbers. Each shows its working and checks the answer a second way.
All numbers calculators
- LCM Calculator
The least common multiple of two to ten whole numbers, with prime factors and a GCD check.
Enter: Two to ten whole numbers. Get: LCM, GCD, prime factors.
- GCF Calculator
The greatest common factor of two to ten whole numbers, found by listing factors and checked with primes.
Enter: Two to ten whole numbers. Get: GCF, common factors, LCM.
- HCF Calculator
The highest common factor of two to ten whole numbers, found with the division method (Euclid).
Enter: Two to ten whole numbers. Get: HCF, division steps, LCM.
How these calculators fit together
Factors and multiples are two sides of the same idea. The factors of a number divide it exactly, and the multiples of a number are what you get by counting in steps of it. The greatest common factor is the largest number that divides all of your numbers, and the least common multiple is the smallest number that all of them divide into.
The two are linked. For any two numbers, the GCF times the LCM equals the product of the numbers, so finding one gives you the other. The GCF is what you divide by to simplify a fraction or ratio, and the LCM is the common denominator you need to add fractions or to find when two repeating events line up.
GCF, HCF and GCD are three names for the same value. The GCF calculator finds it by listing factors, which shows why it works, and the HCF calculator uses the division method (Euclid’s algorithm), which stays quick for very large numbers. The LCM calculator works from prime factors and uses exact whole-number arithmetic, so even very large results are shown in full.
Formulas at a glance
The main formula behind each calculator, and when to reach for it.
| Calculator | Formula | Use it when |
|---|---|---|
| LCM Calculator | LCM(a, b) = a × b / GCD(a, b) | You need a common denominator, or want to know when repeating cycles meet |
| GCF Calculator | GCF = product of the lowest power of each shared prime | You want to simplify a fraction or ratio, or split things into equal groups |
| HCF Calculator | HCF(a, b) = HCF(b, a mod b) | You want the same answer by the division method, or the numbers are large |