LCM Calculator
Find the least common multiple of two or more numbers using prime factorisation, step by step.
Separate the numbers with commas or spaces (2 to 10 whole numbers).
How do you find the LCM of two numbers?
Write each number as a product of primes and multiply every prime that appears, using its highest power. For 12 = 2² × 3 and 18 = 2 × 3², the LCM is 2² × 3² = 36. You can also use LCM(a, b) = a × b ÷ GCF(a, b).
Checked by the All Math Solver team · Last reviewed · How we check our answers
How to Find the LCM (Least Common Multiple)
Prime factorisation method, checked with Euclid's algorithmThe least common multiple of two or more numbers is the smallest positive number that every one of them divides into exactly. For example, the LCM of 4 and 6 is 12.
This LCM calculator writes each number as a product of primes and takes every prime with its highest power: \(12 = 2^2 \times 3\) and \(18 = 2 \times 3^2\) give \(\text{LCM} = 2^2 \times 3^2 = 36\). It also checks the answer with \(\text{LCM}(a,b) = \frac{a \times b}{\text{GCF}(a,b)}\). The LCM is used to add fractions with different denominators.
How to use the LCM calculator
- Type two or more whole numbers separated by commas or spaces, for example 12, 18, 30 (up to 10 numbers).
- Press Calculate.
- You see the prime factorisation of each number, the highest power of each prime, the LCM, and a check using LCM(a, b) = a × b ÷ GCF(a, b).
Example: LCM of 12, 18 and 30 → 12 = 2²·3, 18 = 2·3², 30 = 2·3·5, so LCM = 2²·3²·5 = 180
Worked examples
LCM of three numbers by prime factors
Question: Find the LCM of 12, 18 and 30
- 12 = 2² × 3, 18 = 2 × 3², 30 = 2 × 3 × 5.
- Take each prime with its highest power: 2², 3² and 5.
- Multiply: 2² × 3² × 5 = 4 × 9 × 5.
Answer: LCM = 180
Adding fractions with the LCM
Question: Work out 5/12 + 7/18
- The LCM of 12 and 18 is 36 (12 = 2² × 3, 18 = 2 × 3², so 2² × 3² = 36).
- Rewrite: 5/12 = 15/36 and 7/18 = 14/36.
- Add the numerators: 15/36 + 14/36 = 29/36.
Answer: 29/36
Frequently asked questions
What is the LCM of two numbers?
The least common multiple (LCM), also called the lowest common multiple, is the smallest positive number that both numbers divide into exactly. For example, the LCM of 4 and 6 is 12.
How do you find the LCM using prime factorisation?
Write each number as a product of primes, then multiply every prime that appears, each raised to the highest power it has in any of the numbers.
What is the relationship between LCM and GCF?
For two positive whole numbers, LCM(a, b) × GCF(a, b) = a × b. So LCM(a, b) = a × b ÷ GCF(a, b).
Where is the LCM used?
To add or subtract fractions with different denominators (the LCM is the lowest common denominator), and in problems about events that repeat, such as when two buses next leave at the same time.