LCM Calculator: Least Common Multiple
This least common multiple calculator finds the LCM of two or more numbers and shows the steps using prime factors. The LCM is the smallest number each of them divides into, which you need for adding fractions with different denominators. To find the least common denominator of fractions, open the LCD Calculator.
Least Common Multiple Calculator
-
-
This least common multiple calculator finds the LCM of two or more whole numbers and shows the prime factorization behind it. It's the quick way to find a common denominator or to work out when repeating events line up.
How to use the Least Common Multiple Calculator
- Enter two or more integers separated by commas or spaces, for example 12, 18, 30. Zeros are ignored.
- Leave Show prime factors ticked to see the working, or untick it for just the answer.
- Press Calculate LCM.
- Read the LCM, the combined Prime Factorization Detail and the step box that factors each number. The chart compares your numbers with the LCM.
Formula
For two numbers: LCM(a, b) = |a × b| ÷ GCF(a, b)
The tool computes the LCM with the GCF formula, applied pair by pair, and shows the prime-power method as a check.
Example
For 8, 12 and 20: 8 = 2³, 12 = 2² × 3 and 20 = 2² × 5. Take the highest power of each prime: 2³, 3 and 5. LCM = 8 × 3 × 5 = 120. So fractions with denominators 8, 12 and 20 can all be rewritten over 120.
Frequently asked questions
What is the least common multiple?
The smallest positive number that every number in the list divides into evenly. The LCM of 4 and 6 is 12, since 12 is the first number in both times tables.
What is the difference between LCM and GCF?
The GCF is the largest number that divides all the numbers; the LCM is the smallest number they all divide into. For 4 and 6, the GCF is 2 and the LCM is 12. For two positive numbers, GCF × LCM = a × b.
How do I use the LCM to add fractions?
Use the LCM of the denominators as the common denominator. For 1/4 + 1/6, the LCM is 12, so 3/12 + 2/12 = 5/12.
Where is the LCM used in real life?
Any time repeating cycles must line up. If one bus comes every 12 minutes and another every 18, they leave together every LCM(12, 18) = 36 minutes.
To find the largest shared divisor, use the Greatest Common Factor Calculator.
Least common multiple with steps
How to use it
- Enter two or more whole numbers, separated by commas.
- Read the least common multiple.
- Check the prime factor steps.
- Use the LCM as the common denominator for fractions.
More questions
What is the LCM of 4 and 6?
12.
What is the LCM of 8 and 12?
24.
How do I find the LCM with prime factors?
Write each number's prime factors and multiply the highest power of each prime. For 8 (2³) and 12 (2² × 3), that is 2³ × 3 = 24.
Related tools: Greatest Common Factor Calculator, Common Factor Calculator, Fraction Calculator.