Skip to main content

Notice Send us your feedback to help us improve this service.

LCM Calculator

Calculate the Least Common Multiple of two numbers.

What this calculator does

This tool finds the lowest common multiple (LCM) of two whole numbers, also called the least common multiple. That is the smallest number that both of them divide into evenly.

Use it to find a common bottom number when you add fractions, to see when two repeating events will fall on the same day, or to work out how many packs to buy so nothing is left over.

How we work it out

We multiply the two numbers together, then divide by their greatest common factor. For 12 and 18, the product is 216 and the GCF is 6, so the LCM is 216 ÷ 6 = 36.

This gives the same answer as listing the multiples of each number and finding the first one they share, but it is much faster for big numbers. Negative numbers are treated as positive. Decimals and zero are not allowed, and you will see a message if you enter one.

Two ways to find the LCM

The listing method is easy to follow. Write out the multiples of each number until one appears in both lists. For 4 and 6, the multiples of 4 are 4, 8, 12 and the multiples of 6 are 6, 12. The first match is 12.

The calculator uses a shortcut that works for any size of number. Multiply the two numbers, then divide by their greatest common factor. For 4 and 6, that is 24 ÷ 2 = 12. You can find the GCF on its own with the GCF calculator.

Where you will use it

  • Adding fractions. The LCM of the bottom numbers is the lowest common denominator. To add 1/4 and 1/6, use 12 as the bottom: 3/12 + 2/12 = 5/12.
  • Schedules. If two buses leave a stop together, one every 15 minutes and the other every 20, they leave together again every 60 minutes.
  • Buying in packs. If plates come in packs of 8 and cups in packs of 12, buying 24 of each leaves nothing over.

Quick checks

The LCM is never smaller than the larger of your two numbers. If the larger number is a multiple of the smaller one, it is the LCM, so the LCM of 4 and 12 is 12. When 1 is the only factor they have in common, the LCM is simply their product, so the LCM of 7 and 9 is 63.

A common mistake is to multiply the two numbers and stop there. That always gives a common multiple, but often not the lowest one. For 6 and 8, the product is 48, but the LCM is 24. Using the larger number makes your fractions harder to simplify later.

What this does not include

  • More than two numbers at once; find the LCM of two, then use that answer with the next number
  • Zero, which the calculator does not accept
  • Decimals; both numbers must be whole numbers
  • Negative numbers, which are treated as positive
  • Answers bigger than 9,007,199,254,740,992, which are refused because they cannot be shown exactly

Common questions

When would I use this?

Adding fractions with different bottoms, or working out when two repeating events line up. It also helps when you buy things sold in different pack sizes and want the same number of each with none left over.

How do I use the LCM to add fractions?

Find the LCM of the two bottom numbers. Then change each fraction so it has that bottom, by multiplying its top and bottom by the same number. For 5/6 + 3/8, the LCM of 6 and 8 is 24. That gives 20/24 + 9/24 = 29/24.

What is the difference between LCM and GCF?

The GCF is the biggest number that divides into both of your numbers. The LCM is the smallest number that both of your numbers divide into. For 4 and 6, the GCF is 2 and the LCM is 12. A quick way to remember: factors are smaller, multiples are bigger.

Why can't I enter zero?

Zero is a multiple of every number, so it would make every answer zero, which is not useful. The lowest common multiple is about positive multiples, so the calculator asks for numbers other than zero.

What is the LCM of two prime numbers?

It is their product. Two different primes share no factor except 1, so nothing smaller works. The LCM of 5 and 7 is 35, and the LCM of 11 and 13 is 143. The same is true for any two numbers that share no common factor, even if they are not prime.

Sources

Last reviewed October 18, 2026. How we check our numbers.

This is an estimate to help you plan. It is not financial, medical, or legal advice. Talk to a professional before you make a big decision.

Add this calculator to your website

Free to use on your site, blog or intranet. Paste this code where you want the calculator to appear. It works on its own, sets no cookies and shows no ads.