GCF and LCM Calculator
Find the GCF and the LCM of a list of whole numbers at once.
Two or more, separated by commas or spaces
Try
Result
You entered
Check
Show the work
Prime factorisation of each number
Write each number as a product of primes, using a power where a prime repeats. The GCF and the LCM are both read off these prime powers.
Greatest common factor: lowest powers of shared primes
The GCF takes only the primes that appear in every number, each to its lowest power. The shared primes are , , so multiply them to those powers.
Least common multiple: highest powers of every prime
The LCM takes every prime that appears in any number, each to its highest power, so that each number divides it. The primes used are , .
Result
So the GCF is and the LCM is .