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.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
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.
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?
Need something this doesn't cover?
Suggest a tool — we'll build it →