CalculatorsConvertersAbout UsContact

LCM Calculator

Find the least common multiple (lowest common multiple) of two or more numbers, with the working shown, the GCF, and a tab that lists the common multiples.

  • Free to use
  • No sign-up
  • Numbers stay in your browser

Last updated:

Find the LCM of Two or More Numbers

Two to ten whole numbers, separated by commas or spaces. Negative numbers use their absolute value.

Show the working
The LCM of 4, 6 and 8 is
24
The smallest number that all 3 numbers divide into exactly. It is also called the lowest common multiple.
  • LCM24
  • GCF2
  • LCM as primes2³ × 3
  • LCM ÷ each number6, 4, 3
  • Next common multiples48, 72
  • LCM = product?No, the product is 192

1. List the multiples

4: 4 8 12 16 20 24
6: 6 12 18 24
8: 8 16 24

The first number on every list (blue) is 24.

2. Prime factorization

4 = 2²

6 = 2 × 3

8 = 2³

Take each prime the most times it appears: 2³ × 3 = 24.

3. GCF formula

LCM(4, 6): GCF = 2, so 4 × 6 ÷ 2 = 12

LCM(12, 8): GCF = 4, so 12 × 8 ÷ 4 = 24

LCM(a, b) = a × b ÷ GCF(a, b), repeated for each new number.

4. Ladder method

÷ 2468
÷ 2234
left132

Divide by a prime that goes into at least two numbers, until none is left. Multiply the divisors and what remains: 2 × 2 × 1 × 3 × 2 = 24.

The working: LCM(4, 6) = 12, then LCM(12, 8) = 24.

Whole numbers only, up to 15 digits. LCM(a, 0) = 0, and negative numbers use their absolute value. The LCM is exact, however big it gets.

About LCM Calculator

The least common multiple is the smallest number that every number in your list divides into with nothing left over. It is also called the lowest common multiple. Type your numbers and see the answer with the working and the GCF.

The Formula

LCM(a, b) =a × bGCF(a, b)
  • Find the GCF first, then divide the product by it.
  • For more than two numbers, take the LCM of the answer and the next number.
  • Coprime numbers (GCF 1) have an LCM equal to their product.

Good to Know

  • LCM = lowest = smallest common multiple
  • The LCM is never smaller than the biggest number
  • GCF × LCM = the product (for two numbers)
  • The LCM of fraction denominators is the LCD

LCM of Common Pairs

The pairs people search for most. Click a pair to use it in the calculator.

NumbersLCMGCF
151
122
202
183
302
402
244
363

GCF × LCM = a × b for any two numbers, so LCM = a × b ÷ GCF.

Other Names for the LCM

The same number goes by several names. Many people also type "lowest common factor" or "least common factor" and mean one of these.

ShortFull name
LCMLeast common multiple
LCMLowest common multiple
SCMSmallest common multiple
MCMMinimum common multiple
LCDLowest common denominator (the LCM of the denominators)

The lowest common factor of any numbers is always 1, so a search for it usually means the LCM (smallest shared multiple) or the GCF (biggest shared factor).

Which Method Should I Use?

All four give the same answer. Pick by the size of the numbers.

MethodBest for
List the multiplesSmall numbers, and for seeing the common multiples
Prime factorizationMedium numbers, and it gives the GCF too
GCF formulaTwo numbers, or big numbers: fast and exact
Ladder methodThree or more numbers, done by hand

Zero: LCM(a, 0) = 0. Negative numbers: the sign is ignored.

Try an Example

Pick one to fill in the calculator and see its answer.

ExampleResult
LCM 24, GCF 2
LCM 12, GCF 2
LCM 24, GCF 4
LCM 56, GCF 1
LCM 10, GCF 5
LCM 798, GCF 1
LCM 4,200, GCF 1
LCM 0
LCM 23,931,067,416, GCF 2
12, 24, 36, …

Click an example to put it into the calculator.

Good to know

  • Type two to ten whole numbers, separated by commas or spaces.
  • The LCM is at least as big as the biggest number.
  • LCM(a, 0) is 0, and negative numbers use their absolute value.
  • Every common multiple is a multiple of the LCM, so the Common Multiples tab just counts up in steps of the LCM.

