Skip to content
SoftwareSolutions.net
Calculators & Converters

LCM Calculator

Find the least common multiple of numbers.

Try it

Ready

Inputs

Result

The result appears here as you type.

About LCM Calculator

A least common multiple calculator finds the smallest positive whole number that two or more numbers divide into exactly. The least common multiple, or LCM, answers questions about repeating events: when two buses that leave every 12 and 18 minutes next meet again, or when two gears with different tooth counts line up the same tooth pair. For 4 and 6 the answer is 12.

Enter two or more whole numbers and the calculator returns their LCM. The result is always at least as large as the largest number entered, and it is found quickly by using the greatest common divisor.

How to use LCM Calculator

  1. Enter two whole numbers, or more for a longer list.
  2. Read the least common multiple in the result panel.
  3. Check that each original number divides the result exactly.
  4. Use the LCM as a common denominator when adding fractions with different denominators.
  5. Use Reset to clear the numbers and try another set.

Finding the LCM

One method lists the multiples of each number until a match appears. The multiples of 4 are 4, 8, 12 and 16. The multiples of 6 are 6, 12 and 18. The first common value is 12. This works for small numbers but becomes slow when the numbers are large.

A faster method uses the greatest common divisor. The LCM of two numbers equals their product divided by their GCD. For 4 and 6, the product is 24 and the GCD is 2, so the LCM is 12. For 12 and 18, the product is 216 and the GCD is 6, which gives 36, the same answer as the multiples method.

For three or more numbers, find the LCM of the first two, then find the LCM of that result and the next number. Repeat until the list is finished. The order does not change the final answer.

Repeating events and fractions

Scheduling problems are the classic use. If one bus leaves every 12 minutes and another every 18 minutes, and both leave together at noon, they will leave together again after 36 minutes. The LCM of 12 and 18 is 36, so the buses meet at 12:36, then 1:12, and so on.

Adding fractions with different denominators needs a common denominator, and the LCM is the smallest one to use. To add one fourth and one sixth, the LCM of 4 and 6 is 12, so one fourth becomes three twelfths and one sixth becomes two twelfths. The sum is five twelfths. Using the LCM keeps the numbers as small as possible.

Gears and cycles work the same way. Two gears with 12 and 18 teeth return to the same tooth pairing after 36 teeth have passed, which is the LCM. Recognising this pattern helps in mechanical design and in any repeating process with different periods.

Frequently asked questions

Is the LCM always larger than the numbers?

It is at least as large as the largest number. It equals one of them only when all the others divide into it.

What is the LCM of two prime numbers?

It is their product, because primes share no factors. The LCM of 3 and 5 is 15.

Is LCM the same as LCD?

They are related. The lowest common denominator, LCD, is the LCM of the denominators, so the terms mean the same thing in a fraction problem.

What if one number is zero?

The LCM with zero is zero by convention, since zero is a multiple of every number.

Related tools

Tools that pair well with this one.