LCM Calculator Least Common Multiple Calculator
Type or paste two or more whole numbers and get their least common multiple right away — with the GCF and the steps shown, so you can learn how the answer was found.

The least common multiple is the smallest number that two or more numbers all divide into evenly. It is the number you need when you add or subtract fractions with different denominators, line up repeating schedules, or solve word problems in class.
This calculator finds the LCM of any list you give it — two, three, or up to twenty numbers at once — and it does not just give you the answer. It shows the GCF next to the result and the working three different ways: listing multiples, prime factorization, and the GCD formula, so you can check the result and understand exactly where it came from. There is no sign-up and nothing to install, and because every calculation runs in your browser, the numbers you type are never sent to a server.
What is an LCM Calculator?
An LCM calculator finds the least common multiple of a group of numbers. The least common multiple, or LCM, is the smallest number that every number in the group divides into with nothing left over.
Take 4 and 6. The multiples of 4 are 4, 8, 12, 16, 20, 24. The multiples of 6 are 6, 12, 18, 24. Both lists include 12 and 24, and the smallest of those is 12. So the LCM of 4 and 6 is 12.
You will use LCM when you add or subtract fractions with different bottom numbers, and when you work out when two repeating things line up. If one bus comes every 12 minutes and another every 18 minutes, they arrive together again after 36 minutes. That is the LCM of 12 and 18.
Least Common Multiple Calculator — the longer name for the same tool
People search for this tool under several names: least common multiple calculator, smallest common multiple calculator, minimum common multiple calculator and lowest common multiple calculator. They are all the same calculation. “Least”, “smallest”, “minimum” and “lowest” each describe the same thing — the first multiple that all of your numbers share.
So if a homework sheet asks for the least common multiple, a worksheet asks for the lowest common multiple, or a video mentions the smallest common multiple, the calculator at the top of this page is the one you need. Type your numbers in, and read the answer with the working shown underneath it.
How to Calculate LCM?
There are four common ways to find the LCM. All of them give the same answer, so pick the one that feels easiest.
Method 1: List the multiples
Write out the multiples of each number, then find the smallest one that appears in every list.
For 6 and 8: the multiples of 6 are 6, 12, 18, 24, 30. The multiples of 8 are 8, 16, 24, 32. The first match is 24, so LCM(6, 8) = 24.
This works well for small numbers. It gets slow when the numbers are big.
Method 2: Prime factorization
- Break each number into prime factors.
- For each prime, pick the highest power that shows up in any of the numbers.
- Multiply those powers together.
For 12 and 18:
12 = 2² × 3
18 = 2 × 3²
LCM = 2² × 3² = 4 × 9 = 36
Method 3: Use the GCD
If you know the greatest common divisor (GCD), you can use a short formula. For 12 and 18 the GCD is 6, so the LCM is (12 × 18) ÷ 6 = 216 ÷ 6 = 36.
Method 4: Division ladder
Write the numbers in a row. Divide the whole row by a prime that divides at least one of them, carrying down any number it does not divide. Keep going until every number is 1, then multiply all the divisors you used.
It is the fastest method on paper for a longer list, because one ladder handles every number at once.
Worked example: the ladder for 12, 18 and 30
Start with the row 12, 18, 30. Divide by a prime, carry down whatever it does not divide, and repeat:
| Divide by | The row becomes |
|---|---|
| — | 12, 18, 30 |
| 2 | 6, 9, 15 |
| 3 | 2, 3, 5 |
| 2 | 1, 3, 5 |
| 3 | 1, 1, 5 |
| 5 | 1, 1, 1 |
Multiply the divisors: 2 × 3 × 2 × 3 × 5 = 180. So LCM(12, 18, 30) = 180 — the same answer the other three methods give.
LCM Formula Explained
For two numbers, the formula is:
LCM(a, b) = (a × b) ÷ GCD(a, b)
Why does it work? When you multiply a and b, any factors the two numbers share get counted twice. Dividing by the GCD removes that extra copy, and what is left is the smallest number both can divide into.
For three or more numbers, find the LCM of the first two, then find the LCM of that answer and the next number. Keep going until you run out of numbers. For example, LCM(4, 6, 8) = LCM(LCM(4, 6), 8) = LCM(12, 8) = 24.
Two shortcuts are worth remembering:
- If the numbers share no factors (like 5 and 7), the LCM is just their product, 35.
- If one number divides into the other (like 4 and 12), the LCM is the bigger number, 12.
LCM vs GCF: what is the difference?
The LCM and the GCF are the two answers people mix up most, so here they are side by side:
| LCM | GCF | |
|---|---|---|
| Full name | Least common multiple | Greatest common factor |
| It finds | The smallest number all your numbers divide into | The largest number that divides into all your numbers |
| Size | As big as or bigger than your biggest number | As small as or smaller than your smallest number |
| Prime factors | The highest power of every prime | The lowest power of the shared primes |
| Used for | Common denominators, schedules that line up | Simplifying fractions, splitting into equal groups |
For two numbers the two answers are linked: LCM(a, b) × GCF(a, b) = a × b. For 12 and 18 that is 36 × 6 = 216 = 12 × 18. This is why the calculator shows the GCF next to every LCM — each answer checks the other.
How Does This Calculator Work?
- It reads your numbers and checks that they are whole numbers from 1 to 1,000,000,000,000.
- It breaks each number into prime factors by trial division.
- It keeps the highest power of each prime and multiplies them to get the LCM.
- It also builds the multiples lists and the GCD steps so you can check the answer a second way, and it works out the GCF and the first common multiples to show beside the answer.
Big-number math is used for the final answer, so a result with 20 or 30 digits is still exact. Everything runs in your browser. Your numbers are never sent to a server. Your recent calculations are saved only on your device, and you can clear them any time.

