Skip to main content

Calcu.fit

LCM Calculator: Find the Least Common Multiple

Use this free LCM calculator to find the least common multiple of two or more whole numbers. Enter your numbers, and the calculator shows the LCM along with the steps in three methods: listing multiples, prime factorization, and the GCF formula. It also shows the greatest common factor (GCF) for comparison. No signup needed.

Least Common Multiple Calculator

Enter 2 to 10 positive whole numbers separated by commas, spaces, or new lines.

Calculation Results

Least Common Multiple (LCM) —

Prime Factorization

Listing Multiples

The first common multiple is highlighted.

Step-by-Step Solution

How to Use This LCM Calculator

  1. Enter two or more positive whole numbers, separated by commas or spaces, such as 12, 18 or 15 20 25.
  2. Click Calculate.

You can enter up to 10 numbers. The calculator does not accept decimals or negative numbers. For a decimal problem, multiply every number by a power of 10 first.

What You’ll See in Your Results

  • The LCM of your numbers
  • The GCF (greatest common factor), for comparison
  • Steps for the method you choose: listing multiples, prime factorization, or the GCF formula
  • The prime factors of each number
  • The first few multiples of each number, with the common one highlighted

What Is the Least Common Multiple?

A multiple of a number is what you get when you multiply it by 1, 2, 3, and so on. The multiples of 4 are 4, 8, 12, 16, 20, 24, …

A common multiple of two numbers is a number that is a multiple of both. The least common multiple (LCM) is the smallest positive common multiple.

For 4 and 6:

  • Multiples of 4: 4, 8, 12, 16, 20, 24, 28, …
  • Multiples of 6: 6, 12, 18, 24, 30, 36, …
  • Common multiples: 12, 24, 36, …
  • The least common multiple is 12.

The LCM is also called the lowest common multiple or the smallest common multiple.

LCM Formulas and Methods

Method 1: List the Multiples

Write the multiples of each number until you find the first one they share.

Method 2: Prime Factorization

  1. Write each number as a product of prime factors.
  2. For each prime, take the highest power that appears in any number.
  3. Multiply those together.

Method 3: The GCF Formula (for Two Numbers)

LCM(a, b) = (a × b) ÷ GCF(a, b)

Equivalently, GCF(a, b) × LCM(a, b) = a × b.

For more than two numbers, find the LCM of the first two, then find the LCM of that result and the next number, and so on.

Method 4: The Ladder (Division) Method

  1. Write the numbers in a row.
  2. Divide by a prime that divides at least two of them. Write the quotients below, and bring down any number the prime does not divide.
  3. Repeat until no prime divides two or more numbers.
  4. Multiply all the primes on the side and the numbers left at the bottom.

LCM Calculator Examples

Example 1: Listing Multiples (4 and 6)

  • Multiples of 4: 4, 8, 12, 16, …
  • Multiples of 6: 6, 12, 18, …
  • LCM = 12

Example 2: Prime Factorization (12 and 18)

  • 12 = 2² × 3
  • 18 = 2 × 3²
  • Highest powers: 2² and 3²
  • LCM = 2² × 3² = 4 × 9 = 36

Example 3: The GCF Formula (8 and 12)

  • GCF(8, 12) = 4
  • LCM = (8 × 12) ÷ 4 = 96 ÷ 4 = 24

Example 4: Three Numbers (15, 20, 25)

  • 15 = 3 × 5
  • 20 = 2² × 5
  • 25 = 5²
  • Highest powers: 2², 3, and 5²
  • LCM = 4 × 3 × 25 = 300

Example 5: Two Numbers with No Common Factors (3 and 5)

When two numbers share no common factor (they are coprime), the LCM is their product.

  • LCM(3, 5) = 3 × 5 = 15
  • LCM(17, 19) = 323

Example 6: One Number Is a Multiple of the Other (9 and 27)

  • LCM(9, 27) = 27

If a is a factor of b, then LCM(a, b) = b.

Example 7: Three Even Numbers (6, 8, 10)

  • 6 = 2 × 3
  • 8 = 2³
  • 10 = 2 × 5
  • LCM = 2³ × 3 × 5 = 120

Example 8: Larger Numbers (84 and 90)

  • 84 = 2² × 3 × 7
  • 90 = 2 × 3² × 5
  • LCM = 2² × 3² × 5 × 7 = 1,260
  • Check with the GCF formula: GCF = 6, so (84 × 90) ÷ 6 = 7,560 ÷ 6 = 1,260

Example 9: The Ladder Method (12, 18, 30)

Divide by 2: (6, 9, 15). Divide by 3: (2, 3, 5). No prime divides two of them.

  • LCM = 2 × 3 × 2 × 3 × 5 = 180

Example 10: The LCM and the GCF Together (12 and 18)

  • GCF = 6, and LCM = 36
  • GCF × LCM = 6 × 36 = 216 = 12 × 18

Example 11: Adding Fractions

Add 1/4 + 1/6. The least common denominator is the LCM of 4 and 6, which is 12.

  • 1/4 = 3/12, and 1/6 = 2/12
  • Sum = 5/12

Example 12: Buses

