Least Common Multiple Calculator
Please provide numbers separated by a comma "," and click the "Calculate" button to find the LCM.
What is the Least Common Multiple (LCM)?
In mathematics, the least common multiple, also known as the lowest common multiple of two (or more) integers a and b, is the smallest positive integer that is divisible by both. It is commonly denoted as LCM(a, b).
Brute Force Method
There are multiple ways to find a least common multiple. The most basic is simply using a "brute force" method that lists out each integer's multiples.
18: 18, 36, 54, 72, 90, 108, 126, 144, 162, 180, 198, 216, 234
26: 52, 78, 104, 130, 156, 182, 208, 234
As can be seen, this method can be fairly tedious, and is far from ideal.
Prime Factorization Method
A more systematic way to find the LCM of some given integers is to use prime factorization. Prime factorization involves breaking down each of the numbers being compared into its product of prime numbers. The LCM is then determined by multiplying the highest power of each prime number together. Note that computing the LCM this way, while more efficient than using the "brute force" method, is still limited to smaller numbers. Refer to the example below for clarification on how to use prime factorization to determine the LCM:
21 = 3 × 7
14 = 2 × 7
38 = 2 × 19
The LCM is therefore:
3 × 7 × 2 × 19 = 798
Greatest Common Divisor Method
A third viable method for finding the LCM of some given integers is using the greatest common divisor. This is also frequently referred to as the greatest common factor (GCF), among other names. Given LCM(a, b), the procedure for finding the LCM using GCF is to divide the product of the numbers a and b by their GCF, i.e. (a × b)/GCF(a,b). When trying to determine the LCM of more than two numbers, for example LCM(a, b, c), find the LCM of a and b where the result will be q. Then find the LCM of c and q. The result will be the LCM of all three numbers. Using the previous example:
GCF(14, 38) = 2
GCF(266, 21) = 7
LCM(21, 14, 38) = 798
Note that it is not important which LCM is calculated first as long as all the numbers are used, and the method is followed accurately. Depending on the particular situation, each method has its own merits, and the user can decide which method to pursue at their own discretion.
Frequently Asked Questions
What is the least common multiple (LCM)?
The least common multiple of two or more integers is the smallest positive integer that is divisible by all of them. It is written LCM(a, b): for example, LCM(18, 26) = 234 because 234 is the first number that appears in both the multiples of 18 and the multiples of 26.
How do you find the LCM using the GCF?
Divide the product of the two numbers by their greatest common factor: LCM(a, b) = (a × b) / GCF(a, b). For more than two numbers, work in stages — find the LCM of the first two, then the LCM of that result and the next number, and so on.
How do you find the LCM by prime factorization?
Break each number into its prime factors, then multiply together the highest power of every prime that appears. For 21 = 3 × 7, 14 = 2 × 7, and 38 = 2 × 19, the highest powers are 2, 3, 7, and 19, so the LCM is 2 × 3 × 7 × 19 = 798.
What is the LCM if one of the numbers is 1?
The LCM is simply the other number (or the LCM of the rest), because 1 divides everything and adds no prime factors: LCM(1, 7) = 7.