Free LCM Tool

Least Common Multiple (LCM) Calculator

Enter any set of whole numbers and watch the least common multiple update instantly, complete with a prime-factorization breakdown and every common multiple up to ten times the LCM.

2–5numbers supported
Instantreal-time results
100%free & private
LCM Calculator Live
Number 1
Number 2

Add up to 5 numbers. Results update as you type.

Enter at least two numbers above to see the LCM.
Show steps ▼
01. DEFINITION

What Is the Least Common Multiple?

The least common multiple, almost always shortened to LCM, is the smallest positive whole number that every number in a set divides into with no remainder. If you list the multiples of each number, the results of multiplying it by 1, 2, 3, and so on, the LCM is the first value that shows up in every one of those lists at the same time. Because it must be divisible by each original number, the LCM is always greater than or equal to the largest number in the set, and it is unique for any given set of numbers.

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

Smallest shared multiple

Among all the numbers that every input divides into evenly, the LCM is specifically the smallest one. There are infinitely many common multiples of any set of numbers. You could always multiply the LCM by 2, 3, or any whole number to get another one, but only one of them is the least.

Always divisible by every input

By definition, dividing the LCM by any of the original numbers always produces a whole number with no remainder. This is the property that makes the LCM useful for adding fractions: once every denominator divides evenly into a shared number, each fraction can be rewritten over that number without changing its value.

Works for any count of numbers

The LCM is not limited to pairs. You can find the least common multiple of three, four, or more numbers by combining them two at a time, or by factoring all of them into primes at once and taking the highest power of each prime that appears anywhere in the set.

02. METHODS

How to Find the LCM

There are three standard ways to find a least common multiple by hand. Listing multiples is the most intuitive and works well for small numbers. Prime factorization scales better as numbers grow larger or as you add more numbers to the set. The GCF formula is the fastest route whenever you already know (or can quickly compute) the greatest common factor of two numbers.

Method Best used when How it works
Listing multiples Numbers are small and easy to count through by hand Write out multiples of each number until one repeats across every list
Prime factorization Numbers are larger or you have three or more numbers Factor each number into primes, then multiply the highest power of each prime
GCF formula You already know (or can find) the greatest common factor Multiply the two numbers and divide by their GCF

List the Multiples of Each Number

This method is the most visual way to understand what LCM actually means. Write down the multiples of each number in order, first, second, third, and so on, until a value appears on every list. That shared value is the LCM. For small numbers this usually only takes a handful of steps, and it builds strong intuition for why the LCM has to be divisible by every original number.

Multiples of 6
612182430
Multiples of 9
9182736

Break Each Number into Prime Factors

For larger numbers, listing multiples gets tedious. Prime factorization scales much better: break each number down into a product of primes, then build the LCM by taking the highest power of every prime that shows up anywhere in the set. This is the same method the calculator above uses to build its step-by-step breakdown.

8 = 23
12 = 22 × 3
LCM = product of highest powers
23 × 3 = 24

Use the GCF Formula

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

Every pair of numbers has a mathematical relationship between its LCM and its GCF (greatest common factor): multiplying the two numbers together and dividing by their GCF always gives the LCM. This is usually the fastest method by hand whenever the GCF is easy to spot.

03. RELATIONSHIP

How LCM and LCD Connect

The least common denominator, or LCD, is not a different calculation from the LCM. It is the exact same calculation applied specifically to the denominators of a set of fractions. Whenever you add or subtract fractions with different denominators, the LCD you need is simply the LCM of those denominators. Once the fractions share that denominator, adding or comparing them is a matter of ordinary whole-number arithmetic on the numerators.

Take 1/4 and 1/6 as an example. Their denominators are 4 and 6. The LCM of 4 and 6 is 12, so the LCD of 1/4 and 1/6 is also 12. Rewritten over that denominator, 1/4 becomes 3/12 and 1/6 becomes 2/12, and now they can be added directly to get 5/12.

1/4 1/6 Denominators 4 and 6 LCM(4, 6) = 12 LCD = 12
LCM

A general-purpose calculation for any set of whole numbers, used in scheduling, packaging, gear ratios, and anywhere repeating quantities need to be lined up.

LCD

The LCM applied specifically to the denominators of a set of fractions, so those fractions can be rewritten with a shared denominator and combined arithmetically.

04. EXAMPLES

Worked LCM Examples

