About the LCM Calculator tool
The least common multiple (LCM) is the smallest positive number that every number in a list divides into evenly. You need it to add fractions with different denominators, to work out when repeating events line up — two buses every 12 and 18 minutes meet again after 36 — and for gear ratios, timetables and many number puzzles. Listing multiples works for small numbers but quickly becomes impractical.
This calculator finds the LCM of up to 30 whole numbers, each up to 60 digits long, using exact BigInt arithmetic. It shows the prime factorisation method first: write each number as a product of primes, take every prime that appears with its highest power, and multiply them. A table lists each number’s factorisation so you can see where every factor comes from.
It then confirms the answer with the GCF method, LCM(a, b) = a × b ÷ GCF(a, b), applied pair by pair, which also works when a number has a prime factor too large to find quickly. The greatest common factor of the list is shown as well, since the two are closely related. Negative numbers are treated by their absolute value, and zero is rejected because it has no positive common multiple.
How to use LCM Calculator
- Type two or more whole numbers into “Numbers (2 or more)”, separated by commas or spaces, e.g. 12, 18, 30.
- Read the least common multiple in the result card, with the GCF and the number of digits.
- Check the factorisation table under the input to see each number’s prime factors.
- Click “Show steps” to see the highest-power method and the GCF cross-check.
- Copy the LCM with the copy icon (it copies the plain digits without separators).
Features
Two or more numbers
Finds the LCM of up to 30 numbers at once, not just a pair.
Prime factorisation method
Lists each number’s prime factors and highlights the highest power of every prime used in the LCM.
GCF method cross-check
Shows LCM(a, b) = a × b ÷ GCF(a, b) step by step as independent confirmation.
Huge numbers, exact results
BigInt arithmetic handles inputs up to 60 digits and results with hundreds of digits without rounding.
GCF included
The greatest common factor of the same list is shown alongside the LCM.
When to use it
- Find the lowest common denominator to add 5/12 + 7/18.
- Work out when two traffic lights, buses or machines with different cycles will line up again.
- Solve a number-theory or maths-olympiad exercise involving several numbers.
- Plan repeating schedules, such as tasks every 4, 6 and 10 days.
Frequently asked questions
How do you find the LCM using prime factorisation?
Factor each number into primes, then for every prime that appears take the highest power found in any number, and multiply those together. For 12 = 2² × 3 and 18 = 2 × 3², the LCM is 2² × 3² = 36.
What is the relationship between LCM and GCF?
For two positive whole numbers, LCM(a, b) × GCF(a, b) = a × b. So once you know the GCF, LCM = a × b ÷ GCF. This does not extend directly to three or more numbers, which is why the calculator applies it pair by pair.
What is the LCM of numbers that share no factors?
If the numbers are pairwise coprime, their LCM is simply their product. For example LCM(4, 9, 25) = 900.
Can the LCM be smaller than the numbers?
No. The LCM is always at least as large as the biggest number in the list, and it equals that number when it is already a multiple of all the others.
Is the lowest common denominator the same as the LCM?
Yes. The lowest common denominator of several fractions is the LCM of their denominators.