LCM Calculator
Free LCM calculator with step-by-step prime factorization. Find the least common multiple of two or more numbers — instant answer plus the working shown.
How to Calculate LCM?
The Least Common Multiple (LCM) is the smallest positive integer that is divisible by two or more numbers. It's useful for finding common denominators in fractions and solving various mathematical problems.
Finding LCM of Multiple Numbers:
- Find the LCM of the first two numbers
- Use that result to find the LCM with the next number
- Continue until all numbers are processed
LCM(12, 18, 24) = 72
Finding LCM using Prime Factorization:
- Find the prime factors of each number
- Take the highest power of each prime factor
- Multiply all the prime factors together
12 = 2² × 3
18 = 2 × 3²
LCM(12, 18) = 2² × 3² = 36
Finding LCM using GCF:
- Use the relationship: LCM(a, b) = (a × b) / GCF(a, b)
- This method is efficient for two numbers
LCM(a, b) = (a × b) / GCF(a, b)
LCM(12, 18) = (12 × 18) / 6 = 216 / 6 = 36
Common LCM examples
| Numbers | LCM |
|---|---|
| 4, 6 | 12 |
| 8, 12 | 24 |
| 5, 7 | 35 |
| 6, 8, 12 | 24 |
| 10, 15, 20 | 60 |
| 3, 5, 7 | 105 |
| 2, 4, 8 | 8 |
About this LCM calculator
This calculator accepts any list of two or more positive integers — separated by commas, spaces, or newlines — and returns their least common multiple along with the full working. The step-by-step box prints the prime factorization of each input and shows which highest powers are kept, so the calculator doubles as a study aid for primary, middle-school and early algebra classes. There is no upper limit imposed: the BigInt arithmetic underneath handles numbers far beyond what fits in a 64-bit integer.
Frequently Asked Questions

