LCM calculator for multiple integers with prime-factor audit
The least common multiple is the smallest number every input divides into. For two numbers, divide their product by their GCF: LCM(12, 18) = 12 × 18 ÷ 6 = 36. With 12, 18 and 30, keep each prime at its highest power (2², 3², 5) to get 180. Paste up to 20 whole numbers to see the answer and every step.
Inputs used by this calculator
Least Common Multiple Calculator uses the fields below. The starting values reproduce the page example; replace them with values from the same units and time period before using the result.
| Input | Starting example | Accepted value | How it is used |
|---|---|---|---|
| Whole numbers separated by commas, spaces or lines | 12, 18, 30 | Text or a list in the format shown | Supplies the whole numbers separated by commas, spaces or lines quantity used by the published equation or result breakdown. |
- Prime factors
- Largest exponents
- Least common multiple
What least common multiple means
The LCM is the smallest nonnegative integer divisible by every entered integer. It synchronizes repeating cycles and finds common denominators.
Prime-factor method
Factor each number and retain every prime at the largest exponent appearing in any input.
LCM(12,18)=2²×3²=36GCD relationship
For two nonzero integers, multiplying and dividing by their GCD avoids listing multiples.
LCM(a,b)=|a÷GCD(a,b)×b|Worked three-number example
12=2²×3, 18=2×3² and 30=2×3×5. Keeping 2², 3² and 5 gives 180.
Zero and negative inputs
Signs do not change divisibility. By the convention used here, any set containing zero has LCM zero.
Practical uses and limits
LCM can align schedules, periodic signals and fraction denominators. Extremely large cycles may be mathematically correct but impractical in a real system.
LCM and GCF of common pairs
| Numbers | GCF | LCM | Reduced ratio |
|---|---|---|---|
| 8 and 12 | 4 | 24 | 2 : 3 |
| 12 and 18 | 6 | 36 | 2 : 3 |
| 15 and 25 | 5 | 75 | 3 : 5 |
| 16 and 24 | 8 | 48 | 2 : 3 |
| 18 and 24 | 6 | 72 | 3 : 4 |
| 20 and 30 | 10 | 60 | 2 : 3 |
| 24 and 36 | 12 | 72 | 2 : 3 |
| 36 and 48 | 12 | 144 | 3 : 4 |
| 42 and 56 | 14 | 168 | 3 : 4 |
| 48 and 72 | 24 | 144 | 2 : 3 |
| 60 and 90 | 30 | 180 | 2 : 3 |
| 84 and 126 | 42 | 252 | 2 : 3 |
LCM by prime exponents
| Input | Prime factorization | Contribution |
|---|---|---|
| 12 | 2²×3 | 2² and 3 |
| 18 | 2×3² | 3² |
| 30 | 2×3×5 | 5 |
| LCM | 2²×3²×5 | 180 |
Frequently asked questions
What is the LCM of 12 and 18?
It is 36.
What is the LCM of 8 and 12?
It is 24: 8 × 12 = 96, divided by their GCF of 4.
How do I find the LCM to add fractions?
Use the LCM of the denominators as the common denominator. For 1/8 + 1/12, the LCM is 24, so the sum is 3/24 + 2/24 = 5/24.
Can I enter more than two numbers?
Yes, up to 20.
Does order change the LCM?
No.
What happens if one number is zero?
This calculator returns zero.
Are negative numbers allowed?
Yes. Their absolute values are used.
How is LCM different from GCF?
LCM is a shared multiple; GCF is a shared divisor.
What to keep in mind
Signs are ignored. If any entered number is zero, the LCM is zero. Each absolute value must be at most one trillion and at most 20 values are accepted.
Results are rounded for display in US format, with money in dollars and cents; CSV exports keep full calculation precision. This is a calculation summary, not an official certificate.