Needs to compute the greatest common divisor instead? Use the GCF calculator.
How to Use the LCM Calculator
This calculator allows you to find the least common multiple (LCM) of two or more numbers and shows you the steps using prime factorization.
To use the calculator:
- Enter the numbers in the input field. Separate them using commas or spaces.
- Click Calculate.
The calculator will instantly return the LCM and provide a step-by-step solution showing how the value was obtained using the prime factor tree method.
For example, to find the LCM of 12, 18, and 24 using the calculator:
- Enter 12, 18, 24 in the input field.
- Click Calculate.
The calculator returns 72 as the LCM and shows how each number is broken down into prime factors, the highest power of each prime factor, and how those factors are multiplied to obtain the LCM.
What Is the Least Common Multiple (LCM)?
The least common multiple (LCM) is the smallest positive integer that is a multiple of two or more numbers. It is also known as the lowest common multiple.
A multiple is a number obtained by multiplying a given number by a positive whole number. For example, the first five positive multiples of 4 are 4, 8, 12, 16, and 20.
To understand the least common multiple, consider the numbers 4 and 6.
- Multiples of 4: 4, 8, 12, 16, 20, 24, 28, 32, 36, …
- Multiples of 6: 6, 12, 18, 24, 30, 36, …
Notice that 12, 24, and 36 appear in both lists. These are common multiples of 4 and 6.
However, 12 is the smallest positive number appearing in both lists. Therefore, the least common multiple of 4 and 6 is 12. In other words, LCM(4,6) = 12. This means that 12 is the smallest positive integer divisible by both 4 and 6 without leaving a remainder.
How to Find the Least Common Multiple by Hand
There are several methods you can use to find the least common multiple of two or more numbers. The most common methods include:
- Listing multiples.
- Prime factorization.
- Cake Method (Ladder Method).
- Using the greatest common factor (GCF).
Method 1: Listing Multiples
The listing multiples method involves writing down the positive multiples of each number until you identify the smallest number appearing in every list.
Therefore, to find the LCM using this method:
- List the multiples of each number until you find a common multiple.
- Identify the numbers appearing in all the lists.
- Select the smallest common multiple.
Example 1: Find the LCM of 6 and 8
To find the least common multiple of 6 and 8 by listing multiples, follow these steps:
Step 1. List the multiples of each number
- The multiples of 6 are: 6, 12, 18, 24, 30, 36, 42, 48, …
- The multiples of 8 are: 8, 16, 24, 32, 40, 48, …
Step 2. Identify the common multiples
From the two lists, we can see that 24 and 48 are common multiples of 6 and 8.
Step 3. Select the least common multiple
The smallest common multiple is 24. Therefore, LCM (6,8) = 24.
Although the listing multiples method is easy to understand, it can become time-consuming when working with larger numbers. In such cases, prime factorization provides another way to find the LCM.
Method 2: Prime Factorization
The prime factorization method involves expressing each number as a product of prime numbers, identifying the highest power of each distinct prime factor, and multiplying those powers to obtain the LCM.
A prime number is a positive integer greater than 1 that has exactly two positive factors: 1 and itself. Examples include 2, 3, 5, 7, and 11.
To find the LCM using prime factorization:
- Find the prime factors of each number using a factor tree.
- Identify the highest power of each distinct prime factor.
- Multiply the highest powers to obtain the LCM.
Example 2: Find the LCM of 24 and 40
To find the LCM of 24 and 40 using prime factorization, follow these steps:
Step 1. Find the prime factors of each number
We first need to express 24 and 40 as products of their prime factors.
A factor tree helps us identify these factors by breaking a number into two smaller factors and continuing until all the final factors are prime numbers.
For 24, the prime factor tree will be:

From the above factor tree, 24 can be expressed as follows:
24 = 2 × 2 × 2 ×3
Expressing the repeated factors using exponents gives:
24 = 23 × 3
Similarly, factorizing 40 gives the following factor tree.

