LCM Calculator

Find the least common multiple of two or more numbers using different methods with detailed step-by-step solutions.

LCM Calculator

Enter numbers to find their least common multiple

LCM Results

TXT
CSV
JSON
Print
-
LCM
-
GCD
-
Numbers
-
Method

Least Common Multiple

-
-

Recent Calculations

What is LCM (Least Common Multiple)?

Least Common Multiple (LCM) of two or more numbers is the smallest positive integer that is divisible by each of the numbers without leaving a remainder.

Key Concepts:

  • Multiple: A number that can be divided by another number without a remainder
  • Common Multiple: A number that is a multiple of two or more numbers
  • Least Common Multiple: The smallest of all common multiples
  • Relationship with GCD: LCM(a,b) × GCD(a,b) = a × b

Basic Example

Find LCM of 4 and 6:

Multiples of 4: 4, 8, 12, 16, 20, 24...
Multiples of 6: 6, 12, 18, 24, 30...
Common multiples: 12, 24...
Least common multiple: 12

Properties of LCM

Important mathematical properties:

LCM(a,b) = LCM(b,a) (Commutative)
LCM(a,LCM(b,c)) = LCM(LCM(a,b),c) (Associative)
LCM(a,1) = a
LCM(a,0) is undefined for a ≠ 0

Special Cases

LCM calculations for special number relationships:

Coprime numbers: LCM(a,b) = a×b
One divides another: LCM(a,b) = b if a|b
Equal numbers: LCM(a,a) = a
Prime numbers: LCM(p,q) = p×q (p≠q primes)

LCM Calculation Methods

There are several methods to find the least common multiple of numbers, each with its own advantages.

Prime Factorization

Factor numbers into primes, take highest powers of all primes.

Find LCM of 12 and 18:
12 = 2² × 3
18 = 2 × 3²
LCM = 2² × 3² = 36

GCD Formula

Use the relationship: LCM(a,b) = (a × b) / GCD(a,b)

Find LCM of 12 and 18:
GCD(12,18) = 6
LCM = (12 × 18) / 6 = 216 / 6 = 36

Listing Multiples

List multiples of each number until finding the smallest common one.

Multiples of 4: 4,8,12,16,20,24...
Multiples of 6: 6,12,18,24,30...
First common: 12

Division Method

Divide by common prime factors until all quotients are 1.

12, 18 | 2
6, 9 | 2
3, 9 | 3
1, 3 | 3
1, 1
LCM = 2×2×3×3 = 36

Using the Formula for >2 Numbers

Find LCM of first two, then LCM of result with next number.

LCM(4,6,8):
LCM(4,6) = 12
LCM(12,8) = 24
Final LCM = 24

Comparison of Methods

Each method has advantages for different situations.

Prime factorization: Best for large numbers
GCD formula: Efficient with known GCD
Listing multiples: Good for small numbers
Division method: Systematic approach

Prime Factorization Method

The prime factorization method is one of the most efficient ways to find the LCM, especially for larger numbers.

Prime Factorization Method: Factor each number into its prime factors, then take the highest power of each prime that appears in any of the factorizations, and multiply these together to get the LCM.

Step 1: Factor Each Number

Break down each number into its prime factors.

Find LCM of 24 and 36:
24 = 2 × 2 × 2 × 3 = 2³ × 3
36 = 2 × 2 × 3 × 3 = 2² × 3²

Step 2: Identify Highest Powers

Find the highest power of each prime factor.

Prime factors: 2 and 3
Highest power of 2: 2³ (from 24)
Highest power of 3: 3² (from 36)

Step 3: Multiply Highest Powers

Multiply the highest powers together.

LCM = 2³ × 3²
= 8 × 9
= 72

For Multiple Numbers

The same process works for more than two numbers.

LCM of 12, 18, 24:
12 = 2² × 3
18 = 2 × 3²
24 = 2³ × 3
Highest powers: 2³, 3²
LCM = 8 × 9 = 72

With Different Primes

Include all primes that appear in any factorization.

LCM of 12 and 25:
12 = 2² × 3
25 = 5²
Highest powers: 2², 3, 5²
LCM = 4 × 3 × 25 = 300

Advantages

Why this method is widely used:

Works for any number of integers
Systematic and reliable
Easy to verify
Shows the mathematical structure
LCM(a,b) = Product of highest powers of all primes in the factorizations of a and b

GCD Formula Method

Using the relationship between GCD and LCM is an efficient method, especially when the GCD is already known or easy to calculate.

GCD-LCM Relationship: For any two positive integers a and b, the product of the numbers equals the product of their GCD and LCM: a × b = GCD(a,b) × LCM(a,b)

The Formula

Rearrange the relationship to solve for LCM.

a × b = GCD(a,b) × LCM(a,b)
Therefore:
LCM(a,b) = (a × b) / GCD(a,b)

Example Calculation

Find LCM using known GCD.

Find LCM of 24 and 36:
GCD(24,36) = 12
LCM = (24 × 36) / 12
= 864 / 12
= 72

For Coprime Numbers

When GCD is 1, LCM is simply the product.

