Least Common Multiple Calculator
Find the least common multiple of two or more numbers and see exactly how each step works.
Try an LCM example to see the steps
An LCM Calculator helps you find the least common multiple of numbers such as \(12\), \(18\), and \(30\). It can also show the steps so you can see why the answer works, not just copy a result.
How to Use the LCM Calculator
Add Your Numbers
Enter two or more whole numbers in Calculator or Math Input, such as \(12, 18, 30\). You can also use Canvas to write an LCM problem by hand or upload a clear photo.
Choose Your Output
Step-by-step answers are the default. You can also choose Explain Like I’m 10, Create Practice Test, Create Study Guide, Create Flashcards, or Find My Mistake if you want help with your own work.
Choose a Language
Use the language dropdown labeled “Default” if you want the explanation shown in another available language.
Get the Result
Select Solve to submit your problem and receive the explanation or study output you chose.
How to Find the Least Common Multiple
The best method depends on the numbers you have. Listing multiples works well for small values, while prime factorization or the ladder method is usually clearer for larger numbers or several inputs.
List Multiples for Small Numbers
A multiple is what you get when you multiply a number by whole numbers. For example, the multiples of \(6\) are \(6, 12, 18, 24\), and so on.
For small numbers, list multiples until you spot the first one both numbers share:
\[ \text{Multiples of }4: 4, 8, 12, 16, 20, 24, \dots \]
\[ \text{Multiples of }6: 6, 12, 18, 24, \dots \]
The first shared multiple is \(12\), so:
\[ \operatorname{LCM}(4,6)=12 \]
This approach becomes slow with large numbers or three or more numbers. In those cases, use factors instead of writing long lists.
Use Prime Factorization
Prime factorization is one of the most dependable hand methods for larger values. Break each number into prime factors, keep every prime that appears, and use the greatest exponent needed for each one.
For \(12\) and \(18\):
\[ 12=2^2 \times 3 \]
\[ 18=2 \times 3^2 \]
The LCM needs two factors of \(2\) and two factors of \(3\):
\[ \operatorname{LCM}(12,18)=2^2 \times 3^2=36 \]
Use the highest exponent because the final number must contain enough prime factors for every original number to divide evenly into it. You are not multiplying all factors blindly; repeated shared factors should appear only as many times as necessary.
Use the Ladder Method for Several Numbers
The ladder method, also called the division method, is especially handy when finding the LCM of three or more numbers. Divide any numbers that share a prime divisor, then bring down numbers that do not divide evenly.
For \(12\), \(18\), and \(30\):
\[ \begin{array}{r|ccc} 2 & 12 & 18 & 30 \\ 3 & 6 & 9 & 15 \\ 2 & 2 & 3 & 5 \end{array} \]
The remaining values \(2\), \(3\), and \(5\) are prime. Multiply them with the divisors already used:
\[ 2 \times 3 \times 2 \times 3 \times 5=180 \]
A divisor only needs to divide at least one number in a row. Numbers that do not divide evenly are brought down unchanged.
\[ \operatorname{LCM}(12,18,30)=180 \]
You do not have to use the same method every time. The calculator can provide solution steps based on the problem you enter.
Understanding Least Common Multiple
The least common multiple is the smallest positive number in the multiplication patterns of all the given numbers. “Lowest common multiple” means exactly the same thing. For example, \(12\) is the first positive number that appears in both the multiples of \(4\) and the multiples of \(6\).
LCM and GCF answer different questions. The LCM is a shared multiple, while the GCF is the greatest shared factor. If you are comparing those two ideas, theGCF Calculatorcan help you find the greatest common factor.
LCM also helps with fractions. The LCM of the denominators becomes a least common denominator, making it possible to add or subtract fractions with unlike denominators. For two nonzero whole numbers, you can also check your work with:
\[ \operatorname{LCM}(a,b)=\frac{|a \times b|}{\operatorname{GCF}(a,b)} \]
LCM is usually used with positive whole numbers. Negative signs do not change the positive LCM of nonzero integers, while decimals usually need to be rewritten as fractions or whole-number equivalents first. Zero needs special handling, so check how it is formatted before relying on a calculator result.
Worked Example
Find:
\[ \operatorname{LCM}(12,18,30) \]
Factor each number into primes.
\[ 12=2^2 \times 3 \]
\[ 18=2 \times 3^2 \]
\[ 30=2 \times 3 \times 5 \]
Prime factors show the building blocks needed for each number.
Identify every prime factor that appears.
\[ 2,\ 3,\ 5 \]
Each of these primes must appear in the LCM.
Choose the highest power needed for each prime.
\[ 2^2,\ 3^2,\ 5 \]
The \(2^2\) comes from \(12\), and the \(3^2\) comes from \(18\).
Multiply the selected factors.
\[ 2^2 \times 3^2 \times 5=4 \times 9 \times 5=180 \]
This gives the smallest number containing enough factors for all three inputs.
Verify that each original number divides evenly into \(180\).
\[ 180 \div 12=15,\quad 180 \div 18=10,\quad 180 \div 30=6 \]
Each quotient is a whole number, so \(180\) is a common multiple. Since we included only the greatest needed prime powers, it is the least one.
\[ \boxed{\operatorname{LCM}(12,18,30)=180} \]
After you are comfortable with numerical LCM problems, you canexplore more Basic Math tools.
LCM and Fractions
LCM helps you create a common denominator before adding or subtracting unlike fractions. For example:
\[ \frac{1}{6}+\frac{1}{8} \]
First, find the LCM of the denominators:
\[ \operatorname{LCM}(6,8)=24 \]
Rewrite both fractions with denominator \(24\):
\[ \frac{1}{6}=\frac{4}{24} \]
\[ \frac{1}{8}=\frac{3}{24} \]
Then add:
\[ \frac{1}{6}+\frac{1}{8}=\frac{7}{24} \]
After finding a common denominator, use theFraction Calculatorto work with the fraction operation itself.
Common Mistakes
Multiplying every number without removing repeated factors
A student may calculate \(12 \times 18\) and assume the result is the LCM. That product is a common multiple, but shared prime factors were counted more than needed. Keep each prime factor only to its greatest required power.
Choosing a common multiple that is not the smallest
For \(4\) and \(6\), \(24\) is a shared multiple, but it is not the LCM. This mistake happens when students stop at a number that works instead of the first one that works. The LCM must be the smallest positive shared multiple.
Using the lowest exponent instead of the highest exponent
A student may choose \(2^1\) for \(12=2^2 \times 3\) and \(18=2 \times 3^2\). That leaves too few factors of \(2\) for \(12\) to divide evenly. Use the highest exponent seen for every prime.
Confusing LCM with GCF
Students sometimes look for a number that divides both inputs instead of a number both inputs divide into. That happens because factors and multiples sound similar. LCM looks for a shared multiple; GCF looks for the largest shared factor.
Dividing incorrectly in the ladder method
A student may divide a number that is not evenly divisible or forget to bring it down. The ladder method works only when you divide eligible numbers exactly. Keep other numbers unchanged in that row.
Related Calculators
Questions Students Ask About LCM
What is an LCM?
+The least common multiple is the smallest positive multiple shared by two or more numbers. For \(4\) and \(6\), the LCM is \(12\) because both numbers divide evenly into \(12\).
What is the difference between LCM and GCF?
+LCM is the smallest shared multiple, while GCF is the greatest shared factor. For \(12\) and \(18\), the LCM is \(36\), but the GCF is \(6\). Use GCF when you need the greatest factor shared by the numbers.
How do I find the LCM of two numbers?
+For small numbers, list multiples until you find the first match. For larger values, factor both numbers into primes and multiply each prime raised to its highest needed exponent.
How do I find the LCM of three numbers?
+Factor all three numbers, then include every prime factor that appears. Use the greatest exponent of each prime found in any of the three factorizations.
What is the ladder method for LCM?
+The ladder method divides two or more numbers by prime numbers in rows. Divide numbers that are evenly divisible, bring down the others unchanged, and multiply the divisors and final remaining values.
Why do I use the highest exponent in prime factorization?
+The LCM needs enough copies of every prime factor to include each original number as a factor. A lower exponent may make the final result too small for one of the numbers to divide evenly.
How is LCM used with fractions?
+The LCM of the denominators gives a least common denominator. That lets you rewrite unlike fractions with matching denominators before adding or subtracting them.
Is “least common factor” the same as LCM?
+No. “Least common factor” is usually a terminology mistake because positive whole numbers commonly share \(1\) as a factor. LCM means least common multiple, which is a number that each input divides into evenly.