LCM Calculator
Find the least common multiple of two or more numbers instantly. Enter your numbers to get the LCM and GCD with the method clearly explained.
Updated 2026-06-14 · Free · No sign-up · Runs privately in your browser
Show the steps
How the LCM Calculator Works
The least common multiple (LCM) of a set of numbers is the smallest positive number that every one of them divides into evenly. This calculator accepts two or more positive whole numbers and returns the LCM along with the GCD for reference.
The Method
The fastest way to find the LCM of two numbers uses their greatest common divisor:
LCM(a, b) = (a × b) ÷ GCD(a, b)
For a longer list, the tool applies this rule pairwise: it finds the LCM of the first two numbers, then combines that result with the next number, and so on across the whole set. Using GCD keeps the intermediate values small and exact.
Worked Example
Find the LCM of 4, 6 and 8:
| Step | Pair | GCD | LCM so far |
|---|---|---|---|
| 1 | 4, 6 | 2 | (4 × 6) ÷ 2 = 12 |
| 2 | 12, 8 | 4 | (12 × 8) ÷ 4 = 24 |
So the LCM of 4, 6 and 8 is 24 — the smallest number all three divide into without a remainder.
Where the LCM Is Used
The LCM solves many everyday and classroom problems:
- Adding fractions — you need a common denominator, which is the LCM of the denominators.
- Scheduling — events that repeat every few days line up again after their LCM of days.
- Gears and cycles — repeating patterns synchronise at their least common multiple.
Knowing both the LCM and the GCD gives you a complete picture of how a set of numbers relates.
Frequently asked questions
What is the least common multiple?+
The LCM of two or more numbers is the smallest positive number that each of them divides into evenly. For 4 and 6 the LCM is 12.
How do you find the LCM of two numbers?+
Multiply the two numbers together and divide by their greatest common divisor: LCM(a,b) = a x b / GCD(a,b). For 4 and 6, GCD is 2, so LCM = 24 / 2 = 12.
What is the LCM of 4, 6 and 8?+
The least common multiple of 4, 6 and 8 is 24, the smallest number that all three divide into without a remainder.
What is the difference between LCM and GCD?+
The LCM is the smallest number all inputs divide into, while the GCD is the largest number that divides all of them. They are linked by LCM x GCD = product of the numbers (for two values).
Can the LCM calculator handle more than two numbers?+
Yes. Enter any list of positive whole numbers separated by commas or spaces and it computes the LCM and GCD across the whole set.