Least Common Multiple (LCM) Calculator
Find the smallest positive shared multiple of nonzero integers, with exact digits for large results.
Result
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
- Enter two to twenty integers. For repeating timers, first convert all periods to the same unit.
- 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
- Integers only: 2–20 values, at most 28 digits each. Internal arithmetic is exact; commas in the result are for reading.
- This is a common multiple, not an offset scheduler. Convert inputs to matching units and check the start times independently.
Sources & methodology
Related calculators
- Greatest Common Factor (GCF) Calculator
Find the greatest common divisor of a list of signed whole numbers and see a Euclidean worked step.
- Common Factors Calculator: List Shared Divisors
List every positive factor that divides each entered integer, not just the largest factor.
- Factors Calculator: Divisors and Factor Pairs
Find every positive divisor and pair of whole numbers whose product equals your input.
- Prime Factorization Calculator with Factor Tree Steps
Break an integer into prime factors, see multiplicities, and check whether the number is prime.