Least Common Multiple Calculator

Find the least common multiple (LCM) of two or more whole numbers instantly. Explore prime factorization, the GCF method, and a clear step-by-step solution.

Enter your numbers

Enter 2 to 15 positive whole numbers, separated by commas, spaces, or new lines.

Use positive integers only. Each number can contain up to 100 digits; very large results may take a moment.

This calculator runs in your browser. Your entered numbers are not sent to a server.

Your result

The smallest positive number that is divisible by every number you entered.

Least common multiple (LCM)
180
LCM(12, 18, 30) = 180
Numbers entered3
Greatest common factor6
LCM ÷ each input15, 10, 6
Prime factorization of LCM2² × 3² × 5

Step-by-step solution

The calculator combines the numbers two at a time using the GCF identity, then checks the final result.

  1. GCF(12, 18) = 6, so LCM(12, 18) = (12 × 18) ÷ 6 = 36.
  2. GCF(36, 30) = 6, so LCM(36, 30) = (36 × 30) ÷ 6 = 180.
  3. 180 is divisible by 12, 18, and 30, so the LCM is 180.

Prime factorization

For each prime number, use its highest exponent across all inputs. Multiply those prime powers to get the LCM.

NumberPrime factorization
122² × 3
182 × 3²
302 × 3 × 5

What is the least common multiple?

The least common multiple (LCM) of two or more positive integers is the smallest positive integer that each input divides into evenly. For example, multiples of 4 are 4, 8, 12, 16, … and multiples of 6 are 6, 12, 18, 24, … The first positive multiple they share is 12, so LCM(4, 6) = 12.

LCM formula

For two positive integers, the LCM can be calculated with the greatest common factor (GCF):

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

For more than two numbers, apply the formula repeatedly: find the LCM of the first pair, then combine that result with the next number until all inputs are included. Alternatively, prime factorization takes the highest power of each prime that appears in any input.

When is LCM useful?

  • Adding fractions: find a common denominator for different denominators.
  • Schedules: find when repeating events with different intervals line up again.
  • Patterns and cycles: identify the first shared repeat across multiple periods.

Frequently asked questions

Can I calculate the LCM of more than two numbers?

Yes. Enter between 2 and 15 positive whole numbers, separated by commas, spaces, or line breaks.

What is the difference between LCM and GCF?

The LCM is the smallest positive number divisible by every input. The GCF is the largest positive integer that divides every input without a remainder.

What is the LCM of coprime numbers?

If two numbers have a GCF of 1, they are coprime and their LCM equals their product. For example, LCM(7, 11) = 77.

Can I use zero or decimals?

This tool accepts positive whole numbers only. Zero, negative numbers, and decimals are rejected because this calculator is designed for the standard positive-integer LCM.