Algebra
LCM Calculator: Find The Least Common Multiple With Steps
Last updated: October 2026
An LCM calculator finds the least common multiple: the smallest positive number that every number in your list divides into evenly. The LCM of 4 and 6 is 12, and the LCM of 24 and 36 is 72. You can find it by listing multiples, using prime factors, using the ladder method, or dividing by the GCF.
- Free, no sign-up
- Shows the working
- Runs on your device
The least common multiple comes up whenever you add fractions, line up repeating schedules or split items into equal packs. This guide covers four methods, the link between the LCM and the GCF, and the edge cases that trip students up. Every example was checked with Python's math library.
Note: Calc Solver (calc-solver.co) is an independent guide site and is not affiliated with any calculator mentioned here.
What The Least Common Multiple Means
A multiple of a number is that number times 1, 2, 3 and so on. A common multiple is a number that shows up in the multiple lists of two or more numbers. The least common multiple is the smallest one.
For 4 and 6:
- Multiples of 4: 4, 8, 12, 16, 20, 24
- Multiples of 6: 6, 12, 18, 24, 30
The common multiples are 12, 24, 36 and so on. The smallest is 12, so LCM(4, 6) = 12.
The LCM is also called the lowest common multiple. When the numbers are denominators of fractions, the same value is called the least common denominator (LCD).
How To Use The LCM And GCF Calculator
The calculator above finds both values at once, because they are closely linked.
- Pick a tab. Use LCM or GCF for whole numbers, or LCD of Fractions to add or compare fractions.
- Type your numbers. Separate them with commas or spaces, like 12, 18, 30. You can enter up to 15 numbers.
- Choose a method. Pick the one your teacher uses so the steps match your homework.
Four Ways To Find The LCM By Hand
Each method gives the same answer. Listing is easiest for small numbers, prime factorization and the ladder work for any size, and the GCF formula is fastest for two numbers.
Method 1: List The Multiples
Write out multiples of each number until one appears in every list. For 10 and 8:
- Multiples of 10: 10, 20, 30, 40
- Multiples of 8: 8, 16, 24, 32, 40
LCM(10, 8) = 40. A time saver: list multiples of the largest number only, and check each one against the smaller numbers. 10, 20 and 30 fail for 8, but 40 works.
Method 2: Use Prime Factorization
Break each number into primes. Then take every prime that appears, at its highest power, and multiply.
For 24 and 36:
| Number | Prime factorization | Power of 2 | Power of 3 |
|---|---|---|---|
| 24 | 2³ × 3 | 2³ | 3¹ |
| 36 | 2² × 3² | 2² | 3² |
| Highest power | 2³ | 3² |
LCM = 2³ × 3² = 8 × 9 = 72.
If you need help breaking numbers into primes, the prime factorization tab in our factor calculator shows a factor tree for each number.
Method 3: The Ladder (Cake) Method
Write the numbers in a row. Divide by any prime that goes into at least two of them, and carry down any number it does not divide. Stop when no prime divides two numbers. Then multiply everything on the left and along the bottom.
For 12, 18 and 30:
| Divide by | 12 | 18 | 30 |
|---|---|---|---|
| 2 | 6 | 9 | 15 |
| 3 | 2 | 3 | 5 |
| (stop) | 2 | 3 | 5 |
No prime divides two of 2, 3 and 5, so stop. LCM = 2 × 3 × 2 × 3 × 5 = 180.
The ladder gives the GCF for free: multiply only the left side, 2 × 3 = 6.
Method 4: Divide By The GCF
For two numbers, multiply them and divide by their greatest common factor:
LCM(a, b) = (a × b) ÷ GCF(a, b)
For 24 and 36: the GCF is 12, so LCM = (24 × 36) ÷ 12 = 864 ÷ 12 = 72.
This is the fastest method for large numbers, because the GCF is quick to find with the Euclidean algorithm. Divide the larger number by the smaller and keep the remainder: 36 ÷ 24 leaves 12, then 24 ÷ 12 leaves 0. The last nonzero remainder, 12, is the GCF.
How To Find The LCM Of Three Or More Numbers
To find the LCM of three or more numbers, use prime factors or the ladder, or work in pairs. The pair method finds the LCM of the first two numbers, then the LCM of that result with the next number.
For 12, 16 and 21:
- LCM(12, 16) = 48
- LCM(48, 21) = 336
So LCM(12, 16, 21) = 336.
A classic example is the LCM of every number from 1 to 10. Using the highest prime powers, 2³ × 3² × 5 × 7 = 2,520. That means 2,520 is the smallest number that 1, 2, 3, 4, 5, 6, 7, 8, 9 and 10 all divide into evenly.
One warning: the GCF formula from Method 4 does not work for three numbers. For 2, 4 and 6, the product is 48 and the GCF is 2, which gives 24. The real LCM is 12. Stick to pairs or prime factors.
LCM Vs GCF: What Is The Difference?
The LCM is the smallest number your numbers divide into. The GCF is the largest number that divides into all of them. The LCM is always at least as big as the largest number, and the GCF is never bigger than the smallest.
| LCM | GCF | |
|---|---|---|
| Full name | Least common multiple | Greatest common factor |
| Answer size | At least as big as the largest number | At most as big as the smallest number |
| Prime factor rule | Every prime, highest power | Shared primes only, lowest power |
| Example: 24 and 36 | 72 | 12 |
| Main use | Adding fractions, matching schedules | Simplifying fractions, splitting into equal groups |
| Word problem clue | "Next time together", "at the same time", "least number" | "Largest group", "greatest size", "split evenly" |
For two numbers, LCM × GCF always equals the product of the numbers. For 24 and 36: 72 × 12 = 864, and 24 × 36 = 864.
Using The LCM To Add And Subtract Fractions
When fractions have different denominators, the LCM of the denominators is the least common denominator. Using it keeps the numbers small and saves a simplifying step at the end.
Add 5/12 + 7/18:
- LCM(12, 18) = 36, so the LCD is 36.
- 5/12 = 15/36, because 36 ÷ 12 = 3 and 5 × 3 = 15.
- 7/18 = 14/36, because 36 ÷ 18 = 2 and 7 × 2 = 14.
- 15/36 + 14/36 = 29/36.
Multiplying the denominators (216) also works, but then you must reduce 174/216 to 29/36. For mixed numbers and longer problems, the fraction calculator shows each step.
LCM Word Problems You Will See
LCM word problems ask when two repeating things line up, or the smallest amount that splits evenly into different group sizes. Here are the two most common types.
Packs that do not match. Hot dogs come in packs of 10 and buns come in packs of 8. What is the fewest of each you can buy so none are left over? LCM(10, 8) = 40. Buy 40 of each: 4 packs of hot dogs and 5 packs of buns.
Schedules that repeat. One bus leaves every 12 minutes and another every 15 minutes. Both leave at 8:00 a.m. When do they leave together again? LCM(12, 15) = 60, so at 9:00 a.m.
If a problem asks for the largest equal group instead, you need the GCF.
Special Cases: Coprime, Zero, Negatives And Decimals
A few kinds of numbers follow simple rules, and knowing them saves time.
| Case | Rule | Example |
|---|---|---|
| Coprime numbers (GCF = 1) | LCM is the product | LCM(8, 15) = 120 |
| One number divides the other | LCM is the larger number | LCM(6, 18) = 18 |
| Any number is 0 | LCM is 0 by convention | LCM(0, 5) = 0 |
| Negative numbers | Use absolute values | LCM(−4, 6) = 12 |
Decimals: multiply every number by the same power of 10 to make them whole, find the LCM, then divide back. For 0.4 and 0.6, multiply by 10 to get 4 and 6. LCM(4, 6) = 12, and 12 ÷ 10 = 1.2. Check: 1.2 ÷ 0.4 = 3 and 1.2 ÷ 0.6 = 2.
How To Find The LCM On A TI-84 Or Casio Calculator
Some calculators have an LCM function built in, while others do not.
TI-84 Plus CE: press MATH, move right to NUM, and choose 8: lcm(. Type two numbers separated by a comma, close the parenthesis and press ENTER. The same menu has 9: gcd( for the GCF, as shown in Texas Instruments' MATH menu guide. It takes two numbers at a time, so nest it for three: lcm(lcm(12,16),21).
Casio fx-991CW ClassWiz: choose LCM from the Numeric Calc menu, type the numbers separated by a comma and press equals. Casio's fx-991CW manual walks through the same keys. The older fx-991EX has no LCM function, so use the ladder or the GCF formula there.
Common LCM Mistakes
Most LCM errors come from mixing it up with the GCF or using the wrong prime powers.
| Mistake | Example | Fix |
|---|---|---|
| Giving the GCF instead | LCM(24, 36) = 12 | The LCM can never be smaller than 36. It is 72 |
| Just multiplying the numbers | LCM(4, 6) = 24 | That is a common multiple, not the least. LCM = 12 |
| Using the lowest prime powers | 2² × 3 = 12 for 24 and 36 | LCM uses the highest powers: 2³ × 3² = 72 |
| Leaving out a prime | LCM(12, 21) = 2² × 3 = 12 | Include 7 from 21: 2² × 3 × 7 = 84 |
| Using the GCF formula on 3 numbers | LCM(2, 4, 6) = 48 ÷ 2 = 24 | Work in pairs: LCM = 12 |
| Stopping the ladder too early | Leaving 4 and 6 in the bottom row | 2 still divides both. Keep dividing |
Summary
- The LCM is the smallest number that every number in a list divides into evenly.
- List multiples for small numbers. Use prime factors (highest powers) or the ladder for bigger ones.
- For two numbers, LCM = (a × b) ÷ GCF. For three or more, work in pairs.
- The LCM of denominators is the least common denominator for fractions.
- Coprime numbers have an LCM equal to their product.
Next step: enter your numbers in the LCM and GCF calculator at the top of this page. For more number tools, see the math solver or the Calc Solver homepage.
Frequently Asked Questions
What is the LCM of 24 and 36?
The LCM of 24 and 36 is 72. In primes, 24 = 2³ × 3 and 36 = 2² × 3². Taking the highest power of each prime gives 2³ × 3² = 72. You can check it with division: 72 ÷ 24 = 3 and 72 ÷ 36 = 2, both whole numbers. The GCF of the same pair is 12, and 72 × 12 = 864 = 24 × 36.
Can the LCM be smaller than the numbers?
No. The LCM is always equal to or larger than the biggest number in the list, because it has to be a multiple of that number. It equals the biggest number only when every other number divides into it, like LCM(3, 6, 12) = 12. If an answer comes out smaller than your largest number, you probably found the GCF.
Is the LCM the same as the LCD?
They are the same number used in different places. LCM is the general term for any set of whole numbers. LCD, the least common denominator, is the LCM of the denominators of fractions. For 1/4 and 1/6, the LCD is 12 because LCM(4, 6) = 12. You use the LCD to add, subtract or compare fractions.
Why is the LCM useful in real life?
The LCM helps whenever repeating cycles need to line up. It tells you when two buses, alarms or shifts will match again, how many items to buy when packs come in different sizes, and when gears or wheels return to their starting position. Musicians use it too, to find when two rhythms with different beat counts line up again.
Is there an LCM of fractions?
Yes, though it is less common in school. The LCM of fractions is the LCM of the numerators divided by the GCF of the denominators. For 2/3 and 4/9, that is LCM(2, 4) ÷ GCF(3, 9) = 4 ÷ 3 = 4/3. Check: 4/3 ÷ 2/3 = 2 and 4/3 ÷ 4/9 = 3, both whole numbers.
Try it with your own numbers
Use a free CalcSolver tool to check the examples in this guide.