Free LCM calculator, with steps

LCM Calculator: Least Common Multiple of Two or More Numbers

The least common multiple (LCM) is the smallest positive number that every one of your numbers divides into exactly. Write each number as a product of primes and multiply every prime at its highest power: 4 = 2², 6 = 2 × 3, 10 = 2 × 5, so LCM(4, 6, 10) = 2² × 3 × 5 = 60. For two numbers you can also use LCM = a × b ÷ GCF.

Find the LCM (least common multiple)

Whole numbers from 1 to 1,000,000,000,000; up to 10 numbers.

LCM of 4, 6, 10 = 60

  1. 4 = 2²
  2. 6 = 2 × 3
  3. 10 = 2 × 5
  4. Take every prime at its highest power: 2² × 3 × 5 = 60

Worked examples

Example 1: LCM of 12 and 18

Find the least common multiple of 12 and 18.

  1. 12 = 2² × 3 and 18 = 2 × 3²
  2. Highest powers: 2² × 3² = 36
  3. Check with the GCF: 12 × 18 ÷ 6 = 216 ÷ 6 = 36

LCM(12, 18) = 36.

Example 2: When do two buses leave together again?

One bus leaves every 12 minutes and another every 18 minutes. They leave together at 9:00. When do they next leave together?

  1. You need the first time that is a multiple of both 12 and 18
  2. LCM(12, 18) = 36 minutes (example 1)

They leave together again at 9:36.

Example 3: Add 5/12 + 7/18

Use the LCM to find the least common denominator.

  1. LCM(12, 18) = 36
  2. 5/12 = 15/36 and 7/18 = 14/36
  3. 15/36 + 14/36 = 29/36

5/12 + 7/18 = 29/36.

How to find the LCM

List multiples of each number until one appears in every list (4: 4, 8, 12 … 60; 6: 6, 12 … 60; 10: 10, 20 … 60). Prime factorization (fastest for several numbers): take each prime at its highest power and multiply. Use the GCF for two numbers: LCM(a, b) = a × b ÷ GCF(a, b); find the GCF with the GCF calculator.

The LCM is the least common denominator when you add or subtract fractions; try the fraction calculator. For a full walkthrough with more practice problems, read the complete LCM guide.

Stuck on a word problem?

Type or photograph the whole question in the MathAI GPT math solver for a step-by-step solution. On your phone, use MathAI GPT - Math Solver for iPhone or MathAI GPT for Android.

LCM calculator FAQ

What is the LCM of two numbers?

The smallest positive number that both numbers divide into with no remainder. The LCM of 4 and 6 is 12.

How do you find the LCM of three numbers?

Find the LCM of the first two, then the LCM of that result and the third number, or take every prime at its highest power. LCM(4, 6, 10) = 60.

What is the difference between LCM and GCF?

The GCF is the largest number that divides all the numbers; the LCM is the smallest number all of them divide into. For 12 and 18 the GCF is 6 and the LCM is 36.

What is the LCM of two prime numbers?

Their product, because they share no factor other than 1. The LCM of 7 and 11 is 77.

Is the least common denominator the same as the LCM?

Yes. The least common denominator of two fractions is the LCM of their denominators.

Related calculators