GCF and LCM Calculator

Enter two or more whole numbers separated by commas or spaces.

How it works

  1. Factor each number

    Write each number as a product of primes.

  2. GCF

    Multiply the primes they all share, each to the lowest power it appears with.

  3. LCM

    Multiply every prime that appears, each to the highest power it appears with.

Common questions

Is GCF the same as GCD or HCF?

Yes. Greatest common factor, greatest common divisor and highest common factor are three names for the same thing.

When do I need the LCM?

Most often to find a common denominator when adding or subtracting fractions.

More free calculators