LCM and GCF Calculator

Find the least common multiple (LCM) and greatest common factor (GCF, also called HCF) of any set of numbers.

FreeNo sign-upPrivate — runs in your browser
GCF / HCF—
LCM—
Coprime?—

How to use the LCM and GCF Calculator

  1. Enter your numbersType two or more positive whole numbers, separated by commas or spaces.
  2. Read the resultsThe GCF and LCM appear instantly.
  3. Check the methodSee the prime factorization of each number and how the GCF and LCM are built from it.

Example

12, 18, 30: 12 = 2² × 3, 18 = 2 × 3², 30 = 2 × 3 × 5. GCF = 2 × 3 = 6, LCM = 2² × 3² × 5 = 180.

8 and 15 share no prime factors, so their GCF is 1 (they are coprime) and their LCM is 8 × 15 = 120.

Frequently asked questions

What is the difference between GCF and LCM?

The GCF (greatest common factor, or HCF) is the largest number that divides all the numbers. The LCM (least common multiple) is the smallest number that all of them divide into.

Where are they used?

The GCF simplifies fractions (divide top and bottom by it). The LCM gives the common denominator for adding fractions, and solves “when will these events happen together again” problems.

Is there a quick link between them?

For two numbers, GCF × LCM = the product of the numbers. For 12 and 18: 6 × 36 = 216 = 12 × 18.

Popular posts from this blog

Character Counter

Speech to Text Online

Keyboard Tester