LCM Calculator
Find the LCM and HCF of two to ten whole numbers, with factor steps shown.
Type two or more whole numbers separated by commas.
Example · 12, 18
Least common multiple
LCM of 12 and 18 is 36. HCF is 6.
Find the common multiple
Euclid steps
Prime factors and factor table
| Prime | HCF power | LCM power |
|---|
Processed on this device — nothing is uploaded
What you can do here
- Least common multiple for ten numbers
- Highest common factor alongside LCM
- See prime factorisation and the exponent table
- Follow the Euclidean algorithm
- Use exact integer arithmetic for large inputs
What is the least common multiple?
The Least Common Multiple Calculator finds the smallest positive number divisible by each of the whole numbers you enter. It also finds their highest common factor. For inputs up to one trillion it shows the prime factorisation and the largest power of each prime used to build the LCM.
Enter 15, 20 and 25. Their prime factors are 3×5, 2²×5 and 5², so the LCM takes the highest power of each prime: 2² × 3 × 5² = 300. The HCF is 5. This is the number you need when adding fractions with those denominators, or when three schedules repeating every 15, 20 and 25 days line up again after 300 days. The factor table appears when every input is at most one trillion.
Key facts
- Price
- Free
- Sign-up
- None
- Upload
- None — runs on your device
- Limits
- 2 to 10 positive whole numbers up to 10^15 each · Prime factorisation shown when every input is at most 10^12
- Works with
- Space- or semicolon-separated whole numbers
- Output
- Exact LCM and HCF, Euclid steps and a prime factor table when available
- Updated
How to find the least common multiple
- Type the numbers
Enter 2 to 10 positive whole numbers separated by spaces, commas or new lines, for example 15, 20, 25.
- Read LCM and HCF
The LCM (300) is listed first with the HCF (5) beneath it.
- Check the working
Open the prime table to see the highest powers used, or Euclid steps to see the division chain for the HCF.
How the least common multiple is calculated
To find the LCM of 12 and 18 by prime factorisation, write 12 as 2² × 3 and 18 as 2 × 3². Take each prime that appears and use its highest exponent from either input. This gives 2² × 3² = 36. The same rule works when more than two numbers are entered.
A second method uses the highest common factor. For a pair of positive integers, divide one number by their HCF and multiply by the other number. The HCF of 12 and 18 is 6, so the LCM is (12 ÷ 6) × 18 = 36. To include more numbers, apply the same rule to the current LCM and the next input.
For larger inputs the calculator uses the HCF relationship and displays the Euclidean divisions for the original inputs. The LCM remains exact.
Frequently asked questions
What is the LCM of 15, 20 and 25?
300. It contains 2², 3 and 5², the highest power of each prime that appears in the three numbers.
How do I find the LCM of three or more numbers?
Take the highest power of every prime across all the numbers and multiply those powers together. For example, the LCM of 4, 6 and 8 is 24 because it contains 2³ and 3.
How are LCM and HCF related for two numbers?
For two numbers a and b, LCM × HCF = a × b. For 12 and 18: 36 × 6 = 216.
Why is the prime factor table missing for a large LCM input?
The table is shown when every input is at most one trillion. Larger inputs still give the exact LCM and HCF, with the Euclidean divisions available in the working.
Does the LCM Calculator upload my number list?
No. Your browser calculates the multiple and factor on your device. The site can register anonymous tool actions without the numbers. An explicit Copy link includes the inputs for the recipient.
Presets
Related tools
About this tool
Made by ZirkoMirko. Last updated .
Check it yourself in your browser’s Network panel while using the tool. How we handle your data.