Find LCM of 7 and 15:
GCD(7,15) = 1
LCM = (7 × 15) / 1
= 105

For Multiple Numbers

Apply the formula recursively for more than two numbers.

LCM(a,b,c) = LCM(LCM(a,b),c)
Find LCM of 4,6,8:
LCM(4,6) = 12
LCM(12,8) = 24

Efficiency Considerations

When this method is most efficient.

Best when GCD is known
Or when numbers are small
Or when Euclidean algorithm is efficient
Not ideal for many large numbers

Mathematical Foundation

Why the relationship holds true.

Based on fundamental theorem of arithmetic
Both GCD and LCM relate to prime factors
Product covers all prime factors
GCD "removes" the overlap
LCM(a,b) = (a × b) / GCD(a,b)

Division Method

The division method provides a systematic approach to finding LCM by repeatedly dividing by common factors.

Step 1: Setup

Write the numbers in a row and find a common prime factor.

Find LCM of 12, 18, 24:
Write: 12, 18, 24

Step 2: Divide by Common Factors

Divide all numbers by a common prime factor.

Common factor: 2
12÷2=6, 18÷2=9, 24÷2=12
Write: 6, 9, 12

Step 3: Continue Division

Repeat with other common factors.

Common factor: 2 again
6÷2=3, 9÷2=4.5 → can't divide 9 by 2
Only divide numbers divisible by 2
Write: 3, 9, 6

Step 4: Change Factors

Switch to different common factors as needed.

Common factor: 3
3÷3=1, 9÷3=3, 6÷3=2
Write: 1, 3, 2

Step 5: Final Division

Continue until all numbers become 1.

Common factor: 2
2÷2=1 (only 2 is divisible)
Write: 1, 3, 1
Common factor: 3
3÷3=1
Write: 1, 1, 1

Step 6: Multiply Divisors

Multiply all the divisors to get the LCM.

Divisors: 2, 2, 3, 2, 3
LCM = 2 × 2 × 3 × 2 × 3
= 72
LCM = Product of all divisors used in the division process

Real-World Applications of LCM

The least common multiple has numerous practical applications in various fields:

Scheduling and Planning

  • Finding common meeting times
  • Planning recurring events
  • Coordinating schedules
  • Project timeline planning

Mathematics and Fractions

  • Adding and subtracting fractions
  • Finding common denominators
  • Solving ratio problems
  • Algebraic manipulations

Engineering and Technology

  • Designing gear systems
  • Signal processing
  • Computer algorithm design
  • Cryptography

Music and Rhythm

  • Finding rhythm patterns
  • Harmony and chord progressions
  • Time signatures
  • Musical composition

Daily Life

  • Planning shopping trips
  • Calculating recipe quantities
  • Budgeting and finance
  • Time management

Science and Research

  • Experimental design
  • Data collection intervals
  • Statistical analysis
  • Pattern recognition

Solved LCM Examples

Step-by-step solutions to common LCM problems:

Example 1: LCM of 12 and 18
Find the least common multiple of 12 and 18 using prime factorization.
1. Prime factors of 12: 2 × 2 × 3 = 2² × 3
2. Prime factors of 18: 2 × 3 × 3 = 2 × 3²
3. Highest power of 2: 2²
4. Highest power of 3: 3²
5. LCM = 2² × 3² = 4 × 9 = 36
Result: LCM(12,18) = 36
Example 2: LCM of 8, 12, and 18
Find the least common multiple of 8, 12, and 18 using the division method.
1. Write numbers: 8, 12, 18
2. Divide by 2: 4, 6, 9
3. Divide by 2: 2, 3, 9
4. Divide by 3: 2, 1, 3
5. Divide by 2: 1, 1, 3
6. Divide by 3: 1, 1, 1
7. LCM = 2 × 2 × 3 × 2 × 3 = 72
Result: LCM(8,12,18) = 72
Example 3: LCM of 7 and 15
Find the least common multiple of 7 and 15 using the GCD formula.
1. GCD(7,15) = 1 (they are coprime)
2. LCM = (7 × 15) / GCD(7,15)
3. LCM = (105) / 1 = 105
Result: LCM(7,15) = 105
Example 4: LCM of 24 and 36
Find the least common multiple of 24 and 36 using listing multiples.
1. Multiples of 24: 24, 48, 72, 96, 120...
2. Multiples of 36: 36, 72, 108, 144...
3. Common multiples: 72, 144...
4. Least common multiple: 72
Result: LCM(24,36) = 72
Example 5: LCM of 6, 15, and 20
Find the least common multiple of 6, 15, and 20 using prime factorization.
1. 6 = 2 × 3
2. 15 = 3 × 5
3. 20 = 2² × 5
4. Highest powers: 2², 3, 5
5. LCM = 4 × 3 × 5 = 60
Result: LCM(6,15,20) = 60
Example 6: LCM of 9, 12, and 18
Find the least common multiple of 9, 12, and 18 using the division method.
1. Write numbers: 9, 12, 18
2. Divide by 2: 9, 6, 9
3. Divide by 3: 3, 2, 3
4. Divide by 2: 3, 1, 3
5. Divide by 3: 1, 1, 1
6. LCM = 2 × 3 × 2 × 3 = 36
Result: LCM(9,12,18) = 36

