LCM Calculator
Find the Least Common Multiple (LCM) of two or more numbers instantly. See step-by-step prime factorization, the LCM formula, and related mathematical properties.
Least Common Multiple Calculator
Calculate the LCM of any set of numbers
Enter two or more positive integers separated by commas, spaces, or new lines.
Your LCM Results
Least Common Multiple & step-by-step math
Enter two or more numbers, then click Calculate to find the Least Common Multiple with a full step-by-step breakdown.
Common LCM Examples
Quick reference for the Least Common Multiple of frequently used number sets.
| Numbers | LCM |
|---|---|
| 2 and 3 | 6 |
| 4 and 6 | 12 |
| 5 and 7 | 35 |
| 12 and 15 | 60 |
| 8, 12, and 16 | 48 |
| 10, 20, and 25 | 100 |
| 7, 11, and 13 | 1001 |
LCM Calculator FAQ
Everything you need to know about finding the Least Common Multiple and understanding the math behind it.
The Least Common Multiple (LCM) is the smallest positive integer that is perfectly divisible by two or more given numbers without leaving a remainder. For example, the LCM of 4 and 6 is 12, because 12 is the smallest number that both 4 and 6 divide into evenly.
There are two common methods. The first is listing multiples: write out the multiples of each number until you find the smallest one they share. The second, and more efficient method, is prime factorization: break each number down into its prime factors, then multiply the highest power of each prime that appears in any of the factorizations.
The most common formula for finding the LCM of two numbers (a and b) uses their Greatest Common Divisor (GCD): LCM(a, b) = |a × b| / GCD(a, b). For more than two numbers, you can find the LCM iteratively: LCM(a, b, c) = LCM(LCM(a, b), c).
First, find the prime factorization of each number. For example, for 12 and 15: 12 = 2² × 3, and 15 = 3 × 5. Next, identify all the unique prime numbers involved (2, 3, and 5). Finally, take the highest exponent for each prime across all factorizations and multiply them together: 2² × 3¹ × 5¹ = 4 × 3 × 5 = 60.
The LCM (Least Common Multiple) is the smallest number that is a multiple of two or more numbers. The GCF (Greatest Common Factor), also known as GCD (Greatest Common Divisor), is the largest number that divides two or more numbers without leaving a remainder. They are inversely related by the formula: LCM × GCF = Product of the numbers.
By definition, the LCM is a positive integer. If negative numbers are provided, their absolute values are used for the calculation. If zero is included in the set of numbers, the LCM is defined as zero, because zero is the only multiple that zero and any other number share.
LCM is frequently used when adding or subtracting fractions with different denominators (finding the lowest common denominator). It is also used to synchronize repeating events, such as figuring out when two traffic lights will next turn green at the same time, or when two buses with different schedules will arrive at a stop together.
If the numbers you are comparing are distinct prime numbers (e.g., 3, 5, and 7), their LCM is simply their product. Because prime numbers have no common factors other than 1, the smallest number they all divide into evenly is the result of multiplying them together (3 × 5 × 7 = 105).
