CalculatorSwitch
Calculator Switch
Math

LCM Calculator (Least Common Multiple)

Last updated:

How to Use This Calculator

Step 1: Enter two or more positive whole numbers separated by commas or spaces.

Step 2: Click Calculate to see the LCM.

Step 3: Review the step-by-step calculation showing the GCF method used for each pair.

What Is the Least Common Multiple?

The least common multiple (LCM) is the smallest positive integer that is a multiple of every number in the set. In other words, it is the smallest number that each of the given numbers divides into evenly.

For example, the LCM of 4 and 6 is 12 — the multiples of 4 are 4, 8, 12, 16, ... and the multiples of 6 are 6, 12, 18, ... The first number that appears in both lists is 12.

The LCM is essential for adding fractions with different denominators and for solving problems involving repeating cycles.

How the LCM Is Calculated

GCF method: LCM(a, b) = (a × b) ÷ GCF(a, b)

Example: LCM(4, 6)
GCF(4, 6) = 2
LCM = (4 × 6) ÷ 2 = 24 ÷ 2 = 12

For three or more numbers: LCM(a, b, c) = LCM(LCM(a, b), c)

Common LCM Values

NumbersLCMUse Case
4, 612Common denominator for 1/4 + 1/6
3, 515Events recurring every 3 and 5 days
8, 1224Common denominator for fractions
6, 10, 1530Multi-number LCM
7, 1391Coprime numbers → product

Examples

Example 1: LCM(4, 6) = 12 — used to add 1/4 + 1/6 = 3/12 + 2/12 = 5/12.

Example 2: LCM(5, 7) = 35 — because 5 and 7 are coprime, LCM equals their product.

Example 3: LCM(3, 4, 6) = 12 — smallest number divisible by 3, 4, and 6.

Tips

Coprime numbers: LCM is simply their product.

Factor out shared primes using the highest power from each number.

LCM × GCF = Product of the two numbers — useful check.

Fractions: Use LCM of denominators as the common denominator.

Frequently Asked Questions

What is the relationship between LCM and GCF?
For any two positive integers, the product of the LCM and GCF equals the product of the two numbers. That is, LCM(a, b) times GCF(a, b) equals a times b. This identity is useful both as a shortcut for computing one when you know the other and as a way to verify your answer. For example, LCM(4, 6) equals 12 and GCF(4, 6) equals 2, so 12 times 2 equals 24, which equals 4 times 6.
Why is the LCM useful when adding fractions?
To add fractions with different denominators, you must first rewrite them with a common denominator. The least common multiple of the denominators is the smallest number that works, which keeps your numbers as small as possible. For example, to add one-third and one-fourth, the LCM of 3 and 4 is 12 — rewrite as 4/12 and 3/12, then add to get 7/12. Using a non-LCM common denominator still works but creates larger numbers that must be simplified later.
Can the LCM be smaller than any of the numbers?
No. The LCM is always at least as large as the largest number in the set. This makes sense because every multiple of a number is greater than or equal to the number itself. In fact, the LCM equals the largest number in the set whenever the largest number is divisible by all the others — for example, LCM(2, 3, 12) equals 12 because 12 is already a multiple of both 2 and 3.
What does it mean when the LCM equals the product of the numbers?
When the LCM equals the product of two numbers, those numbers share no common factors other than 1 — they are coprime. For example, the LCM of 7 and 9 is 63, which is exactly 7 times 9, because 7 and 9 are coprime even though 9 is not prime. In general, LCM equals product when GCF equals 1. This is a quick test: compute a times b divided by LCM(a, b) to find GCF(a, b).
How is the LCM used in real life beyond schoolwork?
The LCM shows up whenever two or more cyclic events need to synchronize. If a bus runs every 15 minutes and another every 20 minutes from the same stop, they meet every LCM(15, 20) equals 60 minutes. Event planning, gear ratios in mechanics, music rhythm patterns, and scheduling rotations all rely on the LCM to find when repeating patterns align. It is also used in computer science for problems involving cyclic buffers and task scheduling.
What is the LCM of a number and zero?
The LCM involving zero is undefined in the usual sense, because zero has infinitely many multiples — every integer times zero equals zero. Some textbooks define LCM(a, 0) as zero, but this is conventional rather than useful. In practice, always work with positive integers. This calculator requires all inputs to be positive whole numbers and will return an error if you include zero.

Related Calculators

Was this useful?