About the LCM Calculator
The LCM is what you need to add fractions with different denominators, to find when repeating events line up, and to schedule things that run on different cycles. Enter two or more positive whole numbers to get their LCM and their GCF.
The calculator combines the numbers pairwise using the GCF, dividing before multiplying so intermediate values stay as small as possible. Exact big-integer arithmetic means very large LCMs are not rounded.
How to Use the LCM Calculator
- Enter two or more whole numbers separated by commas or spaces.
- Read the LCM in the headline.
- Check the steps to see the pairwise method.
Formula and Method
LCM from GCF
lcm(a, b) = a ÷ gcd(a, b) × b
Divide first to avoid unnecessarily large products.
More than two numbers
lcm(a, b, c) = lcm(lcm(a, b), c)
Apply the two-number rule pairwise.
Worked Example
Two buses meet at the depot
Input: Buses leave every 4, 6 and 10 minutes: 4, 6, 10
- lcm(4, 6) = 4 ÷ 2 × 6 = 12
- lcm(12, 10) = 12 ÷ 2 × 10 = 60
Result: All three buses leave together every 60 minutes.
Frequently Asked Questions
What is the difference between LCM and GCF?
The GCF is the largest number that divides all the inputs. The LCM is the smallest number that all the inputs divide. The GCF is never larger than the smallest input; the LCM is never smaller than the largest.
How do I find the LCM using prime factors?
Factor each number into primes, then multiply each prime to the highest power it appears in any number. For 4 = 2², 6 = 2·3 and 10 = 2·5 the LCM is 2² × 3 × 5 = 60.
What is the LCM of two coprime numbers?
Their product, because their GCF is 1. The LCM of 8 and 9 is 72.
Why use the LCM to add fractions?
The least common denominator is the LCM of the denominators. It keeps the numbers small and often avoids a simplification step.
Related Calculators
Sources and Further Reading
Accuracy and Scope
Results use standard IEEE-754 double-precision arithmetic and are rounded for display. For exam, engineering or research work, verify critical values with a second method. See our full disclaimer.