What is included

  • The LCM of 2 to 10 numbers
  • The working by listing multiples, prime factors, the GCF formula and the ladder
  • The GCF, LCM as primes and the multipliers
  • A list of common multiples
  • Common pairs, other names and examples to click
  • Copy link and print

Important to know

Your numbers stay in your own browser and are never sent anywhere. The LCM is exact, even when it has dozens of digits. For the greatest common factor, use the GCF Calculator.

Use this free LCM calculator to find the least common multiple, also called the lowest common multiple, of two to ten whole numbers. It shows the working four ways: listing the multiples, prime factorization, the GCF formula and the ladder method. It also gives the GCF, the LCM as primes, the multiplier for each number and the next common multiples. The Common Multiples tab lists the first 5, 10 or 20 common multiples of your numbers. Tables list the LCM of the most common pairs, the other names for the LCM and which method to use. It is free and instant, and your numbers stay in your browser.

What is the least common multiple?

The least common multiple (LCM) of two or more whole numbers is the smallest number that all of them divide into exactly. The multiples of 4 are 4, 8, 12, 16, 20, 24 and so on, the multiples of 6 are 6, 12, 18, 24, 30, and the multiples of 8 are 8, 16, 24, 32. The first number on all three lists is 24, so the LCM of 4, 6 and 8 is 24. It is also called the lowest common multiple, the smallest common multiple or the minimum common multiple. They are all the same number.

Method 1: list the multiples

Write the multiples of each number in order and stop at the first one they all share. For 4 and 6, the lists meet at 12. It is easy to see and good for small numbers, but it takes a long time when the LCM is big, so the calculator lists the multiples only when no number needs more than 40 of them.

Method 2: prime factorization

Break each number into primes: 4 = 2², 6 = 2 × 3 and 8 = 2³. Then take each prime the most times it appears in any of them: 2 three times (from 8) and 3 once (from 6). So the LCM is 2³ × 3 = 24. The same primes, taken the fewest times instead, give the greatest common factor.

Method 3: the GCF formula

For two numbers, LCM(a, b) = a × b ÷ GCF(a, b). For 12 and 18 the GCF is 6, so the LCM is 12 × 18 ÷ 6 = 36. For more numbers, repeat it: LCM(4, 6) = 12, and then LCM(12, 8) = 12 × 8 ÷ 4 = 24. It needs no factoring, so it is the best way to get the LCM of big numbers. The GCF Calculator finds the GCF with Euclid's algorithm.

Method 4: the ladder method

Write the numbers in a row and divide by a prime that goes into at least two of them, carrying down the numbers it does not divide. Repeat until no prime goes into two numbers. For 4, 6 and 8: divide by 2 to get 2, 3, 4, then by 2 again to get 1, 3, 2. Multiply the divisors and what is left: 2 × 2 × 1 × 3 × 2 = 24. This is a favorite in schools for three or more numbers.

LCM and GCF

For two numbers, GCF × LCM = the product of the numbers. For 12 and 18, 6 × 36 = 216 = 12 × 18. The GCF is the biggest number that goes into both, and the LCM is the smallest number both go into, so the two answers are a pair. The calculator shows the GCF next to the LCM.

When the LCM is the product

If two numbers share no factor except 1, they are coprime, and their LCM is just their product. 7 and 8 are coprime, so their LCM is 56. If one number divides the other, the LCM is the bigger one: the LCM of 5 and 10 is 10.

Common multiples

A common multiple is any number that all of them divide into. Every common multiple is a multiple of the LCM, so the common multiples of 4 and 6 are 12, 24, 36, 48, 60 and on forever. The Common Multiples tab lists the first 5, 10 or 20 of them.

LCM and fractions

To add fractions with different denominators you need a common denominator, and the best one is the lowest common denominator (LCD), which is the LCM of the denominators. For 1/4 + 1/6 the LCD is 12, so the sum is 3/12 + 2/12 = 5/12. The Fraction Calculator does this for you.

Zero and negative numbers

Zero is a multiple of every number, so the LCM of any list that includes 0 is 0. For negative numbers the calculator uses the absolute value, so the LCM of −4 and 6 is 12.

A real use: when two things line up again

