CalcCafe

LCM Calculator

Compute the least common multiple of any list of whole numbers instantly.

Least Common Multiple
0
Numbers used
-
GCD
-
Values
-

Uses absolute values; non-integers are rounded and zero/duplicate handling is built in. If any value is 0, the LCM is 0.

Example

For the numbers 4, 6, 8:

LCM(4, 6) = 4 * 6 / GCD(4,6) = 24 / 2 = 12
LCM(12, 8) = 12 * 8 / GCD(12,8) = 96 / 4 = 24

Result: LCM(4, 6, 8) = 24

How it works

Enter integers separated by commas, spaces, or new lines. The tool reduces them pairwise using LCM(a,b)=a*b/GCD(a,b) to find the overall LCM and GCD.

Good to know

This LCM Calculator finds the least common multiple of any list of whole numbers you paste in, separated by commas, spaces, or new lines. The least common multiple is the smallest positive number that every value in your list divides into evenly, so it is the natural answer whenever you need a shared "step size" that all of your numbers fit into cleanly. It is handy for students learning number theory, anyone adding or comparing fractions, and people scheduling repeating events.

Reach for it when you need to add or subtract fractions with unlike denominators (the LCM is the lowest common denominator), or when you want to know when two or more cycles line up again, for example two buses leaving every 4 and 6 minutes, or gears, blinking lights, and recurring tasks. Because it accepts a long list at once, it is faster than working out the answer pair by pair on paper.

Read the big number as your LCM, then use the side stats to sanity-check it: "Numbers used" tells you how many values were actually parsed, "GCD" shows the greatest common divisor of the same set, and "Values" echoes back the cleaned integers it used so you can confirm nothing was dropped or mistyped. A quick check is that the LCM should be a multiple of every value shown, and never smaller than the largest one.

A few practical caveats: the tool uses absolute values, so signs are ignored, and any decimals you enter are rounded to the nearest integer before calculating, which can change the result if you did not mean to use whole numbers. If any value is 0, the LCM is reported as 0, and for very large inputs the result may exceed what the browser can represent exactly and show "too large" rather than a precise figure.

Frequently asked questions

What happens if one of my numbers is 0?
The least common multiple of any set that includes 0 is defined as 0, since 0 is a multiple of every integer. The calculator returns 0 in that case.
Can I enter negative numbers?
Yes. The LCM is always taken as a positive value, so the sign of your inputs does not affect the result; for example LCM(-4, 6) gives 12.
Is my data uploaded anywhere?
No — this calculator runs entirely in your browser; nothing is uploaded.
Is it free?
Yes, completely free with no sign-up and no limits.

People also ask

What is the least common multiple?
The least common multiple (LCM) of a set of integers is the smallest positive number that each of them divides into without a remainder. For example, the LCM of 4 and 6 is 12 because 12 is the smallest number both 4 and 6 fit into evenly.
How do you find the LCM of two numbers?
A reliable method is LCM(a,b) = a * b / GCD(a,b), where GCD is the greatest common divisor. So LCM(4,6) = 4 * 6 / 2 = 12. For more than two numbers you apply this pairwise, folding each new value into the running result.
What is the difference between LCM and GCD?
The GCD (greatest common divisor) is the largest number that divides all your values evenly, while the LCM is the smallest number all your values divide into. The GCD is always less than or equal to the smallest input, and the LCM is always greater than or equal to the largest input.
How is the LCM used to add fractions?
The LCM of the denominators is the lowest common denominator. You convert each fraction so it has that denominator, then add the numerators. For example, to add 1/4 and 1/6 you use 12, giving 3/12 + 2/12 = 5/12.
What is the LCM of two numbers that share no common factors?
When two numbers are coprime (their GCD is 1), their LCM is simply their product. For example, LCM(7,9) = 63 because 7 and 9 have no common factor other than 1.
Can the LCM be smaller than one of the input numbers?
No. The LCM is always a multiple of every input, so it can never be smaller than the largest number in your list. It equals the largest input only when that number is itself a multiple of all the others.
How do you find the LCM of three or more numbers?
Compute the LCM of the first two numbers, then take the LCM of that result with the next number, and continue through the list. For 4, 6, and 8 this gives LCM(4,6)=12, then LCM(12,8)=24.

Related calculators