About the LCM Calculator
The lowest common multiple of two numbers is the smallest number that both divide into. For 4 and 6 it is 12 — the first number that appears in both times tables.
It answers a specific kind of question: when do two cycles line up? Two buses leave every 4 and 6 minutes; they depart together every 12. A task runs every 15 days and another every 20; they coincide every 60. Anything that repeats on a fixed interval eventually synchronises, and the LCM says when.
It is also the quantity behind the lowest common denominator, which is why it turns up in every fraction addition you have ever done.
The LCM is the mirror image of the greatest common factor, and the two are usually taught together for good reason — the rules are the same instruction with one word changed.
How to Use the LCM Calculator
Enter two or more whole numbers, separated by commas, spaces or new lines.
Press Calculate. You get the lowest common multiple, the prime factorisation of each input, and how many times each number goes into the result — often the figure you actually want.
Negatives are treated by magnitude. Zero is refused: zero has no multiples other than itself, so there is nothing for a common multiple to be.
How the LCM Is Calculated
By prime factorisation. Break every number into primes, then take each prime that appears anywhere, at its highest power.
4 = 2^2
6 = 2 x 3
10 = 2 x 5
The primes appearing are 2, 3 and 5. The highest power of 2 anywhere is 2², and 3 and 5 each appear once. So:
LCM = 2^2 x 3 x 5 = 60
Compare that with the GCF rule: shared primes at their lowest power. Same setup, opposite instruction. That symmetry is the quickest way to keep the two straight.
The logic: for a number to be a multiple of 4, it must contain 2². To be a multiple of 6, it must contain a 2 and a 3. Meeting every requirement at once means taking the largest demand for each prime — and taking no more than that keeps the result as small as possible.
Via the greatest common factor. For two numbers there is a shortcut:
lcm(a, b) = a x b / gcd(a, b)
For 12 and 18: their GCF is 6, so the LCM is 216 ÷ 6 = 36. Since the GCF comes almost instantly from the Euclidean algorithm, this route needs no factorisation at all.
Why it works: multiplying the numbers counts every shared prime twice. Dividing by the GCF removes exactly one copy of each duplicate, leaving each prime at its highest power — which is the LCM.
Three or more numbers. The shortcut does not generalise; a × b × c ÷ gcd is not the LCM of three numbers. Fold pairwise instead: take the LCM of the first two, then combine that with the third, and so on.
LCM Formula
By factorisation:
LCM = product over all primes of p^max(power in each number)
For two numbers:
lcm(a, b) = a x b / gcd(a, b)
For a longer list:
lcm(a, b, c) = lcm( lcm(a, b), c )
Relationship (two numbers only):
gcd(a, b) x lcm(a, b) = a x b
One practical note on the pair formula: divide before multiplying. Computing a × b first can overflow for large inputs, while (a ÷ gcd) × b gives the same answer and stays small. This calculator does the latter.
Step-by-Step Example
Find the LCM of 4, 6 and 10.
By factorisation:
4 = 2^2
6 = 2 x 3
10 = 2 x 5
Highest power of 2: 2^2 (from 4)
Highest power of 3: 3 (from 6)
Highest power of 5: 5 (from 10)
LCM = 4 x 3 x 5 = 60
Check. 60 ÷ 4 = 15, 60 ÷ 6 = 10, 60 ÷ 10 = 6. All whole.
Confirm nothing smaller works. The common multiples of 4 and 6 are 12, 24, 36, 48, 60. The first of those divisible by 10 is 60.
Now a fraction problem, which is where most people meet this. Add 1/4 + 1/6 + 1/10.
Step 1: the lowest common denominator is lcm(4, 6, 10) = 60
Step 2: rewrite each fraction over 60
1/4 = 15/60
1/6 = 10/60
1/10 = 6/60
Step 3: add the numerators
(15 + 10 + 6) / 60 = 31/60
You could use 120 instead — any common multiple works — but then you would get 62/120 and have to reduce. Using the lowest common multiple usually means the answer arrives already simplified.
Understanding Your Result
The lowest common multiple is the headline.
The prime factorisations show the working. Lining them up makes it visible which prime each highest power came from.
How many times each goes in gives the multiplier for each input. For fractions these are exactly the numbers you multiply each numerator by. For the bus example, they say how many departures each route makes before they meet again.
Two sanity checks. The LCM is never smaller than the largest input — if yours is, you have found something else. And it is never larger than the product of all the inputs; it equals the product exactly when the numbers are pairwise coprime.
When Should You Use This Calculator?
Adding or comparing fractions. The lowest common denominator is the LCM of the denominators, and using it keeps the arithmetic smallest.
Synchronising cycles. Buses, shift rotas, maintenance schedules, traffic lights, backup jobs — anything repeating on a fixed interval.
Gears and pulleys. How many turns before two gears return to their starting alignment.
Packaging. Hot dogs in tens and buns in eights means buying 40 of each to come out even.
Calendars. Events every 6 and every 14 days coincide every 42.
Algebra. Clearing denominators from an equation means multiplying through by their LCM.
Common Mistakes
Swapping it with the GCF. The LCM is at least as large as your biggest number; the GCF is at most as small as your smallest. If the answer is smaller than an input, you calculated the GCF.
Taking the lowest power instead of the highest. For the LCM you want the highest power of each prime. Taking the lowest gives the GCF.
Missing a prime that appears in only one number. Every prime that appears anywhere must be included. Unlike the GCF, it does not need to be shared.
Just multiplying the numbers together. That always gives a common multiple, but rarely the lowest. For 12 and 18 the product is 216 and the LCM is 36 — six times smaller.
Using the pair shortcut on three numbers. a × b × c ÷ gcd(a,b,c) is not the LCM. Fold pairwise.
Trying to include zero. Zero has no multiples besides itself, so it cannot participate.
Listing multiples by hand for large numbers. For 96 and 132 you would be writing for a while. Factorise, or use the GCF shortcut — both take seconds.