Least common multiple
Find the least common multiple of up to 100 whole numbers; 12, 18 and 30 give 180.
- Runs in your browser
- No upload
- Instant result
Assumptions & formula
Formula and assumptions
lcm(a,b)=abs(a/gcd(a,b) × b)
Results
Enter values and press Calculate to see the result here.
How to use this calculator
- Set inputs and units
Enter integers separated by spaces, commas or semicolons. Signs don't change the positive common multiple.
- Calculate
Check this worked example: 12,18,30 → lcm=180; 180/12=15, 180/18=10, 180/30=6
- Results
Check that the result is divisible by each non-zero input. The exact result is returned as integer text.
Questions and limits
What happens if an input is zero?
The engine defines the LCM as 0 when any input is 0. Don't use that output as a divisor.
Which input errors should I correct?
Use at most 100 integers of at most 100 input characters each. Fractions and empty list entries are not integers.
What does this calculation leave out?
Results are limited to ≤1,000 digits. No fraction LCM, no algebraic polynomials and no scheduling rules beyond integer arithmetic.