calkoro Calculators

LCM and GCF Calculator

Enter two or more whole numbers to get the least common multiple, the greatest common factor and each prime factorization.

Calculations run in your browser. The numbers you enter are not sent anywhere.

What are the LCM and the GCF?

The least common multiple is the smallest number that is a multiple of every number in the list. The greatest common factor (also called GCD or HCF) is the largest number that divides them all.

Finding them by prime factorization

Break each number into primes: 12 = 2² × 3 and 18 = 2 × 3². The GCF uses the shared primes with the lowest power: 2 × 3 = 6. The LCM uses every prime with the highest power: 2² × 3² = 36.

What they are used for

The LCM gives the common denominator when adding fractions and solves problems about repeating events. The GCF is used to simplify fractions and split things into equal groups. For two numbers, LCM × GCF equals their product.

Frequently asked questions

How do you find the LCM of two numbers?
Factor both and multiply every prime with its highest power. Or divide the product of the two numbers by their GCF.
When are two numbers relatively prime?
When their GCF is 1, such as 8 and 15. Then the LCM is simply their product.
Embed this calculator on your site

Copy the code below and paste it into your page's HTML. It is free: just keep the credit link.

Results are estimates for information purposes and do not replace professional financial, legal or tax advice.