The least common multiple calculator finds the smallest number that two or more numbers divide into evenly, in seconds. Just enter your numbers, hit Calculate, and you get the LCM along with the steps, free and with no signup.
Here is a quick example so you can see what the tool does. The multiples of 4 are 4, 8, 12, 16, and 20. The multiples of 6 are 6, 12, 18, and 24. The first number in both lists is 12, so the LCM of 4 and 6 is 12. This calculator does the same work for any numbers you give it, even big ones.
What Is the Least Common Multiple?
The least common multiple, or LCM, is the smallest positive number that is a multiple of two or more numbers. In plain words, it is the smallest number that all of your numbers divide into with no remainder. It is also called the lowest common multiple.
Why does the LCM matter? It shows up every time things repeat on different cycles and you want to know when they line up again. Two buses that leave every 12 and 18 minutes meet at the same stop every 36 minutes, because the LCM of 12 and 18 is 36.
The LCM is also the key to adding and subtracting fractions. When you add 1/4 and 1/6, you need a common denominator, and the best one is the LCM of 4 and 6, which is 12. That turns the problem into 3/12 + 2/12, which is 5/12. Teachers call this the least common denominator (LCD), and it is exactly the same idea as the LCM.
How Do You Use This Least Common Multiple Calculator?
Using this LCM calculator is quick and easy. Follow the steps below and you will have your answer in a few seconds.
- Enter your numbers. Type two or more whole numbers in the input box, separated by commas. For example, enter 12, 18 to find the LCM of 12 and 18.
- Check your input. Make sure the numbers are whole numbers and that you have not typed a comma inside a number. For example, enter 2500 and not 2,500.
- Hit the Calculate button. The least common multiple calculator will work out the answer right away.
- Read your result. You will see the LCM, and you can follow the steps to see how the answer was found. You can change the numbers and calculate again as many times as you like.
You can find the LCM of two numbers, three numbers, or a whole list of numbers. The calculator handles big numbers too, so you do not have to worry about long lists of multiples by hand.
How Do You Find the LCM?
There are four main ways to find the least common multiple. They all give the same answer, so you can pick the one that feels easiest for your numbers. Small numbers work well with listing multiples. Bigger numbers are easier with prime factorization or the GCF formula.
Method 1: Listing Multiples
Listing multiples is the simplest method, and it is the one most students learn first. You write out the multiples of each number until you find a number that appears in every list. The first match is the LCM.
Let us find the LCM of 6 and 8. The multiples of 6 are 6, 12, 18, 24, 30, and 36. The multiples of 8 are 8, 16, 24, 32, and 40. The first number in both lists is 24, so LCM(6, 8) = 24.
This method is easy to understand, but it gets slow with big numbers. If you need the LCM of 24 and 300, you would have to list a lot of multiples before you reach the answer, which is 600.
Method 2: Prime Factorization
Prime factorization is the most reliable method, and it works well for any size of number. You break each number into its prime factors, then take each prime at the highest power it appears in any number, and multiply them together.
Let us find the LCM of 12 and 18. The prime factorization of 12 is 2 × 2 × 3, or 2² × 3. The prime factorization of 18 is 2 × 3 × 3, or 2 × 3². Now take the highest power of each prime: 2² = 4 and 3² = 9. Multiply them: 4 × 9 = 36. So LCM(12, 18) = 36.
The same method works for three or more numbers. For 12, 18, and 30, the factorizations are 12 = 2² × 3, 18 = 2 × 3², and 30 = 2 × 3 × 5. Take the highest powers (2², 3², and 5) and multiply: 4 × 9 × 5 = 180.
Method 3: The GCF Formula
If you already know the greatest common factor (GCF) of two numbers, there is a shortcut. The LCM and the GCF are linked by a simple formula:
LCM(a, b) = (a × b) ÷ GCF(a, b)
In words, multiply the two numbers together, then divide by their GCF. Let us find the LCM of 6 and 10. The GCF of 6 and 10 is 2, because 2 is the largest number that divides both. Now use the formula: (6 × 10) ÷ 2 = 60 ÷ 2 = 30. So LCM(6, 10) = 30.
This formula also gives you a handy check. For any two numbers, LCM × GCF = a × b. With 6 and 10, that is 30 × 2 = 60, and 6 × 10 = 60. If the two numbers have no common factor except 1, the GCF is 1 and the LCM is just their product. For example, LCM(7, 8) = 56.
For three or more numbers, work in pairs. To find LCM(12, 18, 30), first find LCM(12, 18) = 36, then LCM(36, 30) = 180.
Method 4: The Division (Cake/Ladder) Method
The division method, also called the cake method or ladder method, is the fastest way to find the LCM of several numbers at once. You write the numbers in a row and divide them step by step by prime numbers, then multiply all the divisors and the numbers left over.
Let us find the LCM of 24 and 36. Write them in a row and divide both by 2 to get 12 and 18. Divide by 2 again to get 6 and 9. Now divide by 3 to get 2 and 3. At this point 2 and 3 share no common prime factor, so you stop. Multiply the divisors (2 × 2 × 3) by the numbers left at the bottom (2 × 3): 2 × 2 × 3 × 2 × 3 = 72. So LCM(24, 36) = 72.
This method gets its name from the shape of the work. The divisions stack up like the layers of a cake, or the rungs of a ladder. The same diagram gives you the GCF too: multiply only the divisors on the left side (2 × 2 × 3 = 12), and that is the GCF of 24 and 36.
What Is the LCM of Common Number Pairs?
Some number pairs come up so often that it helps to know their LCM by heart. The table below lists the least common multiple for pairs you will meet again and again in school, in fraction problems, and in everyday scheduling.
| Numbers | LCM | How to Check It |
|---|---|---|
| 2 and 3 | 6 | 6 ÷ 2 = 3, 6 ÷ 3 = 2 |
| 3 and 4 | 12 | 12 ÷ 3 = 4, 12 ÷ 4 = 3 |
| 4 and 6 | 12 | 12 ÷ 4 = 3, 12 ÷ 6 = 2 |
| 5 and 6 | 30 | 30 ÷ 5 = 6, 30 ÷ 6 = 5 |
| 6 and 8 | 24 | 24 ÷ 6 = 4, 24 ÷ 8 = 3 |
| 6 and 9 | 18 | 18 ÷ 6 = 3, 18 ÷ 9 = 2 |
| 6 and 10 | 30 | 30 ÷ 6 = 5, 30 ÷ 10 = 3 |
| 9 and 12 | 36 | 36 ÷ 9 = 4, 36 ÷ 12 = 3 |
| 10 and 12 | 60 | 60 ÷ 10 = 6, 60 ÷ 12 = 5 |
| 12 and 15 | 60 | 60 ÷ 12 = 5, 60 ÷ 15 = 4 |
| 12 and 18 | 36 | 36 ÷ 12 = 3, 36 ÷ 18 = 2 |
Notice a pattern in the table: when two numbers share no common factor, the LCM is just their product, like 5 × 6 = 30. And when one number already divides the other, the LCM is the larger number — for example, the LCM of 5 and 10 is 10. Every answer in the table divides evenly by both numbers, which is how you can check your own work.
What Is the Difference Between LCM and GCF?
LCM and GCF are easy to mix up because they are taught together and they both use factors and multiples. The simplest way to tell them apart is by direction. The GCF goes down: it is the largest number that divides into your numbers. The LCM goes up: it is the smallest number that your numbers divide into.
| LCM (Least Common Multiple) | GCF (Greatest Common Factor) | |
|---|---|---|
| Meaning | Smallest number all your numbers divide into | Largest number that divides all your numbers |
| Size | Always as big as, or bigger than, your largest number | Always as small as, or smaller than, your smallest number |
| Example (12 and 18) | 36 | 6 |
| Prime factor rule | Take every prime at its highest power | Take only shared primes at their lowest power |
| Main use | Adding fractions, lining up repeating events | Simplifying fractions, splitting things into equal groups |
| Formula link | LCM(a, b) × GCF(a, b) = a × b | |
Here is a quick way to remember which one you need. If you are combining things or waiting for things to line up, you need the LCM. If you are splitting things into the biggest equal groups, you need the GCF.
Where Do You Use LCM in Real Life?
The LCM is not just a school topic. It answers a very practical question: when do repeating things happen at the same time? Here are the places it shows up most often.
Scheduling and Timetables
Any time two schedules repeat, the LCM tells you when they match up. If one bus comes every 12 minutes and another comes every 18 minutes, and they both just left, they will leave together again in 36 minutes. If you water one plant every 4 days and another every 6 days, both need water on the same day every 12 days.
Adding and Subtracting Fractions
This is the most common use of the LCM in school. To add fractions with different denominators, you need a common denominator, and the LCM gives you the smallest one, which keeps the numbers small. For 1/4 + 1/6, the LCM of 4 and 6 is 12, so the sum is 3/12 + 2/12 = 5/12.
Gears, Wheels, and Machines
Engineers use the LCM to work out when rotating parts return to their starting position. Imagine two gears meshing together, one with 12 teeth and one with 18 teeth. After 36 teeth have passed the contact point, both gears are back exactly where they started: the 12-tooth gear has made 3 full turns, and the 18-tooth gear has made 2.
Planets, Orbits, and Repeating Events
Astronomers use the same idea to predict when planets line up. If one planet takes 8 years to orbit the sun and another takes 12 years, the two return to the same relative positions every 24 years, because the LCM of 8 and 12 is 24. The same trick works closer to home: if two sales repeat every 10 and 15 days, they fall on the same day every 30 days.
Who Can Use This LCM Calculator?
This least common multiple calculator is free for everyone, and it is useful in more places than a math classroom.
Students
Students use this LCM calculator to check homework, study for tests, and learn the steps behind each method. If you are working on fractions, the calculator gives you the least common denominator in seconds.
Teachers and Tutors
Teachers use the calculator to make worksheets, check answers quickly, and show students how different methods reach the same result.
Parents Helping with Homework
If your child brings home LCM homework and you have not done this math in years, the calculator gets you back up to speed fast. Enter the numbers, see the answer, and follow the steps so you can explain it at the kitchen table.
Engineers and Programmers
Engineers use LCM for gears, cycles, and timing problems, and programmers use it when they work with repeating patterns and scheduling. The GCF formula method is the one computers use most, because it is fast even for very large numbers.
What Mistakes Should You Avoid When Finding the LCM?
Most LCM mistakes come from rushing, not from hard math. Watch out for these common errors.
- Mixing up LCM and GCF. The LCM is a multiple, so it is bigger than your numbers. The GCF is a factor, so it is smaller. If your “LCM” is smaller than the numbers you started with, you found the GCF by mistake.
- Stopping at the first common multiple that is not the smallest. For 4 and 6, both 12 and 24 are common multiples, but only 12 is the least. Always check that no smaller number works.
- Using the product every time. Multiplying the numbers gives the LCM only when they share no common factor. The LCM of 6 and 10 is 30, not 60.
- Taking the lowest power in prime factorization. For the LCM, take each prime at its highest power across all the numbers. Taking the lowest power gives you the GCF instead. For 12 and 18, 2² × 3² = 36 is the LCM, while 2 × 3 = 6 is the GCF.
- Forgetting a prime factor. Every prime that appears in any number must appear in the LCM. For 12, 18, and 30, the prime 5 appears only in 30, but the LCM still needs it: 2² × 3² × 5 = 180.
A quick way to check any LCM answer is to divide it by each of your starting numbers. If every division comes out even, with no remainder, your answer is a common multiple.
Is This LCM Calculator Safe to Use?
Yes. This least common multiple calculator is free, works on any device, and needs no signup or download. The numbers you enter are used only to calculate your answer in your browser. Nothing is stored, shared, or sold, and there is no account to create.
Frequently Asked Questions (FAQs)
What is the LCM of 4 and 6?
The LCM of 4 and 6 is 12. The multiples of 4 are 4, 8, 12, and the multiples of 6 are 6, 12, so 12 is the first number in both lists.
What is the LCM of 12 and 18?
The LCM of 12 and 18 is 36. By prime factorization, 12 = 2² × 3 and 18 = 2 × 3², so the LCM is 2² × 3² = 4 × 9 = 36.
How do you find the LCM of three numbers?
Use prime factorization with all three numbers, or work in pairs with the GCF formula. For example, LCM(12, 18, 30) = 180: first find LCM(12, 18) = 36, then find LCM(36, 30) = 180.
What is the formula for LCM?
For two numbers, the formula is LCM(a, b) = (a × b) ÷ GCF(a, b). Multiply the two numbers and divide by their greatest common factor. For example, LCM(6, 10) = (6 × 10) ÷ 2 = 30.
What is the LCM of 6, 7, and 21?
The LCM of 6, 7, and 21 is 42. The multiples of 6 include 42, the multiples of 7 include 42, and 21 × 2 = 42.
What is the difference between LCM and LCD?
There is no real difference. The LCD, or least common denominator, is just the LCM of the denominators of two or more fractions. When you add 1/4 and 1/6, the LCD is the LCM of 4 and 6, which is 12.
Can the LCM be smaller than the numbers?
No. The LCM is always equal to or greater than the largest number in your set. If your answer is smaller than one of your starting numbers, you have found the GCF or made an arithmetic mistake.
Is the LCM of two prime numbers just their product?
Yes. Two different prime numbers share no common factor except 1, so their GCF is 1 and their LCM is their product. For example, the LCM of 7 and 11 is 77, and the LCM of 5 and 13 is 65.
Try the least common multiple calculator above to find the LCM of any numbers, and check your answer with the steps shown.