LCM Calculator
Free LCM calculator with prime-factorization steps. Get the least common multiple plus the GCF — exact BigInt math for fractions, LCD and scheduling.
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 integers — separated by commas, spaces, or newlines — and returns both their least common multiple (LCM) and their greatest common factor (GCF) in a single pass, 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 arbitrary-precision BigInt arithmetic underneath handles numbers far beyond what fits in a 64-bit integer, so large or numerous inputs stay exact with no silent overflow.
Frequently Asked Questions
Frequently Asked Questions

