LCM Calculator

By Harmain Manzoor · Reviewed by Fahad Ullah

MathArithmetic & Basic Math·Last updated August 7, 2026
LCM Calculator banner with chalkboard math equations background, offering free quick LCM calculation
Calculate LCM quickly and accurately.

This calculator finds the least common multiple, or LCM, for any set of whole numbers you enter. Type in two or more numbers, press calculate, and you get the answer along with the steps used to reach it. Students checking homework, teachers putting together an example, and anyone working out a real scheduling or measurement problem can all use it the same way.

What Is the Least Common Multiple (LCM) of a Set of Numbers?

The least common multiple, also called the lowest common multiple, is the smallest positive number that every number in a group divides into evenly, with nothing left over. Take 4 and 6 as an example. Both numbers divide evenly into 12, and no smaller number works for both, so 12 is the LCM of 4 and 6.

What Are the Methods Used to Calculate the LCM?

There is more than one way to reach the same answer, and this calculator can work through any of the three approaches below. Knowing what happens behind the result makes it easier to check the work by hand or to match whatever method a class is using.

Method

What It Involves

Best For

Listing multiples

Write out the multiples of each number until one shows up on every list

Two small numbers

Prime factorization

Break each number into its prime factors, then multiply the highest power of every prime that appears

Larger numbers or homework asking for factor form

Division (ladder) method

Divide the whole set by shared primes step by step until nothing divides evenly anymore

Three or more numbers at once

The next three sections walk through each one with a worked example.

How Do You Find the LCM by Listing Multiples?

Take 4 and 5. List out the multiples of each and look for the first number that appears on both lists.

● Multiples of 4: 4, 8, 12, 16, 20

● Multiples of 5: 5, 10, 15, 20

20 is the first number on both lists, so the LCM of 4 and 5 is 20. This works fine for small numbers, but once the numbers get bigger or there are more than two of them, listing multiples by hand gets slow and it is easy to miss the match. That is usually where the other two methods take over.

How Do You Find the LCM Using Prime Factorization?

Break each number down into its prime factors, write them in exponent form, then multiply the highest power of every prime that shows up across the numbers. Here it is worked out for 12 and 18.

● 12 = 2² × 3

● 18 = 2 × 3²

Taking the highest power of each prime gives 2² × 3² = 36, so the LCM of 12 and 18 is 36. This is the method most textbooks lean on, since it also shows the full factor breakdown instead of just handing over a final number.

How Do You Find the LCM Using the Division (Ladder) Method?

Line the numbers up and divide the whole row by a prime that goes into at least one of them, carrying down any number it does not divide evenly. Repeat with the next prime until every number in the row has been reduced to 1, then multiply all the divisors used. Here it is worked out for 4, 6, and 8.

Divide by

4

6

8

2

2

3

4

2

1

3

2

2

1

3

1

3

1

1

1

Multiplying the divisors used (2 × 2 × 2 × 3) gives 24, which is the LCM of 4, 6, and 8. This method is usually the fastest by hand once there are three or more numbers to work through, which is why the calculator relies on it internally for bigger sets.

How Do You Find the LCM of Three or More Numbers?

Every method above extends to three or more numbers, though prime factorization or the ladder method tends to be the more practical choice once the list grows. The example above already showed this for 4, 6, and 8, landing on an LCM of 24. A common mistake is finding the LCM of just the first two numbers in the set and treating that as the final answer. Every number in the set has to be checked against the result before it is complete.

What Is the Relationship Between the LCM and the GCF?

For two numbers, the LCM and the greatest common factor are connected by a simple formula: LCM(a, b) × GCF(a, b) = a × b. Take 8 and 12. Their GCF is 4, so the LCM works out to (8 × 12) ÷ 4, which is 24. This is a handy way to check a result by hand once the GCF is already known, though it is worth noting this shortcut applies cleanly to two numbers at a time, not to a longer list.

What Is the Difference Between LCM and GCF?

