# Least Common Multiple Calculator

Our least common multiple calculator will be a valuable help in your math homework: you can find the least common multiple of large sets of numbers in the blink of an eye and even see how we found it step-by-step. Keep reading this short article to learn:

**What is the least common multiple**?**How to calculate the least common multiple**?

Three algorithms for this quantity;

and much more: the situations when we can't calculate it, how to deal with negative numbers, and so on.

## What is the least common multiple?

The **least common multiple** of a set of numbers is the **smallest possible integer** that is a **multiple** to each of the numbers in the set. What is a multiple of a number? A multiple is the result of the multiplication of the number by another integer. For example, the multiples of $4$ are $4$ ($4\times1$), $8$ ($4\times2$), $12$ ($4\times3$), $16$ ($4\times4$), etc.

The least common multiple is defined to be a **positive number**, so feel free to ignore eventual negative signs in your calculations.

## How do I calculate the least common multiple?

You can calculate the least common multiple in many ways. Among them:

- Using the
**greatest common divisor**; - Using the
**prime factorization**; and - The
**table method**.

#### Calculate the least common multiple using the greatest common divisor

This is the most straightforward way to calculate the least common multiple. Take any set of numbers, and follow these steps:

- Multiply all the numbers in the set, and take the absolute value of the result.
- Divide the product by the
**greatest common divisor**. - The result is the least common multiple. Notice that the result is always an integer by definition of the quantities involved.

Let's see the mathematical formulation of this method for a set $\{a,b\}$:

Notice that you can even make this procedure more manageable by taking apart one of the numbers at a time:

Each of the numbers in this formula is at most equal to the least common multiple. If the set has more than three elements, simply apply this algorithm to an arbitrary pair in the set, and substitute the two numbers with the result. Apply the algorithm to the resulting set again until you are left with two numbers only.

🙋 There are many ways to calculate the greatest common divisor: we explored the most important of them in our dedicated tool, the greatest common divisor calculator.

#### Find the least common multiple using the prime factorization

You can find the least common multiple in a safe yet time-consuming way: follow these steps:

- Find the
**prime factorization**of all numbers in the set. - Identify all the factors appearing in the factorizations, and if repeated, choose the highest exponent.
- Multiply the factors elevated to the chosen exponents to find the least common multiple.

Finding the prime factorization is not an easy task, and it's better to leave it to algorithms like the one we implemented in the prime factorization calculator.

#### Find the least common multiple with the table method

This is another time-consuming method, but at least it doesn't require you to calculate the prime factorization.

- List all numbers vertically.
**Try**to divide the numbers by $2$ (the first proper prime number).- If $2$ divides a number, write the result in a new column.
- If $2$ doesn't divide a number, write the number unchanged in the new column.

- Repeat the step 2., and try to divide again by $2$. Keep trying until
**no numbers**can be divided by $2$. **Try**to divide by $3$, and repeat the method seen in the step 2.- Proceed with all prime numbers in increasing order.
- The algorithm stops when a prime number can't divide any numbers in a column, and all the numbers are $1$.

The least common multiple is the product of all the numbers that divided at least one of the numbers in the columns.

Here is an example for the set $\{14,25,12,6,24\}$:

The result is $2\times2\times2\times3\times5\times5\times7 = 4200$

## What are the applications of the least common multiple?

The least common multiple finds many applications. The most common one, however, rarely sees us even identifying it! We regularly use the least common multiple when **summing fractions**. The new denominator we use when we start summing (before eventually simplifying the result) is the **least common multiple of the denominators!**

Engineers use the least common multiple to understand the behavior of **toothed gears**. Since the teeth are in a 1-to-1 relationship, the least common multiple between the number of teeth of two contiguous gears is connected to the number of rotations that each gear has to complete before returning to the original position in relation to the other gear.

## Other tools related to the least common multiple

We analyzed the least common multiple under... multiple angles: visit our other tools!

- The LCM calculator;
- The common multiple calculator; and
- The least common factor calculator.

## FAQ

### What is the least common multiple of 0 and any other number?

There are two possible interpretations of this problem:

- The least common multiple of any number and 0 is
**undefined**as division by zero is undefined. - The least common multiple of any number and 0 is
**0**since 0 is an integer number that satisfies the definition of the least common multiple.

When summing fractions, the first choice is the only one making sense, but in other fields, you may find it helpful to use **0** as a result.

### How do I calculate the least common multiple using the GCD?

To calculate the least common multiple of a set of numbers using the greatest common divisor, follow these simple steps:

- Compute the absolute value of the product of all the numbers in the set.
- Divide the result by the greatest common divisor of the numbers in the set.
- The result is the least common multiple.

You can also compute the product of all but one of the numbers and multiply the result of the division as the last stage. The result will be the same, but no quantity will pass the least common multiple.

### What is the least common multiple of 12, 16, and 21?

The least common multiple of 12, 16, and 21 is 336. To find the result, follow these steps:

- Find the
**prime factorization**of each number:**12 = 2 × 2 × 3**;**16 = 2 × 2 × 2 × 2**; and**21 = 3 × 7**.

- Identify all factors in the factorizations:
**2**,**3**, and**7**. - Select the
**highest exponent**with which each of them appears:**2**,^{4}**3**, and**7**. - Multiply all these factors to find the least common multiple:
**lcm(12,16,21) = 2**.^{4}× 3 × 7 = 336