LCM Calculator

The LCM Calculator finds the least common multiple of two or more numbers instantly. Enter your numbers, hit calculate, and you'll get the smallest positive integer that's evenly divisible by each value you entered. Whether you're working through a math homework problem, adding fractions with different denominators, or scheduling repeating events, the LCM comes up more often than you'd think. This page also walks through how the math actually works, so you understand the answer, not just the number.

Enter Details

Result

LCM of two integers

Note — This result is an estimate. Talk to a healthcare provider for personalized guidance.

How to Find the Least Common Multiple

The least common multiple of a set of numbers is the smallest number that all of them divide into evenly. There's no remainder. No leftover. It divides cleanly.

There are a few ways to find it: listing out multiples by hand, using prime factorization, or applying a formula with the greatest common factor. Each method gives the same answer. Which one you use depends on how big your numbers are and whether you're working by hand or with a calculator.

For small numbers, listing multiples works fine. For larger numbers or three or more values, prime factorization or the GCF formula is usually faster and less error-prone.

Least Common Multiple of Two Numbers

Finding the LCM of two numbers is the most common case. Say you need the LCM of 4 and 6. List out a few multiples of each:

  • Multiples of 4: 4, 8, 12, 16, 20, 24…
  • Multiples of 6: 6, 12, 18, 24, 30…

The first multiple they share is 12, so LCM(4, 6) = 12. Simple enough when the numbers are small. For anything bigger, the formula approach (covered below) saves you from writing out a long list and hoping you spot the match.

LCM of Three or More Numbers

Finding the LCM of three or more numbers follows the same logic, but listing multiples gets tedious fast. The better approach is to work through the numbers systematically, either using prime factorization or by chaining the two-number LCM together.

To chain it: find the LCM of the first two numbers, then find the LCM of that result and the third number, and so on. You can extend this to as many numbers as you need.

For example, to find LCM(4, 6, 10): first, LCM(4, 6) = 12. Then LCM(12, 10) = 60. So LCM(4, 6, 10) = 60.

Using Prime Factorization

Break each number down into its prime factors. Then take the highest power of every prime that appears across all the numbers and multiply those together.

Example: LCM(12, 18, 30).

  • 12 = 2² × 3
  • 18 = 2 × 3²
  • 30 = 2 × 3 × 5

Highest powers: 2², 3², and 5. Multiply them: 4 × 9 × 5 = 180. That's the LCM. This method scales well and keeps you organized when you're dealing with several numbers at once.

Using the GCF Method

You can also find the LCM of three or more numbers using the GCF (greatest common factor). The idea is to reduce the problem step by step.

Find the LCM of the first two numbers using the formula LCM(a, b) = (a × b) ÷ GCF(a, b). Take that result, then apply the same formula with the next number in your list. Keep going until you've worked through all of them.

It's methodical, but it works cleanly, especially when you're already comfortable finding GCFs. If you have a GCF calculator handy, this whole process moves quickly.

LCM Formula

There's a clean algebraic relationship between the LCM and GCF of any two numbers. Once you know one, you can find the other. This is probably the most efficient way to calculate LCM by hand for larger numbers, because finding the GCF (using the Euclidean algorithm, for instance) is usually faster than listing out multiples.

The formula works for any two positive integers, and it's the backbone of how most calculators handle LCM computations under the hood.

LCM = (a × b) ÷ GCF(a, b)

The formula is: LCM(a, b) = (a × b) ÷ GCF(a, b).

Here's a quick example. Find LCM(8, 12).

  • GCF(8, 12) = 4
  • 8 × 12 = 96
  • 96 ÷ 4 = 24

So LCM(8, 12) = 24. You can verify this by listing multiples: 8, 16, 24 and 12, 24. Yep, 24 is the first one they share. The formula gets you there without the listing.

Finding LCM with Repeated Prime Factors

When numbers share prime factors, you don't add those factors twice. You take the highest power of each prime, not the sum.

Say you're finding LCM(36, 48).

  • 36 = 2² × 3²
  • 48 = 2⁴ × 3

