LCM Calculator

Free, with no sign up. Calculations run on your device; your entries stay in this browser.

Enter 2–20 integers separated by commas, spaces or newlines. Each integer must be between −1,000,000,000,000 and 1,000,000,000,000 (±10¹²); at most 14 characters each. These are unitless numbers. The result and every factorization use exact BigInt arithmetic, even when the LCM exceeds the safe JavaScript Number range. Negative inputs use absolute values for GCF and LCM. Zero has no prime factorization; one has no prime factors.

Your result

Enter values and select Calculate.

lcm(a, b) = |(a / gcd(a, b)) × b|, repeated over the list. LCM takes the maximum prime exponents.

Primary source: OpenStax Prealgebra 2e, prime factorization and least common multiple.

Worked example

For 12, 18 and 24: use 2³ and 3², so the LCM is 8 × 9 = 72. Each input divides 72 exactly.

How to use this tool

Enter your measured values and select Calculate to see the result, formula and details below.

Frequently asked questions

What is the difference between GCF and LCM?

GCF is the largest nonnegative common divisor. LCM is the smallest positive common multiple of nonzero inputs.

How are zero and negative integers handled?

Signs are ignored for GCF and LCM. A zero input gives LCM zero by convention; GCF(0, n) is |n| and GCF(0, 0) is zero by convention.

Are the result and factors exact?

Yes. Decimal strings are parsed as BigInt, never floating-point Number. Every accepted integer is fully factored within the ±10¹² bound.