Zero, negative values and very large LCMs
Understand the conventions and limits behind an exact result.
By the ClearLCM team · Updated November 3, 2026
Negative signs do not make the LCM negative
The calculator uses absolute values. LCM(−6, 15) is therefore computed from 6 and 15, giving 30. The mathematical idea is the smallest positive shared multiple of the magnitudes. The displayed steps use those positive values so the relationship with divisibility stays clear.
Zero needs an explicit convention
The only multiple of zero is zero, so there is no positive common multiple when one input is zero. This tool follows the common computational convention of reporting LCM = 0 for any list containing zero, including an all-zero list. It labels that convention in the result. If a class or textbook defines LCM only for positive integers, zero is outside that definition rather than a positive-LCM answer.
Exact does not mean unlimited input
Up to 50 integers with no more than 20 digits each are accepted. The tool uses BigInt arithmetic, avoiding the ordinary floating-point rounding that can occur with large JavaScript numbers. A long exact answer remains a full integer. Decimal values, fractions and scientific notation are rejected because the calculator is defined for whole-number inputs. GCF(0, 0) is reported as 0 by the algorithmic convention used here; other nonzero inputs determine the GCF of a list containing zeros.
Put the example into practice with the free least common multiple calculator.