Six fully solved examples below cover the listing-multiples method, prime factorization, and LCM problems with three numbers at once, a good cross-section of the situations you're likely to run into.

Example 1 Listing multiples

LCM of 4 and 6

  • Multiples of 4: 4, 8, 12, 16, 20…
  • Multiples of 6: 6, 12, 18, 24…
  • First value in both lists: 12
LCM 12
Example 2 Listing multiples

LCM of 6 and 9

  • Multiples of 6: 6, 12, 18, 24…
  • Multiples of 9: 9, 18, 27, 36…
  • First value in both lists: 18
LCM 18
Example 3 Prime factorization

LCM of 8 and 12

  • 8 = 2 × 2 × 2 = 2³
  • 12 = 2 × 2 × 3 = 2² × 3
  • Take the highest power of each prime: 2³ × 3 = 24
LCM 24
Example 4 Prime factorization

LCM of 5 and 7

  • 5 is prime: 5
  • 7 is prime: 7
  • No shared factors, so the LCM is simply 5 × 7
LCM 35
Example 5 Three numbers

LCM of 3, 4 and 5

  • 3, 4 and 5 share no common factors
  • LCM(3, 4) = 12, then LCM(12, 5) = 60
  • So the LCM of all three is 60
LCM 60
Example 6 Three numbers

LCM of 6, 8 and 10

  • 6 = 2 × 3, 8 = 2³, 10 = 2 × 5
  • Highest powers: 2³ × 3 × 5 = 120
  • Check: 120 ÷ 6 = 20, 120 ÷ 8 = 15, 120 ÷ 10 = 12
LCM 120
05. REFERENCE

LCM Reference Table

Look up the least common multiple of any pair of numbers from 2 through 10 in the grid below. Find one number along the top and the other down the side. The cell where the row and column meet is their LCM.

LCM 2345678910
2 2641061481810
3 63121562124930
4 412420122883620
5 10152053035404510
6 661230642241830
7 14212835427566370
8 824840245687240
9 1893645186372990
10 103020103070409010
06. FAQ

Frequently Asked Questions About LCM

What is the LCM of 4 and 6?
The LCM of 4 and 6 is 12. The multiples of 4 are 4, 8, 12, 16… and the multiples of 6 are 6, 12, 18… The smallest number that appears in both lists is 12, so LCM(4, 6) = 12. You can check this with the GCF formula too: GCF(4, 6) = 2, and (4 × 6) ÷ 2 = 12.
What is the difference between LCM and GCF?
The LCM (least common multiple) is the smallest positive number that both numbers divide into evenly, while the GCF (greatest common factor) is the largest number that divides evenly into both numbers. LCM is built by taking the highest power of every prime factor that appears in either number, while GCF is built by taking only the lowest power of the primes that both numbers share. For 12 and 18, the GCF is 6 and the LCM is 36.
What is the LCM of 3 numbers?
To find the LCM of three or more numbers, apply the two-number method repeatedly: first find the LCM of the first two numbers, then find the LCM of that result and the third number. For example, to find the LCM of 3, 4 and 5: LCM(3, 4) = 12, then LCM(12, 5) = 60. So the LCM of 3, 4 and 5 is 60. The prime-factorization method also scales naturally to any number of inputs.
How is LCM used in real life?
LCM shows up whenever you need to synchronize repeating events or combine quantities measured in different-sized groups. Scheduling is a classic example: if one bus arrives every 12 minutes and another every 18 minutes, they both arrive together every LCM(12, 18) = 36 minutes. Recipe scaling, packaging, gear and pulley design, and music time signatures all rely on the same idea. In math class, LCM's most common use is finding the least common denominator for adding or subtracting fractions.
Is LCM the same as LCD?
Not quite. They are the same calculation applied to different objects. LCM (least common multiple) is a general concept that applies to any set of whole numbers. LCD (least common denominator) is the name given to the LCM when it is applied to the denominators of fractions. For example, the LCD of 1/4 and 1/6 equals the LCM of 4 and 6, which is 12. Every LCD calculation is an LCM calculation, but not every LCM calculation involves fractions.
What is the LCM of 8 and 12?
The LCM of 8 and 12 is 24. Using prime factorization, 8 = 2³ and 12 = 2² × 3. Taking the highest power of each prime gives 2³ × 3 = 8 × 3 = 24. You can also verify it by listing multiples of 8 (8, 16, 24…) and 12 (12, 24…). The first shared value is 24.