LCM Calculator
Find when whole-number cycles align or which common denominator to use for fractions. Enter signed integers separated by spaces or commas; the result uses exact integer arithmetic.
Separate numbers with commas or spaces. You can calculate more than two numbers at once.
The calculator repeatedly applies LCM(a,b) = |a × b| ÷ GCF(a,b) until every entered integer has been included.
Least common multiple
- For nonzero integers, LCM is the smallest positive common multiple. Signs are ignored; any zero input gives zero.
- Shortcut for two numbers: For nonzero inputs, LCM(a, b) = |a × b| ÷ GCF(a, b). LCM(4, 6) = 24 ÷ 2 = 12.
- Use it to find a common denominator: 1/4 + 1/6 → twelfths.
- Prime factors: take each prime at its highest power.
How to use the LCM Calculator
- Enter signed integers in decimal digits separated by spaces or commas. Correct every invalid entry; none are silently discarded.
- Negative entries use their magnitudes. If any entry is zero, the result is zero by convention.
- For nonzero pairs, LCM(a,b) = |a×b|/GCF(a,b). The exact-integer calculation divides before multiplying, then combines the result with each remaining entry.
Cycle assumptions and zero convention
Signs are ignored. If any input is zero, this calculator returns zero by convention; for nonzero inputs the result is the smallest positive common multiple. Decimals and malformed entries are rejected.
Examples
LCM of 12 and 18
GCF(12,18) = 6, so LCM = (12 × 18) / 6 = 36.
LCM of 4, 6 and 10
The calculator first combines 4 and 6 to get 12, then combines 12 and 10 to get 60.
Check the result in context
Zero and signs: LCM(−12,18) = 36, since 36/12 = 3 and 36/18 = 2. LCM(0,18) is reported as 0.
LCM of all numbers from 1 to n
| Numbers | LCM |
|---|---|
| 1 to 1 | 1 |
| 1 to 2 | 2 |
| 1 to 3 | 6 |
| 1 to 4 | 12 |
| 1 to 5 | 60 |
| 1 to 6 | 60 |
| 1 to 7 | 420 |
| 1 to 8 | 840 |
| 1 to 9 | 2,520 |
| 1 to 10 | 2,520 |
| 1 to 11 | 27,720 |
| 1 to 12 | 27,720 |
Frequently asked questions
What does LCM mean?
LCM means least common multiple, the smallest positive common multiple for nonzero inputs; this tool returns zero when any input is zero.
Can I calculate more than two numbers?
Yes. The calculator accepts multiple signed integers separated by commas or spaces.
How is LCM related to GCF?
For nonzero inputs, LCM(a,b) = |a × b| ÷ GCF(a,b).
Can I use negative numbers or zero?
Yes. Negative values use their absolute magnitudes. LCM is zero when any input is zero; GCF(0,n) = |n| and GCF(0,0) is reported as zero by convention.
Is LCM useful for fractions?
Yes. The LCM of denominators can be used as a least common denominator.
What is the LCM of 4 and 6?
12.
What is the smallest number divisible by 1 through 10?
2,520.
Do two cycles always meet after their LCM?
Only if they start together and retain fixed integer periods in the same units. Cycles every 4 and 6 days coincide after 12 days under those assumptions.
More math tools
GCF Calculator
Find the greatest common factor of two or more positive integers.
Open tool →Fraction Calculator
Calculate and simplify fractions and mixed numbers with steps.
Open tool →Factor Calculator
Find factors, factor pairs and prime factorization for a whole number.
Open tool →Prime Number Checker
Check whether a whole number is prime or composite and list its positive factors.
Open tool →Slope Calculator
Calculate slope from two points plus line equation, angle, grade and point distance.
Open tool →Percentage Change Calculator
Calculate percentage increase or decrease from an original value to a new value.
Open tool →