LCM calculator (least common multiple)

Type two or more whole numbers. We find the smallest number that each of them divides. Handy for giving fractions the same denominator.

LCM calculator (least common multiple)

Separated by spaces, commas or “;”. e.g. 4; 6; 10

Result

60LCM

LCM(4, 6) = 4 × 6 ÷ GCD 2 = 12
LCM(12, 10) = 12 × 10 ÷ GCD 2 = 60

LCM calculator (least common multiple)

Inputs

Your whole numbers
4; 6; 10

How it is calculated

We use the GCD: LCM(a, b) = |a × b| ÷ GCD(a, b).

Result

LCM

60

How it is calculated

  1. We use the GCD: LCM(a, b) = |a × b| ÷ GCD(a, b).
  2. For more than two numbers: LCM(a, b, c) = LCM(LCM(a, b), c).
  3. Minus signs are ignored: the LCM is always positive.

Example

LCM(4, 6) = 4 × 6 ÷ 2 = 12, then LCM(12, 10) = 120 ÷ 2 = 60.

Good to know

  • Only whole numbers are accepted (up to 50 numbers, exact).
  • The result can get very long: above 3,000 digits the tool stops.

When to use it

  • Find the common denominator to add fractions such as 1/4 + 1/6.
  • Work out when two repeating events happen again on the same day, such as buses every 12 and 18 minutes.
  • For the largest shared divisor instead, use the GCD calculator (greatest common divisor).

Frequently asked questions

When do two buses leave together again?

After the LCM of their intervals. Buses every 12 and 18 minutes leave together every 36 minutes.

What is the LCM of two prime numbers?

Their product, because they share no divisor except 1. LCM(5, 7) = 35.

How are LCM and GCD linked?

For two numbers, LCM × GCD = a × b. For 4 and 6: 12 × 2 = 24 = 4 × 6.

Updated October 10, 2026

Indicative result. For an important decision, check with a professional.