Skip to content
CalculatPage

LCM Calculator

Find the smallest number that every one of your numbers divides into.

Updated November 2026 · How we build calculators

Separate numbers with commas, spaces or new lines.

Result

Your result will appear here

Enter your numbers, then press Calculate.

How the LCM Calculator works

The LCM of two numbers is their product divided by their GCF. For more numbers, the calculation is repeated pairwise.

Formula used

lcm(a, b) = a × b ÷ gcd(a, b)

Step-by-step example

Using the default values in the calculator above:

  1. Whole numbers: 12, 18, 30

The calculator then applies the formula above and returns:

  • Least common multiple: 180
  • Greatest common factor: 6
  • Each number goes in: 12 × 15, 18 × 10, 30 × 6

Notes on the inputs

Whole numbers
Separate numbers with commas, spaces or new lines.

Tips and background

For scheduling problems (two events repeating every 4 and 6 days), the LCM tells you when they coincide again.

Finding the least common multiple

The LCM of 12 and 18 is 36: the smallest number both divide into. A fast method uses the GCF: LCM(a, b) = a × b ÷ GCF(a, b), so 12 × 18 ÷ 6 = 36. The calculator extends this to as many numbers as you enter.

Where LCM shows up

It gives the common denominator when adding fractions with different denominators, and it solves repeating-event problems: if one task happens every 12 days and another every 18, they coincide every 36 days. Pair it with the GCF calculator and the fraction calculator.

Using the LCM for fractions and repeating schedules

To add 5/12 and 7/18, use the LCM of 12 and 18, which is 36: 5/12 = 15/36 and 7/18 = 14/36, so the sum is 29/36. The LCM also solves repeating schedules: buses that arrive every 12 and 18 minutes leave together every 36 minutes. For larger sets of numbers, work pairwise: the LCM of 4, 6 and 10 is the LCM of 12 and 10, which is 60.

What are some more LCM examples?

NumbersLCM
4 and 612
12 and 1836
7 and 1177
4, 6 and 1060

When two numbers share no factor, such as 7 and 11, the LCM is their product.

Do you need the GCF or the LCM?

Choose the LCM when you are building up to a shared total: matching package sizes, finding a common denominator or timing repeats. If one item comes in packs of 4 and another in packs of 6, 12 is the smallest equal number, which means 3 packs of the first and 2 of the second. Choose the GCF calculator when you are splitting amounts into the largest equal groups.

Common mistakes to avoid with the LCM Calculator

  • Multiplying the numbers instead of finding the smallest common multiple.
  • Mixing up LCM and GCF.
  • Entering decimals instead of whole numbers.

Frequently asked questions

Why do I need the LCM?

To find a common denominator when adding fractions.

What is the LCM of 4 and 6?

12.

Is the LCM always larger than the numbers?

It is at least as large as the largest number.

What is the LCM of two prime numbers?

Their product, since they share no factors.

How do I use LCM to add fractions?

Use it as the common denominator, then convert and add.