LCM Calculator
The least common multiple (LCM) of two or more numbers is the smallest number that all of them divide into exactly. This LCM calculator finds it with two methods: taking the highest power of each prime factor, and the formula LCM = product ÷ GCF. Both methods must agree.
How to use the lcm calculator
- Enter two or more whole numbers, separated by commas.
- Press Calculate.
- See the LCM, the prime factorisations and the GCF check.
Formula
Worked example: 12, 18
- Numbers: 12, 18
✓ Answer checked
Step-by-step working (3 steps)
Prime factorise each number Prime factorisation
Write each number as a product of primes.
Take the highest powers
Use every prime that appears, each to its highest power.
Check with the GCF lcm(a,b) = ab / gcd(a,b)
For two numbers, LCM = product ÷ GCF.
Formulas used
How this was checked
- ✓ 36 is a multiple of every number.
- ✓ The prime-power method gives the same result.
Frequently asked questions
What is the LCM of 12 and 18?
36. It is the smallest number that both 12 and 18 divide into.
How do I find the LCM with prime factors?
Prime factorise each number, then multiply each prime to its highest power. 12 = 2² × 3 and 18 = 2 × 3², so the LCM is 2² × 3² = 36.
When do I use the LCM?
To find a common denominator when adding fractions, or to work out when repeating events happen together.
Related calculators
GCF (HCF) Calculator
Find the greatest common factor (GCF), also called the HCF or GCD, of two or more numbers using Euclid's algorithm and prime factors.
Fraction Calculator
Free fraction calculator for adding, subtracting, multiplying and dividing fractions and mixed numbers.
Prime Number Calculator
Check whether a number is prime, see its prime factorisation and find the next prime.
Factor Calculator
List all the factors and factor pairs of a number, with its prime factorisation, number of factors and sum of factors.
