LCM Calculator (Least Common Multiple)

Up to 15 non-zero whole numbers, separated by commas or spaces.
Math Updated 30 Oct 2026

Finds the least common multiple (LCM) of up to 15 whole numbers: the smallest positive number that every one of them divides into exactly. Use it to find a common denominator for fractions or to work out when repeating events line up. Choose how to see the working: listing multiples, prime factorization with the highest power of each prime, or the shortcut LCM(a, b) = a × b ÷ GCD(a, b). The greatest common divisor is shown too.

  • Inputs are non-zero whole numbers up to 10¹²; the LCM must fit within 2⁵³ to be shown exactly.

Formula

LCM(a, b) = |a × b| ÷ GCD(a, b); LCM(a, b, c) = LCM(LCM(a, b), c)
  • With prime factorizations, the LCM is the product of every prime that appears, each raised to its largest exponent.
  • Negative signs are ignored. Zero has no LCM because its only multiple is 0.
  • Listing multiples shows up to 12 multiples of each number.

LCM of 4, 6 and 10

Inputs
  • Numbers: 4, 6, 10
  • Show the working by: prime

4 = 2², 6 = 2 × 3, 10 = 2 × 5. The highest powers are 2², 3 and 5, so LCM = 4 × 3 × 5 = 60.

Sources & references

  • Least common multiple
    Wikipedia · Retrieved 30 Oct 2026

    lcm(a, b) = |ab| ÷ gcd(a, b); computation from prime factorizations.

Frequently asked questions

What is the least common multiple?
The smallest positive number that is a multiple of each of the given numbers. LCM(4, 6) = 12, because 12 is the first number in both 4, 8, 12, … and 6, 12, ….
How is the LCM used with fractions?
The LCM of the denominators is the least common denominator. To add 1/4 + 1/6, use LCM(4, 6) = 12: 3/12 + 2/12 = 5/12.
How are LCM and GCD related?
For two positive numbers, LCM × GCD = a × b. For 12 and 18: GCD 6, LCM 36, and 6 × 36 = 216 = 12 × 18.

Related calculators