Least Common Multiple Calculator

What is the smallest number that all your numbers divide into?

Calculate the least common multiple of any set of numbers to solve fraction addition, find repeating cycles, or determine when events align.

Updated June 2026 · How this works

Example calculation — edit any field to use your own numbers

Worth knowing
How It Works
The formula, explained simply

Imagine two gears with different numbers of teeth spinning together. The smaller gear completes more rotations, but eventually both gears return to their starting position at the same time. That moment represents the least common multiple. When you have numbers 12 and 18, think of them as gear teeth. The 12-tooth gear completes 3 full rotations while the 18-tooth gear completes 2 rotations, both finishing after 36 teeth have passed the reference point.

The calculation uses prime factorization to break each number into its building blocks. For 12 and 18, we get 12 = 2² × 3 and 18 = 2 × 3². The LCM takes the highest power of each prime factor that appears: 2² × 3² = 36. This method works because the LCM must contain enough of each prime factor to be divisible by all original numbers.

For multiple numbers, the process extends naturally. Each prime factor in the LCM uses the highest power found across all input numbers. This ensures the result divides evenly by every input while remaining as small as possible. The mathematical elegance lies in how prime factorization reveals the minimal common structure needed.

When To Use This
Right tool, right situation

Use LCM when you need the smallest interval where multiple cycles align. This appears in scheduling problems where different events repeat at different rates, like bus and train schedules, shift rotations, or maintenance cycles. LCM tells you exactly when everything synchronizes again.

Fraction arithmetic requires LCM for finding common denominators. Before adding 1/6 + 1/8, you need the LCM of 6 and 8 (which is 24) to convert both fractions to twenty-fourths. This is the only way to combine fractions with different denominators accurately.

Avoid using LCM for problems involving averages, rates that change over time, or when you need the total rather than the cycle length. If a question asks how much total production occurs rather than when cycles align, LCM is not the right tool. Similarly, LCM assumes consistent, repeating patterns and fails when dealing with irregular or one-time events.

Common Mistakes
Why results sometimes look wrong

The most common error is confusing LCM with simple multiplication. Students often multiply all numbers together, missing that the LCM is usually much smaller. For 6 and 9, multiplication gives 54, but the LCM is only 18. This happens because multiplication ignores shared factors that allow for a smaller common multiple.

Another frequent mistake occurs when one number divides another. Many assume the LCM must be larger than both numbers, but when 8 and 24 are compared, the LCM is simply 24 (the larger number). The smaller number already fits evenly into the larger one, so no additional multiplication is needed.

Using the wrong method for the context also creates problems. The GCD formula (a × b ÷ GCD) works only for two numbers. Applying it to three or more numbers produces incorrect results because the mathematical relationship breaks down. Always use prime factorization or iterative calculation for multiple numbers.

The Math
Worked examples and deeper derivation

The fundamental relationship between LCM and GCD (Greatest Common Divisor) is LCM(a,b) × GCD(a,b) = a × b. This means if you know one, you can calculate the other. For example, with 12 and 18: GCD is 6, so LCM = (12 × 18) ÷ 6 = 36. This relationship only works for two numbers, but it provides computational efficiency.

Prime factorization offers the most reliable method for multiple numbers. Each input number breaks down into prime factors with specific powers. The LCM combines the highest power of each prime found across all inputs. For 12 = 2² × 3, 18 = 2 × 3², and 24 = 2³ × 3, the LCM becomes 2³ × 3² = 72.

Alternatively, you can build LCM iteratively: find LCM of the first two numbers, then find LCM of that result with the third number, and so on. This approach uses the two-number formula repeatedly but requires more computation steps than prime factorization for larger sets.

Finding Common Denominators for Fractions
Adding fractions 1/12 and 5/18
The LCM of 12 and 18 is 36, so convert to 3/36 + 10/36 = 13/36. The LCM gives you the smallest common denominator that works for both fractions.
Scheduling Repeating Events
Bus arrives every 15 minutes, train every 20 minutes
The LCM of 15 and 20 is 60, meaning both arrive at the same time every 60 minutes (1 hour). Use this to find when different schedules align.
Production Line Synchronization
Machine A completes cycles every 8 minutes, Machine B every 12 minutes
The LCM of 8 and 12 is 24, so both machines finish their cycles simultaneously every 24 minutes. This helps optimize production scheduling.
Expert Unlock
The thing most explanations skip

LCM calculations can explode exponentially with coprime numbers (numbers sharing no common factors). The LCM of 7, 11, and 13 equals their product: 1,001. In practical applications, this means some scheduling problems have no reasonable solution. When designing systems with multiple cycles, avoid prime numbers or ensure cycles share common factors to keep synchronization intervals manageable.

How do you find the LCM of multiple numbers?

What is the difference between LCM and GCD?
LCM (Least Common Multiple) is the smallest number that all given numbers divide into evenly. GCD (Greatest Common Divisor) is the largest number that divides evenly into all given numbers. LCM finds what the numbers share as multiples, while GCD finds what they share as factors.
Why would I need to calculate LCM?
LCM is essential for adding fractions (finding common denominators), scheduling repeating events, synchronizing cycles, and solving problems where different rates need to align. It appears frequently in engineering, music theory, and everyday planning scenarios.
Can LCM be smaller than the largest input number?
No, the LCM is always greater than or equal to the largest input number. If one number divides evenly into another, the LCM equals the larger number. Otherwise, the LCM will be larger than all input numbers.

Need something this doesn't cover?

Suggest a tool — we'll build it →