LCM Calculator with Exact Steps

Find the exact least common multiple and greatest common divisor of 2–12 positive integers with pairwise steps.

Enter your values

Calculations run on your device; inputs are not sent to our server.

What this calculator accepts

Enter 2–12 positive whole numbers. Separate them with commas, spaces, semicolons or new lines. Zero, negative numbers, decimals, fractions and unit text are rejected because this tool uses the positive-integer definition. Each input may contain up to 15 digits.

Exact method and displayed steps

For two values, LCM(a,b) = |a×b| ÷ GCD(a,b). The implementation divides before multiplying to reduce intermediate size, then folds the exact result through the remaining inputs. It uses integer arithmetic rather than listing multiples or rounding decimals.

Independent check example

24=2³×3, 80=2⁴×5 and 121=11². Taking each prime’s highest power gives 2⁴×3×5×11² = 29,040. Pairwise: LCM(24,80)=240, then LCM(240,121)=29,040. The greatest common divisor of all three is 1.

How to use the result and limits

LCM is useful for common fraction denominators and exact repeating intervals. A shared event every 12 and 18 units aligns every 36 units, but real schedules may also need starting offsets, dates, time zones or excluded days. Results above 10⁶⁰ are refused to keep saved records and the interface bounded.

Sources and calculation scope

Definition: NIST least common multiple glossary. Relationship reference: University of Utah Math 1010.

Unexpected result? Tell us the inputs and what you expected.