The two terms get mixed up often, but they answer opposite questions. One finds the smallest shared multiple, the other finds the largest shared factor.

 

LCM

GCF

Finds

The smallest number both numbers divide into

The largest number that divides both numbers

Used for

Combining or syncing things, like schedules or denominators

Splitting or reducing things, like simplifying a fraction

Example (8 and 12)

24

4

How Do You Find the LCM of Fractions?

Finding the LCM of a set of fractions is a different question from finding a common denominator for them. It is done by taking the LCM of the numerators and dividing it by the GCF of the denominators. For 2/3 and 4/9, the LCM of the numerators 2 and 4 is 4, and the GCF of the denominators 3 and 9 is 3, so the LCM of the two fractions is 4/3.

What Common Mistakes Happen When Calculating the LCM?

● Mixing up LCM with GCF, and grabbing the smaller or larger result by habit instead of checking which one the problem actually calls for

● Missing a repeated prime factor, which quietly produces an LCM that is too small

● Stopping the listing method too early, before a true shared multiple has actually shown up on every list

● Applying the two-number LCM × GCF formula to a set of three or more numbers, where it no longer holds

How Does the LCM Connect to Other Common Denominator and Factor Calculations?

The same set of numbers used to find an LCM often comes up again elsewhere, whether that is reducing a fraction, breaking a number into its prime factors, or scaling a ratio. The four sections below cover where each of those calculations fits alongside the LCM and link to the right tool for each one.

When Should You Use the GCF Calculator Instead of the LCM Calculator?

The choice usually comes down to what the problem is asking for. Reach for GCF when the task is about splitting, reducing, or dividing things evenly, such as simplifying a fraction. Reach for LCM when the task is about combining, syncing, or scheduling, such as lining up two repeating events. The GCF calculator uses the same LCM × GCF = a × b relationship covered earlier, so switching between the two tools for the same pair of numbers is a useful way to double check either result.

How Does the LCM Help When Adding or Subtracting Fractions?

Fractions with different denominators cannot be added or subtracted directly. Finding the LCM of the denominators gives the least common denominator, which lets every fraction in the problem be rewritten over the same base before combining them. For example, 1/4 and 1/6 share an LCM of 12, so both fractions get rewritten as 3/12 and 2/12 before adding. The fraction calculator carries this through the full addition or subtraction, rewriting each fraction and combining them in one step.

How Does Prime Factorization Support the LCM Calculation?

The prime factorization method covered earlier on this page produces the same breakdown a dedicated factorization tool would give. Having that breakdown on hand makes both the LCM and the GCF faster to work out by hand, especially with larger numbers. The prime factorization calculator is useful when only that breakdown step is needed on its own, separate from the LCM.

How Is the LCM Used With Ratios and Scaling?

Comparing two ratios or converting them to whole numbers on a shared scale relies on the same shared-multiple logic behind the LCM. Scaling 2:3 and 3:4 onto a common base, for instance, uses the LCM of 3 and 4 to line both ratios up. The ratio calculator handles that scaling directly for any pair of ratios.

Frequently Asked Questions

What is the LCM of 4 and 6?

The LCM of 4 and 6 is 12, the smallest number that both 4 and 6 divide into evenly.

Is the LCM the same as the LCD?

Yes, when it is applied to the denominators of a set of fractions, the LCM is called the least common denominator, or LCD.

Can the LCM of two numbers be one of the numbers itself?

Yes, this happens whenever one number is already a multiple of the other. For example, the LCM of 4 and 8 is 8.

What is the LCM of two prime numbers?

The LCM of two different prime numbers is always their product, since primes share no common factors. The LCM of 5 and 7, for instance, is 35.

Why is the LCM used in real-life scheduling problems?

It finds when two repeating cycles next line up. If one event repeats every 4 days and another every 6 days, the LCM of 4 and 6 shows they will next fall on the same day after 12 days.


Leave Your Feedback

Help us improve this calculator

Rating

Recent Feedback

No feedback yet.