Report a problem

EDUCATION TOOL

Least Common Multiple Calculator (LCM)

Find the least common multiple of two or more integers, with exact results and calculation steps.

Least Common Multiple Calculator (LCM)

FREE ONLINE TOOL

Separate integers with spaces, commas or semicolons. Up to 30 digits per integer.

Least common multiple (LCM)

72

Calculation steps

LCM(a, b) = |a × b| ÷ GCD(a, b). A zero input gives LCM = 0.

  1. GCD(12, 18) = 6; LCM(12, 18) = 36
  2. GCD(36, 24) = 12; LCM(36, 24) = 72

WHEN IT HELPS

Common uses

  • Find a common denominator for several fractions.
  • Find when repeating cycles coincide.

IN PRACTICE

Example

The least common multiple of 12, 18 and 24 is 72.

GOOD TO KNOW

Can I enter zero or negative numbers?

Negative numbers use their absolute values. If any input is zero, the LCM is zero by convention. Each integer may contain up to 30 digits.

Math Solver — linear equations with steps

Find the least common multiple with a worked example

The least common multiple, or LCM, for nonzero integers is the smallest positive integer divisible by each input’s absolute value. If any input is zero, this calculator uses LCM = 0 by convention. For 12 and 18, the multiples of 12 begin 12, 24, 36 and the multiples of 18 begin 18, 36. Their first common multiple is 36. It is useful for finding a common denominator or the next shared occurrence of repeating intervals.

LCM and greatest common divisor are different

The greatest common divisor divides both numbers; the LCM is divisible by both. For 12 and 18, the GCD is 6 and the LCM is 36. For two positive integers, LCM(a, b) = a ÷ GCD(a, b) × b. Repeatedly apply the calculation when using more than two inputs, and use whole numbers rather than decimal measurements.