Least Common Multiple (LCM) Calculator

Find the smallest positive shared multiple of nonzero integers, with exact digits for large results.

Separate entries using commas, spaces or newlines. Type 1200 for one number; 1,200 is two entries.

Result

Enter values and select Calculate.

How is this calculated?

For each nonzero pair, divide its magnitude product by its GCF.

Worked example: Find when two schedules first coincide again

Two timers start together and repeat every 18 and 26 minutes. They next coincide after 234 minutes, or 13 cycles of the first and 9 of the second.

Method and limits

Calculates a positive common multiple when no entry is zero. Under the integer convention used here, a list containing zero has LCM 0.

How to use this calculator

  1. Enter two to twenty integers. For repeating timers, first convert all periods to the same unit.
  2. Read the smallest positive shared multiple if all entries are nonzero. Divide it by each period to see how many cycles have elapsed.

Find the next shared timer signal

Timers repeating every 18 and 26 minutes from a common start next coincide after 234 minutes: 13 × 18 and 9 × 26 both reach 234.

Find when repeating schedules meet

The shared time is a positive whole number of both periods. The first such time is smaller than the product when the periods share a factor larger than 1. This shortcut requires the same starting time; staggered starts are a different problem.

Choose a common denominator

Fractions with denominators 21 and 35 can both use 105. Multiply the top and bottom of the first fraction by 5 and the top and bottom of the second by 3. A different common multiple also works, but it yields larger numbers.

Fold additional values one at a time

For a nonzero pair, divide their magnitude product by their greatest common divisor. For a list, reuse the running result with the next value. If one value already divides the running result, that result remains unchanged.

Frequently asked questions

What is the difference between LCM and GCF?
LCM is divisible by every nonzero input. GCF divides every input. One answers when cycles meet; the other answers how they can be split evenly.
Why is the answer zero?
If any entry is zero, the calculator uses LCM 0. There is no positive shared multiple of zero, so the result does not describe a positive recurrence.
Do I multiply every input?
No. Multiplication works as a common multiple for nonzero integers, but it is not necessarily the smallest because shared factors can be repeated.
Do negative inputs change the answer?
No. The calculator uses magnitudes and reports a nonnegative result.

Common mistakes and limits

Sources & methodology

Related calculators