LCM Calculator

Find the least common multiple (LCM) of two or more numbers: the smallest number they all divide into. See the prime factorizations, the shortcut through the GCF, and the multiples lining up.

Answer

LCM(6, 8)

24

  • 6 = 2 × 3
  • 8 = 2^3

Shortcut: 6 × 8 ÷ GCF 2 = 24.

Common denominator: to add 1/6 + 1/8, use 24 as the denominator.

Where the multiples meet

68051015202530354045

Each line hops by its number. The first place every line lands on (big dots, red guide) is the LCM, 24.

Enough of every prime

6
23
8
222
LCM
2223= 24

The LCM needs every prime factor of every number, as many times as the number that uses it most.

Why this answer

The smallest number they all go into

Prime factors. A multiple of a number must contain all its prime factors. To be a multiple of every number at once, take each prime the greatest number of times any number uses it: 2^3 × 3 = 24. Anything smaller would be missing a factor of one of them.

Through the GCF. Multiplying the two numbers counts their shared factors twice; dividing by the GCF removes the repeat: 6 × 8 ÷ 2 = 24.

Listing multiples works for small numbers: write out multiples of each until one appears in every list.

Why it works

What is the least common multiple?

6801234567891011121314151617181920

Step 1 of 3

When do they line up?

Bus A leaves every 6 minutes, bus B every 8. They both leave now. When do they next leave together?

Make a prediction.

Put it to use

Common denominators, schedules and packaging

The LCM of the denominators is the least common denominator for adding fractions (1/6 + 1/8 = 4/24 + 3/24 = 7/24). It also answers “when do they line up again?”: buses every 12 and 18 minutes leave together every 36 minutes, and if hot dogs come in 10s and buns in 8s, you need 40 of each to have none left over.

How it works

The LCM calculator finds the least common multiple of two to six whole numbers: the smallest positive number that every one of them divides into evenly. It shows the prime factorizations, the shortcut through the GCF for two numbers, and the multiples of each number lining up.

With prime factors, the LCM is the product of every prime that appears in any of the numbers, each taken the largest number of times it appears. For two numbers there's a shortcut: LCM = a × b ÷ GCF, because the product counts the shared factors twice.

The LCM of the denominators is the least common denominator used to add or subtract fractions.

LCM = product of all primes, each to its largest powerLCM(a, b) = a × b ÷ GCF(a, b)LCM(a, b, c) = LCM(LCM(a, b), c)If GCF(a, b) = 1, then LCM(a, b) = a × b

Worked example: LCM of 12 and 18

  1. Prime factors: 12 = 2² × 3 and 18 = 2 × 3².
  2. Every prime with its largest power: 2² and 3².
  3. LCM = 4 × 9 = 36.
  4. Check with the shortcut: GCF(12, 18) = 6, so 12 × 18 ÷ 6 = 216 ÷ 6 = 36.

Common mistakes

  • Multiplying the numbers: 12 × 18 = 216 is a common multiple but not the least one when they share factors.
  • Taking the smallest power of each prime: that's the GCF.
  • Leaving out a prime that appears in only one number: the LCM must include it.
  • Confusing the LCM (at least as big as the largest number) with the GCF (at most the smallest).

Frequently asked questions

How do you find the least common multiple?

Write each number in prime factors and multiply every prime that appears, each the greatest number of times it appears in any one number. For 12 = 2²×3 and 18 = 2×3², the LCM is 2²×3² = 36.

What is the LCM of 6 and 8?

24. The multiples of 6 are 6, 12, 18, 24…, and of 8 are 8, 16, 24…; 24 is the first in both. With the shortcut: 6 × 8 ÷ 2 = 24.

What is the least common denominator?

The LCM of the denominators. To add 1/6 + 1/8, use 24: 4/24 + 3/24 = 7/24.

What's the relationship between GCF and LCM?

For two numbers, GCF × LCM = a × b. So LCM = a × b ÷ GCF; for 12 and 18, 216 ÷ 6 = 36.

How do you find the LCM of three numbers?

Combine two at a time: LCM(a, b, c) = LCM(LCM(a, b), c), or use prime factors with the largest power of every prime. LCM(4, 6, 10) = 60.