The highest power of 2 is 2⁴ = 16. The highest power of 3 is 3² = 9. Multiply: 16 × 9 = 144. That's the LCM. A common mistake is multiplying every prime factor you see without checking for overlap. Taking the maximum power of each prime prevents that error.

LCM Calculation Examples

A few worked examples to show the methods in practice:

NumbersMethod UsedLCM
6 and 9Listing multiples18
15 and 25GCF formula: GCF = 5, (15×25)÷5 = 7575
8, 12, and 20Prime factorization: 2³ × 3 × 5 = 120120
7 and 13Both prime, so LCM = 7 × 1391
100 and 75GCF formula: GCF = 25, (100×75)÷25 = 300300

Notice the last row: when two numbers share a large GCF, the LCM is much smaller than their product. That's the formula doing its job.

LCM vs GCF (Greatest Common Factor)

People mix these two up all the time, which makes sense because they're related. But they answer different questions.

  • GCF (greatest common factor): the largest number that divides into all the given numbers evenly. It's about what they share.
  • LCM (least common multiple): the smallest number that all the given numbers divide into evenly. It's about what they build up to.

For 12 and 18: GCF = 6, LCM = 36. The GCF is always less than or equal to the smallest number. The LCM is always greater than or equal to the largest number.

They're also connected by the formula (a × b) = LCM(a, b) × GCF(a, b). So if you know one, you can always find the other, as long as you're working with two numbers.

LCM and Least Common Denominator (LCD)

The least common denominator of two or more fractions is just the LCM of their denominators. Same concept, different name, different context.

When you're adding or subtracting fractions, you need a common denominator before you can combine the numerators. The LCD is the smallest number that works, and finding it is exactly the same as finding an LCM.

For fractions with denominators 4 and 6, the LCD is LCM(4, 6) = 12. Convert both fractions to twelfths, then add or subtract. The LCD keeps the numbers as small as possible, which makes the arithmetic cleaner.

Using LCM to Add and Subtract Fractions

Here's the process, step by step, for adding fractions with unlike denominators:

  1. Find the LCM of the denominators. That's your LCD.
  2. Rewrite each fraction with the LCD as the new denominator. Multiply the numerator by however much the denominator grew.
  3. Add (or subtract) the numerators. Keep the denominator the same.
  4. Simplify the result if possible.

Example: 1/4 + 1/6.

  • LCM(4, 6) = 12
  • 1/4 = 3/12 and 1/6 = 2/12
  • 3/12 + 2/12 = 5/12

5/12 doesn't simplify further, so that's the answer. The same process works for subtraction. Just swap the plus sign for a minus and be careful with negative results.

Prime Factorization Method Explained

Prime factorization means breaking a number down into the prime numbers that multiply together to produce it. Every integer greater than 1 has exactly one prime factorization (ignoring order).

To factor a number, start dividing by the smallest prime (2) and work your way up. If 2 doesn't divide evenly, try 3, then 5, then 7, and so on. Keep dividing until you're left with 1.

Example: factor 60.

  • 60 ÷ 2 = 30
  • 30 ÷ 2 = 15
  • 15 ÷ 3 = 5
  • 5 is prime

So 60 = 2² × 3 × 5. Once you have the prime factorizations of all your numbers, finding the LCM is just a matter of collecting the highest power of each prime and multiplying. It's organized, reliable, and works on numbers of any size.

Listing Multiples Method

This is the most straightforward approach and the one most people learn first. Write out the multiples of each number until you find one they all share.

It works great for small numbers. For example, LCM(3, 5):

  • Multiples of 3: 3, 6, 9, 12, 15, 18…
  • Multiples of 5: 5, 10, 15, 20…

LCM = 15. Found it quickly.

The downside is that for larger numbers, or numbers with a large LCM, you might be writing for a while. LCM(13, 17) = 221, which means listing 17 multiples of 13 and 13 multiples of 17 before you hit the match. At that point, the formula or prime factorization method is a much better use of your time.

Still, for quick mental math or when you're working with small values, listing multiples is perfectly valid. It requires no formulas, just basic multiplication.

Other Maths Calculators

Explore all