Practice Problems

Test your understanding with these LCM problems:

Problem 1: Find the LCM of 15 and 25.

Solution:

Prime factors:

15 = 3 × 5

25 = 5²

Highest powers: 3, 5²

LCM = 3 × 25 = 75

Therefore, LCM(15,25) = 75.

Problem 2: Find the LCM of 8, 12, and 20.

Solution:

Prime factors:

8 = 2³

12 = 2² × 3

20 = 2² × 5

Highest powers: 2³, 3, 5

LCM = 8 × 3 × 5 = 120

Therefore, LCM(8,12,20) = 120.

Problem 3: Find the LCM of 18 and 24 using the GCD formula.

Solution:

GCD(18,24) = 6

LCM = (18 × 24) / 6

= 432 / 6

= 72

Therefore, LCM(18,24) = 72.

Problem 4: Find the LCM of 7, 14, and 21.

Solution:

Prime factors:

7 = 7

14 = 2 × 7

21 = 3 × 7

Highest powers: 2, 3, 7

LCM = 2 × 3 × 7 = 42

Therefore, LCM(7,14,21) = 42.

Problem 5: Find the LCM of 9 and 16.

Solution:

9 and 16 are coprime (GCD=1)

LCM = 9 × 16 = 144

Therefore, LCM(9,16) = 144.

How to Find LCM Step-by-Step

Follow this systematic approach to find the least common multiple of numbers:

1

Identify the Numbers

List all the numbers for which you want to find the LCM.

Numbers: 12, 18, 24
2

Choose a Method

Select the most appropriate method based on the numbers.

For these numbers, prime factorization works well.
3

Prime Factorization

Factor each number into its prime factors.

12 = 2² × 3
18 = 2 × 3²
24 = 2³ × 3
4

Identify Highest Powers

Find the highest power of each prime factor.

Prime 2: highest power is 2³
Prime 3: highest power is 3²
5

Multiply Highest Powers

Multiply the highest powers together.

LCM = 2³ × 3²
= 8 × 9
= 72
6

Verify the Result

Check that the result is divisible by all original numbers.

72 ÷ 12 = 6 ✓
72 ÷ 18 = 4 ✓
72 ÷ 24 = 3 ✓

Pro Tips for Finding LCM

  • For two numbers, consider using the GCD formula if GCD is easy to find
  • For multiple numbers, prime factorization is usually most efficient
  • For small numbers, listing multiples can be quick and intuitive
  • Always verify your result by checking divisibility
  • Remember special cases like coprime numbers where LCM is simply the product

Frequently Asked Questions

Common questions about LCM (Least Common Multiple) calculations and applications:

What's the difference between LCM and GCD?
LCM (Least Common Multiple) is the smallest number that is a multiple of two or more numbers, while GCD (Greatest Common Divisor) is the largest number that divides two or more numbers without a remainder. They are related by: LCM(a,b) × GCD(a,b) = a × b.
Can LCM be smaller than the numbers themselves?
No, the LCM of two or more numbers is always greater than or equal to the largest number in the set. For example, LCM(4,6)=12. If one number is a multiple of another, LCM equals the larger number, e.g., LCM(4,8)=8.
How do I find LCM for more than two numbers?
For multiple numbers, either use prime factorization (take the highest power of each prime) or iteratively compute LCM of pairs: LCM(4,6,8)=LCM(LCM(4,6),8)=24.
What is the LCM of prime numbers?
The LCM of different prime numbers is their product. For example, LCM(5,7)=35. For the same prime, the LCM equals that prime: LCM(3,3)=3.
How is LCM used with fractions?
LCM helps find the least common denominator when adding or subtracting fractions. Example: 1/4 + 1/6 → LCM(4,6)=12 → 3/12 + 2/12 = 5/12.
What's the fastest way to find LCM?
For small numbers, list multiples. For larger numbers, use prime factorization or LCM(a,b) = (a×b)/GCD(a,b) if the GCD is known.
Can LCM be zero?
No, LCM of non-zero numbers is always positive. LCM(0,n) is generally undefined because zero has infinite multiples.
Is LCM associative?
Yes, LCM is associative: LCM(a, LCM(b,c)) = LCM(LCM(a,b),c). This helps compute LCM of multiple numbers sequentially.
Is LCM commutative?
Yes, LCM(a,b) = LCM(b,a). Order of numbers does not affect the LCM result.
How does LCM relate to multiples of numbers?
LCM is the smallest positive number that is a multiple of all given numbers. All other common multiples are multiples of the LCM.
Can LCM be used in scheduling problems?
Yes, LCM is widely used to find repeating cycles, such as syncing schedules, events, or tasks that repeat over different intervals.
How is LCM calculated using prime factorization?
Factor each number into primes, then take each prime with the **highest exponent** appearing in any number. Multiply them to get the LCM.
Why is LCM important in mathematics?
LCM is crucial in fractions, algebra, number theory, and real-world applications like scheduling, cryptography, and modular arithmetic.