LCM Calculator

Find the Least Common Multiple of two or more numbers, with the prime factorization shown for each.

LCM Finder

Enter two or more numbers, comma-separated

LCM(8, 12)Two Numbers
LCM(4, 6, 8)Three Numbers
LCM(17, 5)Coprime Numbers
LCM(9, 12, 15)Shared Prime Factors
← Back to Examples
LCM
Answer
Steps go here…

LCM and GCF Are a Pair

If you’ve used the GCF Calculator on this site, LCM is its natural counterpart. GCF finds the largest number that divides evenly into a set of numbers; LCM finds the smallest number that a set of numbers all divide evenly into. One shrinks toward the numbers, the other grows away from them.

They’re connected by a clean formula for any two numbers a and b: LCM(a, b) × GCF(a, b) = a × b. The calculator above checks this relationship automatically whenever you enter exactly two numbers.

The prime-factorization method

LCM = product of the highest power of every prime that appears

Worked Example — LCM(8, 12)

Find: the LCM of 8 and 12

Step 1. Prime factorize each number: 8 = 2³, and 12 = 2² × 3.

Step 2. For every prime that shows up in either factorization, take the highest power it appears with: 2 shows up as 2³ (from 8) and 2² (from 12) — take 2³. 3 only shows up as 3¹ (from 12) — take 3¹.

Step 3. Multiply: 2³ × 3 = 8 × 3 = 24.

Check it: 24 ÷ 8 = 3 exactly, and 24 ÷ 12 = 2 exactly — 24 is the smallest number both divide into cleanly.

Common Mistakes

  • Confusing LCM with GCF. GCF(8, 12) = 4 (the largest shared factor); LCM(8, 12) = 24 (the smallest shared multiple). They’re opposite operations, and it’s easy to answer the wrong one under time pressure.
  • Taking the lowest power of a shared prime instead of the highest. For LCM you always want the highest power that appears anywhere in the list, not the smallest.
  • Just multiplying all the numbers together. That gives a common multiple, but not usually the least one — it skips canceling out primes the numbers already share.
  • Forgetting a number is already prime. If one of your numbers is a prime like 17, its factorization is just itself to the first power — there’s nothing more to break down.

Frequently Asked Questions

GCF (Greatest Common Factor) is the largest number that divides evenly into every number in the set. LCM (Least Common Multiple) is the smallest number that every number in the set divides evenly into. They move in opposite directions from the original numbers.
Yes. The prime factorization method works the same way for any amount of numbers — factorize each one, then take the highest power of every prime that appears across the whole list.
Simply their product. Since two different primes share no common factors, the smallest number they both divide into is just multiplying them together, for example LCM(5, 7) = 35.
Adding or subtracting fractions with different denominators requires a common denominator, and the LCM of the denominators is the smallest one available. Using it keeps the numbers in the calculation as small as possible.