Examples of LCM Calculations
Example 1: LCM of 12 and 18
12 = 2² × 3
18 = 2 × 3²
LCM = 2² × 3² = 36
Example 2: LCM of 4, 6 and 8
4 = 2²
6 = 2 × 3
8 = 2³
LCM = 2³ × 3 = 8 × 3 = 24
Example 3: LCM of 15 and 20
GCD(15, 20) = 5, so LCM = (15 × 20) ÷ 5 = 300 ÷ 5 = 60.
Example 4: LCM of 5 and 7
Both are prime, so they share nothing. LCM = 5 × 7 = 35.
Quick reference
| Numbers | LCM | Numbers | LCM |
|---|---|---|---|
| 2, 3 | 6 | 9, 12 | 36 |
| 4, 6 | 12 | 10, 15 | 30 |
| 6, 8 | 24 | 12, 15 | 60 |
| 8, 12 | 24 | 14, 21 | 42 |
Most questions only involve a pair of numbers, but the same ideas stretch: three numbers need just one extra factorization, a longer list is the pair method repeated, and fractions follow their own rule — LCM of the numerators over GCD of the denominators.
LCM word problems
Problem 1: the two buses
Two buses leave the station together at 9:00. One runs every 12 minutes and the other every 18 minutes. When do they next leave together?
Answer: LCM(12, 18) = 36, so they leave together again 36 minutes later, at 9:36.
Problem 2: hot dogs and buns
Hot dogs come in packs of 8 and buns in packs of 6. What is the smallest number of each you can buy to end up with the same count of both?
Answer: LCM(8, 6) = 24. Buy 3 packs of hot dogs and 4 packs of buns — 24 of each, nothing left over.
Problem 3: the blinking lights
One string of lights blinks every 4 seconds and another every 6 seconds. They have just blinked together. In how many seconds do they blink together again?
Answer: LCM(4, 6) = 12 seconds.
Practice questions
Try these in your head or on paper first, then open an answer to check it — or run the numbers through the calculator at the top of the page.
What is the LCM of 6 and 9?
18. Multiples of 6: 6, 12, 18. Multiples of 9: 9, 18. The first match is 18.
What is the LCM of 8, 12 and 20?
120. 8 = 2³, 12 = 2² × 3 and 20 = 2² × 5, so LCM = 2³ × 3 × 5 = 120.
What is the LCM of 7 and 13?
91. Both numbers are prime, so they share no factors — just multiply them: 7 × 13 = 91.
What is the LCM of 15, 25 and 30?
150. 15 = 3 × 5, 25 = 5² and 30 = 2 × 3 × 5, so LCM = 2 × 3 × 5² = 150.
A ferry leaves every 20 minutes and a bus every 30 minutes. Both have just left together. In how many minutes do they leave together again?
60 minutes — that is the LCM of 20 and 30.
Last updated November 2026.
LCM Calculator FAQs
What is LCM?
LCM stands for least common multiple. It is the smallest positive number that two or more numbers all divide into evenly. For example, the LCM of 4 and 6 is 12, because 12 is the first number that appears in both the 4 times table and the 6 times table.
How do you calculate LCM?
There are four common ways. You can list the multiples of each number until you find the first one they share. You can break each number into prime factors and multiply the highest power of every prime. You can use the formula LCM(a, b) = (a × b) ÷ GCD(a, b). Or you can use the division ladder: divide the whole row by primes until every number is 1, then multiply the divisors. This calculator shows the multiples, prime factorization and formula steps for your numbers.
What is the difference between LCM and GCF?
The LCM is the smallest number that all your numbers divide into. The GCF (greatest common factor, also called GCD) is the largest number that divides into all of them. For 12 and 18, the LCM is 36 and the GCF is 6. The LCM is always as big as or bigger than your numbers, and the GCF is always as small as or smaller than them.
Can this calculator find LCM of 3 numbers?
Yes. Type or paste the whole list into the one box — for example "4, 6, 8" — separated by commas or spaces. You can enter up to 20 numbers at once, and the steps are shown for every number.
Is this LCM calculator free?
Yes. It is free to use, you do not need to sign up, and there is no limit on how many times you can use it.
What is the LCM of two prime numbers?
It is just the two numbers multiplied together. Primes share no factors other than 1, so the LCM of 5 and 7 is 35.
How big can the numbers be?
You can enter whole numbers from 1 up to 1,000,000,000,000. The calculator uses big-number math, so the answer stays exact even when it has many digits.