CalcWisp

Least Common Multiple (LCM)

Also called: LCM, lowest common multiple, least common denominator, LCD

Definition: The least common multiple (LCM) of two or more positive integers is the smallest positive number that each of them divides into evenly; it gives the lowest common denominator.

Updated October 24, 2026 ยท How we check facts

The least common multiple is the smallest positive integer that is a multiple of every number in a set. Its most common use is adding or subtracting fractions: the LCM of the denominators is the least common denominator. It also answers scheduling questions, such as when two repeating cycles next line up. Unlike the greatest common factor, which can be no larger than the smallest number in the set, the LCM is at least as large as the largest number.

Formula

For two positive integers a and b:

LCM(a, b) = (a ร— b) รท GCF(a, b)
  • a, b: the two numbers.
  • GCF(a, b): their greatest common factor.

This follows from the identity GCF(a, b) ร— LCM(a, b) = a ร— b. Using prime factorization instead, the LCM is the product of every prime that appears in either number, each raised to the largest exponent that appears. For three or more numbers, apply the rule repeatedly: LCM(a, b, c) = LCM(LCM(a, b), c).

Example

Find LCM(12, 18).

  • Prime factorization: 12 = 2ยฒ ร— 3 and 18 = 2 ร— 3ยฒ. Largest powers: 2ยฒ ร— 3ยฒ = 36.
  • Using the GCF: GCF(12, 18) = 6, so LCM = 12 ร— 18 รท 6 = 216 รท 6 = 36.

Use: to add 1/12 + 5/18, convert both to the denominator 36: 3/36 + 10/36 = 13/36.

Scheduling: one bus every 12 minutes and another every 18 minutes leave together again after 36 minutes.

The LCM calculator finds the LCM of several numbers with steps, the GCF calculator finds the divisor used in the formula, and the factor calculator lists factors for the prime-factorization method.

Common mistakes

  • Multiplying the numbers together and stopping. 12 ร— 18 = 216 is a common multiple, but not the least one.
  • Taking the smallest exponent of each prime, which gives the GCF instead.

Calculate it

๐Ÿ”Free toolLCM CalculatorLeast common multiple, with the work shown.๐ŸงฉFree toolGCF CalculatorGreatest common factor by Euclid and by primes.๐Ÿ”ขFree toolFactor CalculatorEvery factor, factor pair and prime factorization.

Related terms

Sources

  1. Georgia Tech CS 2050 โ€” Lecture 13: GCD, LCM and prime factorization
  2. NIST Dictionary of Algorithms and Data Structures โ€” greatest common divisor