Math & Statistics

LCM Calculator

Find the least common multiple of a bounded list of signed whole numbers with exact integer arithmetic.

Private, in-browser calculationUpdated

Let’s work it out

Enter your numbers. We’ll show the working.

Up to 100 signed integers, each at most 30 digits. Commas or spaces separate entries.

How to use this calculator

  1. Enter whole numbers and the remaining values.
  2. Check the selected units and the counting or calculation convention described below.
  3. Select Calculate to review the result and breakdown. Reset restores the example.

The formula

lcm(a,b) = abs((a / gcd(a,b)) × b); extend across the list

Dividing by the greatest common divisor before multiplying avoids unnecessary intermediate growth. Signs are ignored. This tool uses the computational convention that any zero entry makes the least common multiple zero.

PUTTING IT INTO PRACTICE

A worked example

The least common multiple of 12, 18, and 24 is 72: it is divisible by all three values.

How to interpret your result

For positive inputs, the result is the smallest positive shared multiple. The zero convention is reported explicitly because definitions involving positive multiples need special handling at zero.

Assumptions and limitations

At most 100 integers of at most 30 digits each.

Decimal fractions must first be converted to an appropriate integer scale. Very large exact outputs are displayed as text and may span many lines.