If one bus leaves every 4 minutes and another every 6 minutes, and they leave together now, they will leave together again after the LCM of 4 and 6, which is 12 minutes. The same sum works for gears, for repeating lights and for planning tasks that repeat on different schedules.

View All Calculators

Frequently Asked Questions

What is the least common multiple (LCM)?

It is the smallest number that two or more numbers all divide into exactly. The LCM of 4 and 6 is 12, because 12 is the first number on both lists of multiples: 4, 8, 12 and 6, 12.

What does LCM stand for?

Least common multiple. It is also called the lowest common multiple, the smallest common multiple or the minimum common multiple. All four names mean the same number.

How do I find the LCM of two numbers?

List the multiples of each and pick the first one they share, break each into primes, or use the GCF: LCM = a × b ÷ GCF. For 12 and 18 the GCF is 6, so the LCM is 12 × 18 ÷ 6 = 36. This calculator shows all four methods.

How do I find the LCM of three or more numbers?

Find the LCM of the first two, then the LCM of that answer and the next number, and so on. For 4, 6 and 8, LCM(4, 6) = 12 and LCM(12, 8) = 24. The calculator takes up to ten numbers.

What is the difference between LCM and GCF?

The GCF is the biggest number that divides all the numbers, and the LCM is the smallest number that they all divide into. For 12 and 18 the GCF is 6 and the LCM is 36, and 6 × 36 = 216 = 12 × 18.

What is the LCM of 4 and 6?

12. The multiples of 4 are 4, 8, 12, 16 and the multiples of 6 are 6, 12, 18, so 12 is the smallest number on both lists.

What is the LCM of 8 and 12?

24. The GCF of 8 and 12 is 4, so the LCM is 8 × 12 ÷ 4 = 24. Click the pair in the table on this page to see the full working.

What is the lowest common multiple of 6 and 9?

18. The GCF of 6 and 9 is 3, so the lowest common multiple is 6 × 9 ÷ 3 = 18.

How do I find the LCM using prime factorization?

Write each number as a product of primes, then multiply every prime that appears, each taken the most times it appears in any number. 12 = 2² × 3 and 18 = 2 × 3², so the LCM is 2² × 3² = 36.

How do I use the GCF formula for the LCM?

Find the GCF with Euclid's algorithm, then divide the product by it: LCM(a, b) = a × b ÷ GCF(a, b). It needs no factoring, so it works well for big numbers. For more numbers, repeat it with the answer and the next number.

What is the ladder method?

Write the numbers in a row and divide by a prime that goes into at least two of them, carrying the others down. Repeat, then multiply the divisors and what is left. For 4, 6 and 8: divide by 2 and 2 to get 1, 3, 2, and 2 × 2 × 1 × 3 × 2 = 24.

When is the LCM equal to the product of the numbers?

When no two of the numbers share a factor except 1, which is called being coprime. 7 and 8 are coprime, so their LCM is 7 × 8 = 56. If one number divides the other, the LCM is the bigger number instead.

What are common multiples?

Numbers that all of the given numbers divide into. Every common multiple is a multiple of the LCM, so the common multiples of 4 and 6 are 12, 24, 36, 48, and so on. The Common Multiples tab lists them.

Is "lowest common factor" the same as LCM?

No. The lowest common factor of any numbers is always 1. People who search for it usually mean the LCM (the smallest shared multiple) or the GCF (the biggest shared factor), and this calculator gives the LCM and the GCF.

What is the LCM of a number and 0?

0. Zero is a multiple of every number, so the LCM of any list that includes 0 is 0. The calculator shows the LCM of the other numbers as well.

How is the LCM used with fractions?

To add or subtract fractions with different denominators, use the LCM of the denominators as the common denominator. For 1/4 + 1/6 the LCM of 4 and 6 is 12, so it becomes 3/12 + 2/12 = 5/12.

Where is the LCM used in real life?

Wherever things repeat on different schedules. If one bus leaves every 4 minutes and another every 6 minutes, they leave together again after 12 minutes. It is also used for gears, repeating lights and planning tasks.

Are my numbers saved or shared?

No. The calculation happens in your browser, and the numbers you enter are not stored or sent to any server. A link you copy keeps the numbers after the # sign, which browsers never send to a server.