GCF & LCM Calculator
Find the greatest common factor and least common multiple of two or more integers, with prime factorizations and the product of all values. Free and instant.
About GCF & LCM Calculator
The GCF & LCM Calculator finds the greatest common factor (also called HCF) and the least common multiple of two or more positive integers at once. It also shows each number’s prime factorization and the product of all the values you entered.
The GCF is computed with the Euclidean algorithm — repeatedly replacing the larger number with the remainder of dividing it by the smaller until nothing remains. The LCM is then derived pairwise using the identity LCM(a, b) = a × b ÷ GCF(a, b), extended across your whole list.
You need the GCF to simplify fractions and split things into equal groups, and the LCM to find common denominators or when repeating cycles align. Enter as many integers as you like; results are free and instant in your browser.
How to use GCF & LCM Calculator
- Type two or more positive whole numbers, separated by commas or spaces — e.g. 12, 18, 24.
- Read the GCF (HCF) and the LCM, computed live.
- Check the prime factorization of each number to see why.
- Note the count and the product of all values for reference.