Math & statistics
Least common multiple calculator
Find the least common multiple of two integers.
Reviewed December 1, 2026Your results
Enter your numbers and select Calculate.
The formula
lcm(a,b) = |a ÷ gcd(a,b) × b| when both inputs are nonzero.
Worked example
The least common multiple of 12 and 18 is 36.
What to keep in mind
If either input is zero, the result is zero by convention. Large results are shown as exact digits.