LCM Calculator

Calculate Least Common Multiple (LCM) of multiple numbers with step-by-step solutions and prime factorization.

For learning and homework help — verify critical calculations independently.

Reviewed by CalculatorDrive Math Editorial Board · Last updated

Calculator

Enter 2 or more positive integers (1 to 10,000,000,000)

Enter two or more positive integers to calculate their LCM (Least Common Multiple).

The short answer

The LCM is the smallest number that every number in your set divides into evenly. For 4 and 6, list multiples of each until one matches: 4, 8, 12... and 6, 12... — 12 is the first shared value, so LCM(4, 6) = 12. For larger numbers, prime factorization is faster: take the highest power of every prime that appears in any of the numbers.

Key takeaways

  • The listing method works well for small numbers but gets slow fast; prime factorization scales to numbers of any size.
  • For exactly two numbers, LCM(a, b) = (a × b) ÷ GCF(a, b) — a shortcut once you already know the GCF.
  • Real-life LCM problems are almost always "when do repeating things line up again" — bus schedules, blinking lights, overlapping cycles.
  • Extending LCM to three or more numbers means combining two at a time: LCM(a, b, c) = LCM(LCM(a, b), c).

Two methods for finding LCM

Method How it works Best for
Listing multiplesList multiples of each number until one repeats across all listsSmall numbers, building intuition
Prime factorizationTake the highest power of every prime appearing in any numberLarger numbers, several at once

Worked example: three numbers at once

4 = 2², 6 = 2 × 3, 8 = 2³

Highest power of 2 present: 2³ (from 8)

Highest power of 3 present: 3¹ (from 6)

LCM = 2³ × 3 = 24

Prime factorization scales cleanly to any number of inputs — there's no need to combine numbers two at a time when you use this method, since every prime's highest power across the whole set gets included in a single pass.

LCM in real life: repeating schedules

Bus A arrives every 8 minutes and Bus B arrives every 12 minutes. Both just arrived together at 8:00 AM — when will that happen again? The answer is LCM(8, 12) = 24 minutes later, at 8:24 AM. This pattern — figuring out when repeating cycles realign — covers everything from traffic light timing to overlapping work shifts to when two planets' orbital periods bring them back to the same relative position.

Common mistakes to avoid

  • Reaching for GCF when the problem actually needs LCM, or vice versa — GCF splits into equal groups; LCM finds when repeating events realign.
  • Forgetting the LCM must be a multiple of every number in the set, not just the largest one, when double-checking an answer.
  • Applying the two-number shortcut LCM = (a × b) ÷ GCF directly to three or more numbers — it only holds for exactly two.
  • Stopping the listing method too early, before a value has actually shown up in every number's multiple list.

Frequently Asked Questions

What is the least common multiple (LCM)?

The LCM is the smallest positive integer divisible by each number in a set. The LCM of 4 and 6 is 12.

How is LCM used with fractions?

The LCM of denominators gives a convenient common denominator when adding or comparing fractions.

How does LCM relate to GCF?

For two positive integers a and b, LCM(a, b) × GCF(a, b) = a × b. Knowing one helps you find the other quickly.

When do you need LCM in word problems?

Problems about events repeating on different schedules — like two buses arriving every 8 and 12 minutes — use LCM to find when they align again.

How do I use this least common multiple calculator?

Enter two or more integers and click Calculate. The tool returns the LCM and shows prime-factorization steps when helpful.

How do you find the LCM of three or more numbers?

Combine the numbers two at a time: find the LCM of the first two, then find the LCM of that result with the next number, and so on. For 4, 6, and 8: LCM(4,6) = 12, then LCM(12,8) = 24, so the LCM of all three is 24.

More math calculators