How to use
Enter two positive whole numbers. The calculator finds their greatest common divisor using the Euclidean algorithm, then uses that value to calculate the least common multiple. For example, 18 and 24 have a GCD of 6, so their LCM is (18 × 24) ÷ 6 = 72. The inputs must be integers because the displayed formula and the usual classroom definition apply to whole-number multiples.
What the result means
The LCM is the smallest positive integer that is divisible by both inputs. It is useful when finding a common denominator for fractions or determining when repeating schedules align. If either input is zero or negative, this calculator asks you to correct it rather than returning a misleading positive multiple. Very large products are checked against JavaScript's safe-integer range so the result is not silently rounded.
Further reading: OpenStax — Prime Factorization and the Least Common Multiple · OpenStax — Find Multiples and Factors · Wolfram MathWorld — Least Common Multiple.
Related calculators