One bus leaves every 12 minutes, and another leaves every 15 minutes. They both leave at 8:00 a.m. When do they next leave together?

  • LCM(12, 15) = 60 minutes
  • They next leave together at 9:00 a.m.

Example 13: Gears

Two gears have 24 and 36 teeth. After how many teeth do they return to the same starting position?

  • LCM(24, 36) = 72 teeth
  • The first gear turns 72 ÷ 24 = 3 times, and the second turns 72 ÷ 36 = 2 times.

Example 14: Repeating Tasks

One task is done every 4 days, and another every 6 days, starting on day 0.

  • LCM(4, 6) = 12
  • They coincide every 12 days.

Example 15: The LCM of 1 to 10

LCM(1, 2, …, 10) = 2,520. This is the smallest number that all of 1 to 10 divide evenly. (For 1 to 20, it is 232,792,560.)

LCM of Common Pairs

NumbersLCM
2, 36
3, 412
4, 520
4, 612
5, 630
6, 824
6, 918
8, 1224
9, 1236
10, 1530
12, 1560
14, 2142
16, 2448
20, 3060

LCM vs. GCF

 LCM (least common multiple)GCF (greatest common factor)
What it isThe smallest number that both numbers divide intoThe largest number that divides both numbers
SizeAt least as large as the bigger numberAt most as large as the smaller number
Used forCommon denominators, schedules, and repeating cyclesSimplifying fractions and splitting into equal groups
Example (12, 18)366

The two are linked: GCF × LCM = a × b for two numbers.

Properties of the LCM

  • The LCM of two numbers is always greater than or equal to the larger number.
  • If two numbers are coprime, their LCM is their product.
  • If one number divides the other, the LCM is the larger number.
  • LCM(a, b) = LCM(b, a). The order does not matter.
  • The LCM of a number and 1 is the number itself.
  • Every common multiple is a multiple of the LCM.
  • By convention, the LCM involving 0 is 0, and most calculators work only with positive numbers.

Where the LCM Is Used

  • Fractions: finding the least common denominator for addition and subtraction
  • Schedules and repeating events: buses, shifts, and maintenance cycles
  • Gears and cycles: when patterns line up
  • Tiling and patterns: matching lengths
  • Computer science: scheduling and cycles
  • School math: number theory and algebra

Common Mistakes

  • Confusing the LCM with the GCF. The LCM is bigger (or equal), and the GCF is smaller (or equal).
  • Taking the lowest powers of the primes. For the LCM, take the highest powers. For the GCF, take the lowest powers of only the shared primes.
  • Stopping at the first common multiple you see. Make sure it is the smallest.
  • Just multiplying the numbers. This gives a common multiple, but not always the least one. For 4 and 6, 24 is a common multiple, but the LCM is 12.
  • Forgetting a prime. A prime that is in only one number still goes into the LCM.
  • Mixing up factors and multiples. Factors divide a number, and multiples are the number times something.

Tips for Using an LCM Calculator

  • Use the prime factorization method for large numbers, as listing multiples gets long.
  • Check that your answer is divisible by every number in your set.
  • Use the GCF formula when you already know the GCF.
  • For fractions, use the LCM of the denominators as the common denominator.
  • For word problems, ask: “When will these repeat together?” That is an LCM problem.
  • If you want the GCF, see our GCF Calculator.

LCM Calculator vs. Other Tools

  • GCF Calculator: the greatest common factor of two or more numbers.
  • Fraction Calculator: add, subtract, multiply, and divide fractions.
  • Ratio Calculator: simplify and scale ratios.
  • Scientific Calculator: powers, roots, and logs.
  • Percentage Calculator: percent of a number and percent change.

Frequently Asked Questions (FAQ)

What is the least common multiple (LCM)?

The smallest positive number that is a multiple of every number in your set. The LCM of 4 and 6 is 12.

 List the multiples of each number until you find the first match, or use prime factorization, or use LCM = (a × b) ÷ GCF. For 12 and 18, the LCM is 36.

Write each number as a product of primes, take the highest power of each prime that appears, and multiply. For 12 = 2² × 3 and 18 = 2 × 3², the LCM is 2² × 3² = 36.

Find the LCM of two of them, then find the LCM of that result and the third. For 15, 20, and 25, the LCM is 300.

LCM(a, b) = (a × b) ÷ GCF(a, b).

Their product, since they share no common factors. LCM(3, 5) = 15.

 The multiple. For example, LCM(9, 27) = 27.

The LCM is the smallest common multiple, and the GCF is the largest common factor. For 12 and 18, the LCM is 36 and the GCF is 6.

 Find the LCM of the denominators and use it as the common denominator. For 1/4 + 1/6, the LCM of 4 and 6 is 12, so 3/12 + 2/12 = 5/12.

It is the LCM of the denominators of the fractions.

By convention it is 0, but most calculators and textbooks only use positive whole numbers.

Yes. It is free, with no registration and no limits.

It uses exact integer arithmetic, so the answer is exact, even for large numbers.

Disclaimer

This calculator is for general and educational use. Results are exact for positive whole numbers. Try the problem by hand first and use the calculator to check your work. Follow your teacher’s rules on the method and the form of the answer.