LCM calculator with steps (lowest common multiple)
Free TutorAura tool · no sign-up · Updated
Type two or more whole numbers to find their lowest common multiple (LCM), the smallest number that every one of them divides into exactly. The calculator shows each number as a product of prime factors and explains how the LCM is built from them, so you can do the same in an exam. It also gives the highest common factor (HCF) and, for two numbers, the Venn diagram many teachers use.
How the LCM is found
- Write each number as a product of prime factors, for example and .
- List every prime that appears in any of the numbers.
- Take each prime with its highest power: and .
- Multiply them: .
For small numbers you can also list multiples (12, 24, 36, … and 18, 36, …) until one appears in both lists, but prime factors are quicker for large numbers and are what exams usually expect.
Worked example: 12, 18 and 30
Highest powers: , and . So the LCM is . Check: , and , all whole numbers.
When you need the LCM
| Situation | Why the LCM helps |
|---|---|
| Adding fractions | The LCM of the denominators is the lowest common denominator |
| "When will they next happen together?" | Buses every 12 and 18 minutes next leave together after 36 minutes |
| Packs and groups | The smallest number you can split into groups of 12 or of 18 |
See our guide on how to find the LCM for more methods and exam-style questions.
Common mistakes
- Taking the lowest powers. That gives the HCF, not the LCM.
- Multiplying the numbers together. is a common multiple, but not the lowest.
- Missing a prime that appears in only one number, like the 5 in 30.
LCM and HCF together
For two numbers, the product of the numbers. For 12 and 18: . It's a handy check, but it only works for two numbers. The calculator shows both answers; for the HCF method, see the HCF calculator.
Frequently asked questions
What is the LCM of 12 and 18?
36. 12 = 2² × 3 and 18 = 2 × 3², so the LCM is 2² × 3² = 36.
How do you find the LCM of three numbers?
Write each as a product of primes, then multiply every prime that appears, each with its highest power. The calculator accepts up to ten numbers.
Is the LCM the same as the lowest common denominator?
When the numbers are denominators, yes: the lowest common denominator of fractions is the LCM of their denominators.
Is my data sent anywhere?
No. The calculation happens in your browser.
Sources
- National curriculum in England: mathematics programmes of study. Department for Education.
- Common Core State Standards for Mathematics. Common Core State Standards Initiative.
Keep reading
HCF and GCF calculator with steps (highest common factor)
Highest common factor (greatest common factor) of 2 to 10 numbers, with prime factors and a Venn diagram.
Prime factorisation calculator with a factor tree
Any number as a product of primes, in index form, with its factor tree drawn for you.
How to find the LCM (lowest common multiple): 3 methods
Listing multiples, prime factors and Venn diagrams, with worked examples and word problems.
Prime factorisation, HCF and LCM
Write a number as a product of primes with a factor tree, then use it to find the highest common factor and lowest common multiple.