Skip to content
ToolPaxaAll Tools for Everyone, in One Place.All calculators

Least Common Multiple Calculator

Find the least common multiple of two or more integers with exact arithmetic, Euclidean working and the related GCF.

Formula reference

LCM(a,b) = |(a/GCF(a,b)) × b|; a,b ≠ 0

All formulas
  • LCM(a,b) = |(a/GCF(a,b)) × b|; a,b ≠ 0
  • LCM(a,0) = 0
  • LCM(a,b,c) = LCM(LCM(a,b),c)
LCM(
) = ?

Your result

Your answer and calculation steps appear here.

Inputs and calculations stay in this browser tab. Copy or export your report before closing.

Least Common Multiple Calculator — What the least common multiple means

Enter 2–100 integers separated by commas, spaces, semicolons or lines. Do not use grouping separators.

What the least common multiple means

For nonzero integers, the least common multiple is the smallest positive integer divisible by every supplied number. A multiple is a product with an integer; it is different from a factor, which divides a number. For 6 and 8, the positive multiples first meet at 24. The tool uses absolute values for signed inputs.

Work through 18 and 26

18 = 2×3² and 26 = 2×13. Taking the greatest power of each prime gives 2×3²×13 = 234. Both 234/18 = 13 and 234/26 = 9 are integers. This prime-power example explains minimality; the calculator itself uses the GCF method so large inputs do not require prime factorization.

Use the GCF to calculate efficiently

For nonzero a and b, LCM(a,b) = |(a/GCF(a,b))×b|. The Euclidean algorithm repeatedly replaces a,b with b,a mod b until the remainder is zero. For 18 and 26 the GCF is 2, giving |18/2×26| = 234. Dividing first keeps intermediate integers smaller, without rounding.

More than two numbers

Fold the same exact formula through the list. For 21,14,38, LCM(21,14) = 42, then LCM(42,38) = 798. Reordering or repeating entries does not change the answer. The working shows Euclidean divisions for the first pair and the running LCM for every following input. The related GCF is shown separately.

Signs and zero conventions

Signs do not change the nonnegative LCM. This tool extends the definition by LCM(a,0) = 0, including LCM(0,0) = 0. With a zero input, 0 is an algebraic convention; it is not a smallest positive common multiple. Do not turn a zero result into a real-world repeat interval without checking the problem’s assumptions.

Exact inputs and practical uses

Use 2–100 integers, at most 40 digits each. Decimals, fractions, scientific notation and grouped digits are rejected. Commas, spaces, semicolons and lines separate numbers, so 1,000 means two entries, not one thousand. All arithmetic uses exact integers; the result is not rounded. For repeating events, first convert periods to the same integer unit and assume a shared starting point. Copy, CSV and PDF retain the list, results and working.

Use Greatest Common Factor Calculator to study the Euclidean relationship, Factor Calculator to inspect small-number prime powers, and Fraction Calculator when working with common denominators.

OpenStax explains factors, multiples and prime numbers. ISO 80000-2:2019 provides mathematical-notation context; neither reference certifies this calculator.

Common questions

Are negative numbers allowed?

Yes. LCM and GCF use absolute values and return nonnegative results.

What happens with zeros?

LCM is zero if any input is zero. GCF(a,0) = |a|; an all-zero GCF uses the explicitly labelled convention zero.

Can I enter decimals or fractions?

No. Convert the problem to an integer form with consistent units first; use the Fraction Calculator for rational arithmetic.

Are large results rounded?

No. Every accepted integer calculation is exact. Each input may have up to 40 digits and the list may contain up to 100 entries.

Explore related tools