LCM Calculator
LCM Calculator
Enter two integers. The least common multiple is the smallest positive integer divisible by both non-zero inputs.
Enter your values
Enter values and select Calculate.
LCM Calculator – Find the Least Common Multiple of Two Numbers
Use this free LCM Calculator to find the least common multiple of two integers quickly. The least common multiple (LCM) is the smallest positive number that is exactly divisible by each of the given non-zero numbers. It is useful for simplifying fractions, solving number problems, comparing repeating cycles and finding a common denominator.
Enter the two integers in the calculator above to calculate their LCM. You can also use the method and examples below to understand how to find the least common multiple manually.
What Is the Least Common Multiple (LCM)?
The least common multiple of two or more integers is the smallest positive integer that appears in the multiples of every number. For example, the multiples of 4 are 4, 8, 12, 16, 20, and the multiples of 6 are 6, 12, 18, 24. The first positive common multiple is 12, so the LCM of 4 and 6 is 12.
LCM Formula
LCM(a, b) = |a × b| ÷ GCD(a, b)
Here, a and b are non-zero integers, and GCD means greatest common divisor (also called HCF). The absolute value ensures that the LCM is not negative.
If either input is zero, this calculator follows the convention that the LCM is 0. For two non-zero inputs, the formula uses the product of their absolute values divided by their GCD.
How to Use This LCM Calculator
- Enter the first integer in the First integer field.
- Enter the second integer in the Second integer field.
- Select Calculate to display the least common multiple.
- Select Clear to remove the values and start again.
Use whole numbers rather than decimals because the LCM is defined for integers. The inputs can be positive or negative; the LCM result is non-negative.
LCM Examples With Step-by-Step Working
Example 1: Find the LCM of 4 and 6
Multiples of 4: 4, 8, 12, 16, 20…
Multiples of 6: 6, 12, 18, 24…
The smallest common multiple is 12. Therefore, LCM(4, 6) = 12.
Example 2: Find the LCM of 8 and 12
GCD(8, 12) = 4. Using the formula: (8 × 12) ÷ 4 = 96 ÷ 4 = 24.
Therefore, LCM(8, 12) = 24.
Example 3: Find the LCM of 5 and 7
Both numbers are prime and have no common factor other than 1. Their LCM is 5 × 7 = 35.
Example 4: Find the LCM of 9 and 15
GCD(9, 15) = 3. LCM = (9 × 15) ÷ 3 = 135 ÷ 3 = 45.
Methods to Find the LCM
1. Listing multiples: Write the multiples of each number in ascending order. The first positive number common to all lists is the LCM. This method is straightforward for small integers.
2. Prime factorization: Express each number as a product of prime factors. Take every prime factor at its highest power found in any factorization, then multiply those factors. For example, 12 = 2² × 3 and 18 = 2 × 3². Taking the highest powers gives 2² × 3² = 36.
3. GCD formula: Find the greatest common divisor first, then divide the product of the absolute values by the GCD. This is often efficient for larger integers.
LCM vs GCD (HCF)
LCM is the least common multiple, while GCD (also called HCF) is the greatest common divisor. The LCM is a common multiple and is generally at least as large as the absolute values of the inputs when both are non-zero. The GCD is a common factor and cannot exceed either absolute input. For two non-zero integers, their product in absolute value equals LCM multiplied by GCD.
Where Is LCM Used?
- Adding and subtracting fractions: Find a common denominator before combining fractions.
- Repeating events: Work out when events with different regular intervals happen together again.
- Time and scheduling problems: Compare repeating schedules or cycles.
- Mathematics exercises: Solve divisibility, multiples and number theory questions.
Frequently Asked Questions About LCM
1. What does LCM stand for?
LCM stands for Least Common Multiple. It is the smallest positive integer that is divisible by each of the given non-zero integers.
2. How do I calculate the LCM of two numbers?
You can list their multiples, use prime factorization, or apply LCM(a, b) = |a × b| ÷ GCD(a, b) for two non-zero integers.
3. What is the LCM of 4 and 6?
The LCM of 4 and 6 is 12. Twelve is the smallest positive number divisible by both 4 and 6.
4. What is the difference between LCM and HCF?
LCM is the least common multiple of the numbers. HCF, also called GCD, is the highest positive integer that divides each number exactly.
5. Can the LCM be smaller than the given numbers?
For two non-zero integers, the positive LCM is at least as large as the absolute value of each input. It can equal an input when that input is a multiple of the other.
6. What is the LCM of two prime numbers?
If the two prime numbers are different, their LCM is their product because their only common positive factor is 1. If they are the same prime, the LCM is that prime.
7. What happens if one of the numbers is zero?
This calculator returns 0 if either input is zero. This follows the convention LCM(a, 0) = 0.
8. Can I calculate the LCM of negative numbers?
Yes. The LCM is non-negative, so the absolute values of the inputs are used when applying the formula. This calculator accepts integer inputs.
9. Is the LCM of two numbers always their product?
No. Their product is the LCM when the numbers are relatively prime. Otherwise, divide the product of their absolute values by their GCD.
10. Is this LCM calculator free to use?
Yes. You can use this SRIKAMI LCM Calculator free of charge to find the least common multiple of two integers.
Explore Related Calculators
Use these related SRIKAMI tools for factors, multiples and other number calculations.