From the above factor tree, we can express 40 as a product of the prime factors as follows.
40 = 2 × 2 × 2 ×5
Expressing the repeated factors using exponents, we get:
40 = 23 × 5
Step 2. Identify the highest power of each prime factor
From the prime factorizations, we can see that the distinct prime factors are 2, 3, and 5.
To find the LCM, we need to select the highest power of each prime factor appearing in either number.
- For the prime factor 2, the highest power is 2³.
- For the prime factor 3, the highest power is 3¹.
- For the prime factor 5, the highest power is 5¹.
Notice that we include 3 and 5 even though they do not appear in both numbers. When finding the LCM, we include every distinct prime factor, taking its highest power.
Step 3. Multiply the highest powers
To get the LCM, we multiply the selected prime factors.
That is, LCM (24, 40) = 23 × 31 × 51
= 8 × 3 × 5
= 120.
Therefore, the least common multiple of 24 and 40 is 120.
Method 3: Cake Method (Ladder Method)
The cake method, also known as the ladder method, involves dividing two or more numbers by prime numbers until no prime number divides at least two numbers in the remaining row.
To find the LCM using the cake method:
- Write the numbers next to each other in a row.
- Divide the numbers that are evenly divisible by the chosen prime and bring down any number that is not divisible without changing it.
- Continue dividing until no prime number divides at least two numbers in the remaining row.
- Multiply the numbers in the left column and the bottom row, ignoring 1, to obtain the LCM.
Example 3: Find the LCM of 12, 18, and 24 Using the Cake Method
To find the least common multiple of 12, 18, and 24 using the cake method, follow these steps:
Step 1. Write the numbers in a row
Start by writing 12, 18, and 24 next to each other, as shown below.
Step 2. Divide the numbers by a prime number
Since all three numbers are divisible by 2, we can start with 2. Dividing every number by 2 gives 6, 9, and 12.
To create the ladder, we write 2 on the left side and the results in the next row, as shown below.
Step 3. Continue dividing by prime numbers
Since 6 and 12 are divisible by 2, divide them by 2 again. The number 9 is not divisible by 2. Therefore, bring it down unchanged.
The ladder now becomes:
Since all three numbers (3, 9, and 6) are now divisible by 3, we divide each of them by 3. In this case, we write 3 on the left side of the ladder and the results in the next row. The ladder now becomes:
Since there is no other prime number that divides at least two numbers in the bottom row, we stop.
Step 4. Multiply the numbers in the L shape
To find the LCM, multiply the prime divisors on the left and the remaining numbers in the bottom row, ignoring 1.
That is, LCM(12, 18, 24) = 2 × 2 × 3 × 3 × 2
= 72
Therefore, the Least Common Multiple(LCM) of 12, 18, and 24 is 72.
Want a tool that quickly finds the prime factors using the ladder and factor tree method? Use the prime factorization calculator.
Method 4: Using the Greatest Common Factor (GCF)
Another method for finding the least common multiple of two numbers involves using their greatest common factor (GCF). The greatest common factor is the largest positive integer that divides both numbers without leaving a remainder.
For two positive integers, the LCM can be calculated using the following formula:
Where:
- a and b are the two positive integers.
- GCF(a, b) is their greatest common factor.
Example 3: Find the LCM of 18 and 30 using the GCF method
To find the LCM of 18 and 30 using the greatest common factor method, follow these steps:
Step 1. Find the greatest common factor
We first need to identify the largest positive integer that divides both 18 and 30 without leaving a remainder.
- The factors of 18 are: 1, 2, 3, 6, 9, 18
- The factors of 30 are: 1, 2, 3, 5, 6, 10, 15, 30
The greatest common factor of 18 and 30 is 6.
You can also use the Greatest Common Factor Calculator to find the GCF of two or more numbers.
Step 2. Substitute the values into the LCM formula
Substituting the values into the formula, we get:
= 90
Therefore, the least common multiple of 18 and 30 is 90. In other words, LCM (18, 30) = 90
The GCF method is particularly useful when you already know the greatest common factor of the two numbers.
What Is the Difference Between LCM and GCF?
Although the least common multiple (LCM) and greatest common factor (GCF) are related, they represent different mathematical concepts.
The LCM is the smallest positive integer that is a multiple of all the given numbers, while the GCF is the largest positive integer that divides all the given numbers without leaving a remainder.
When using prime factorization, the main difference is that the GCF uses the lowest powers of the prime factors common to all the numbers, while the LCM uses the highest powers of all the prime factors appearing in any of the numbers.
Where Is the Least Common Multiple Used?
The least common multiple is useful when adding or subtracting fractions with different denominators, solving problems involving repeating events, and finding common intervals.
1. Adding and Subtracting Fractions
One of the most common applications of the LCM is finding the least common denominator (LCD) when adding or subtracting fractions.
For example, suppose we want to add the following fractions:
Since the denominators are different, we first need to find their least common multiple.
The LCM of 4 and 6 is 12. Therefore, the least common denominator is 12.
We can now rewrite both fractions with the same denominator as follows:
Adding the fractions gives:
Therefore,
This is why understanding the LCM is important when working with fractions that have different denominators.
2. Finding When Repeating Events Occur Together
The LCM is also useful when determining when two or more events that repeat at regular intervals will occur together again. For example, suppose two alarms ring at the same time. One rings every 6 minutes, while the other rings every 8 minutes. To determine when both alarms will ring together again, we find the LCM of 6 and 8 as follows.
- Multiples of 6: 6, 12, 18, 24, 30, …
- Multiples of 8: 8, 16, 24, 32, 40, …
The least common multiple is 24. Therefore, both alarms will ring together again after 24 minutes.
Frequently Asked Questions
A Least Common Multiple (LCM) Calculator is an online tool used to find the least common multiple of two or more numbers. Enter the numbers and click Calculate to get the LCM and a step-by-step solution. This calculator also displays factor trees to show how the prime factors are obtained.
To find the LCM of two numbers, list their positive multiples and identify the smallest common multiple. Alternatively, express both numbers as products of prime factors, select the highest power of each distinct prime, and multiply those powers together.
The LCM of 12 and 18 is 36. Using prime factorization, 12 = 2² × 3 and 18 = 2 × 3². Taking the highest powers gives 2² × 3² = 36.
The LCM of 24 and 36 is 72. The prime factorizations are 24 = 2³ × 3 and 36 = 2² × 3². Therefore, LCM = 2³ × 3² = 72.
The LCM of two different prime numbers is their product because they have no common prime factor. For example, the LCM of 5 and 7 is 35.
The LCM of 1 and any positive integer is that integer. For example, LCM(1, 15) = 15. This is because every positive integer is a multiple of 1.
