Whole numbers (2 to 10)

Whole numbers greater than 0, up to 30 digits each.

Enter at least two whole numbers to get the GCF and the LCM.

Use this LCM calculator to find the least common multiple of two or more whole numbers: the smallest number that every one of them divides. It is the number you need for a common denominator or for events that repeat on different cycles. Enter up to 10 numbers and the LCM is shown first, with the prime factors behind it. The greatest common factor is calculated alongside it.

How to find the LCM

Method 1: list the multiples

Write the multiples of each number until one appears in every list. Multiples of 4: 4, 8, 12. Multiples of 6: 6, 12. The first match is 12, so the LCM of 4 and 6 is 12. This works well for small numbers.

Method 2: prime factorization

Split each number into primes and multiply every prime that appears, each with its largest exponent. 6 = 2 × 3, 8 = 2³ and 12 = 2² × 3. The largest power of 2 is 2³ and the largest power of 3 is 3, so the LCM of 6, 8 and 12 is 2³ × 3 = 24.

Method 3: use the GCF

For two numbers, LCM = (a × b) ÷ GCF. For 15 and 20 the GCF is 5, so the LCM is (15 × 20) ÷ 5 = 60. The calculator shows this line when you enter two numbers.

Add fractions with the LCM

To add 5/6 and 3/8, the common denominator is the LCM of 6 and 8, which is 24. Then 5/6 = 20/24 and 3/8 = 9/24, so the sum is 29/24. Using the least common multiple keeps the numbers as small as possible.

When the LCM is useful

  • Schedules: one bus every 15 minutes and another every 20 minutes leave together every 60 minutes.
  • Repeating signals: two lights that blink every 9 and every 12 seconds blink together every 36 seconds.
  • Common denominators: the LCM of the denominators is the smallest one you can use to add or compare fractions.

Big LCMs stay exact

An LCM grows quickly. The LCM of the numbers 1 to 10 is 2,520, and the LCM of 1 to 20 is already 232,792,560. This calculator uses exact integer arithmetic, so even an LCM with dozens of digits is shown without rounding.

Need the greatest common factor? Use the GCF calculator, or see both results on the GCF and LCM calculator. For proportions, try the rule of three calculator.

LCM FAQ

What does LCM stand for?

Least common multiple: the smallest positive number that is a multiple of every number in your list. The LCM of 4 and 6 is 12.

What is the LCM of two numbers with no common factor?

Their product. 8 and 15 share no prime factor, so their LCM is 8 × 15 = 120.

What if one number is a multiple of the other?

Then the LCM is the larger number. 12 is a multiple of 6, so the LCM of 6 and 12 is 12.

Is the LCM always at least as big as the biggest number?

Yes. A common multiple has to be a multiple of the biggest number, so it cannot be smaller than it.

What is the link between the LCM and the GCF?

For two numbers, GCF × LCM = a × b. With 9 and 12, the GCF is 3 and the LCM is 36: 3 × 36 = 108 = 9 × 12.

How many numbers can I enter?

Between 2 and 10 whole numbers greater than 0, up to 30 digits each. Zero, negative numbers, decimals and text are refused with a message that names the box to fix.