How to use the LCM Calculator (Least Common Multiple)
- Enter 2 to 1,000 positive whole numbers, separated by commas, spaces or new lines. Use 2500 rather than 2,500 for a single number.
- Select Calculate to find their least common multiple and see the working.
- For three or more inputs, the calculator first finds the LCM of the first two numbers, then combines that result with each remaining number.
For two numbers, LCM(a,b) = (a ÷ GCF(a,b)) × b. Do not divide the product of three or more numbers by their shared GCF. GCF and GCD (greatest common divisor) refer to the same quantity.
Least Common Multiple formula
The least common multiple is the smallest positive whole number divisible by every input without a remainder. Start with two numbers, then repeat the operation with each additional number.
LCM(a, b) = (a ÷ GCF(a, b)) × b
This method uses the greatest common factor of each pair.
Least Common Multiple worked examples
Find LCM of 6 and 8
Find the smallest positive multiple shared by 6 and 8.
- GCF(6,8) = 2.
- LCM = (6 ÷ 2) × 8 = 24.
Answer: LCM(6,8) = 24.
Combine three numbers
Find LCM(12,18,30).
- GCF(12,18) = 6, so LCM(12,18) = 36.
- GCF(36,30) = 6, so LCM(36,30) = 180.
Answer: LCM(12,18,30) = 180.
Use coprime numbers
Find LCM(7,11).
- GCF(7,11) = 1.
- Multiply: (7 ÷ 1) × 11 = 77.
Answer: LCM(7,11) = 77.
Repeat the same number
Find LCM(6,6).
- GCF(6,6) = 6.
- LCM = (6 ÷ 6) × 6 = 6.
Answer: LCM(6,6) = 6.
Find a common denominator
Find LCM(6,10), for fractions with denominators 6 and 10.
- GCF(6,10) = 2.
- LCM = (6 ÷ 2) × 10 = 30.
Answer: Use 30 as the least common denominator.
Avoid the three-number product mistake
Find LCM(6,8,12).
- First find LCM(6,8) = 24.
- Then find GCF(24,12) = 12.
- LCM(24,12) = (24 ÷ 12) × 12 = 24.
Answer: The LCM is 24. Dividing 6 × 8 × 12 by their shared GCF would incorrectly give 288.
LCM Calculator (Least Common Multiple) FAQs
How does LCM differ from GCF?
GCF is the largest positive factor shared by the numbers. LCM is their smallest shared positive multiple. For 6 and 8, the GCF is 2 and the LCM is 24.
What if the numbers are coprime?
Two coprime numbers have GCF 1, so their LCM is their product. For example, LCM(7,11) = 77.
Can I find the LCM of more than two numbers?
Yes. This calculator accepts up to 1,000 values and combines them pairwise. LCM(6,8,12) is 24, not the product divided by the shared GCF.
Can I enter zero, negative numbers or decimals?
This tool uses positive whole numbers only. Zero, negative values and non-whole decimals are rejected rather than rounded into a different problem.
What are the precision limits?
Each input and the final LCM must be a positive safe integer, no greater than 9,007,199,254,740,991. An answer above that range produces an error. Commas separate numbers; do not use them as thousands separators.
Other ways to find LCM
Listing multiples works well for small numbers. For 6 and 8, compare 6, 12, 18, 24 with 8, 16, 24. The first match is 24.
Prime factorization uses each prime at its highest power across all inputs. Since 12 = 2² × 3 and 18 = 2 × 3², their LCM is 2² × 3² = 36. The calculator above uses GCF, rather than providing a selectable factorization mode.
Use LCM for repeating schedules
If two activities start together and repeat every 6 and 8 days, they next coincide after 24 days. This assumes both intervals stay fixed and share the same starting point.
Check that the answer is a common multiple
For LCM(6, 8, 12) = 24, the quotients are 24/6 = 4, 24/8 = 3 and 24/12 = 2. Each is an integer, so every input divides the result. The pairwise GCF method establishes that this common multiple is the least one; divisibility alone does not prove minimality.