LCM Calculator, Find the Least Common Multiple of Any Numbers

Instantly find the LCM of 2 or more numbers — 5 methods, full steps, fraction LCD & bulk mode

▸ Listing Multiples ▸ Prime Factorization ▸ Cake / Ladder ▸ GCF Method ▸ LCD Finder ▸ Bulk Mode
Enter Numbers
LCM Result
GCF (bonus)
Relationship
🔢 First Common Multiple
Numbers
Choose Method
LCM
Method
📋 Step-by-Step Solution
🎂
Cake / Ladder Method (also called Upside-Down Division) — divide all numbers by shared primes simultaneously, layer by layer. Most competitors don’t show this interactively!
Numbers
LCM
Prime divisors used
🎂 Cake / Ladder Diagram
Enter Fractions (up to 4)
💡 The LCD (Least Common Denominator) is the LCM of all denominators — it lets you add or subtract unlike fractions.
+
+
Result — Fractions with Common Denominator
LCD (LCM of Denominators)
Equivalent Fractions
📋 Step-by-Step LCD Solution
Paste Numbers
💡 Separate numbers with commas, spaces, or new lines — supports 2 to 50+ numbers.
LCM of all
Numbers parsed
GCF (bonus)
🔢 Prime Factorizations

What Is the Least Common Multiple (LCM)?

The Least Common Multiple (LCM) — also called Lowest Common Multiple (LCM) or Least Common Divisor (LCD) — is the smallest positive integer that is divisible by two or more given integers without leaving a remainder.

Example: LCM(4, 6) = 12, because 12 is the smallest number that both 4 and 6 divide into evenly.

📋
Listing Multiples
List multiples of each number and find the first one they all share. Simple but slow for large numbers.
🔢
Prime Factorization
Break each number into prime factors and multiply each prime at its highest power. Works for any size.
🎂
Cake / Ladder Method
Divide all numbers simultaneously by shared primes layer by layer. Multiply the left column and final row.
🔗
GCF Method
Use the relationship LCM(a,b) = (a×b) / GCF(a,b). Chain for 3+ numbers. Fast and elegant.
½
LCD for Fractions
The Least Common Denominator is the LCM of all denominators — essential for adding unlike fractions.

Key Formulas

LCM(a, b) = (a × b) / GCF(a, b)
LCM(a, b) × GCF(a, b) = a × b
For 3+ numbers: LCM(a, b, c) = LCM(LCM(a, b), c)

Properties of LCM

  • LCM(a, b) = LCM(b, a) — order doesn’t matter (commutative)
  • LCM(a, a) = a — LCM of a number with itself is that number
  • LCM(a, 1) = a — LCM with 1 is always the other number
  • If a divides b, then LCM(a, b) = b
  • LCM of co-prime numbers equals their product

Real-World Uses

  • Adding/subtracting fractions — find the LCD to create a common denominator
  • Scheduling repeating events — when will two periodic events coincide again?
  • Gear ratios & cyclic patterns in engineering and music theory
  • Tiling problems — when fitting tiles of different sizes into a space
  • Computer science — synchronization, memory alignment, hash tables

LCM vs GCF

LCM finds the smallest common multiple; GCF finds the largest common factor. They are complementary and linked by the formula LCM × GCF = a × b (for two numbers).

LCM tends to be large. GCF tends to be small.

Also Known As

LCM · LCD · LCF · Lowest Common Multiple · Least Common Divisor · Smallest Common Multiple

Finding the least common multiple by hand means long lists and slow division. This LCM calculator page covers every method with clear steps, so you spend less time on mechanics and more on understanding.

Whether you need the LCM for fractions, scheduling, or algebra, this guide gives you the tools to do it fast.

What Is the Least Common Multiple (LCM)?

The least common multiple of a set of numbers is the smallest positive integer that all numbers in the set divide evenly. It is also called the lowest common multiple, least common divisor, or LCD when used with fractions.

For example, the LCM of 4 and 6 is 12. Both 4 and 6 divide into 12 without a remainder.

A few basic properties to keep in mind:

  • LCM(a, 1) = a. Every number’s LCM with 1 is itself.
  • LCM(a, a) = a. A number’s LCM with itself is that number.
  • LCM is always a positive number. Zero is never a valid result.
  • A multiple of a number is its product with any positive integer.

The definition of LCM is simple. Execution depends on how large your numbers are and which method you use.

LCM vs GCF: What Is the Difference?

LCM and GCF solve opposite problems. LCM finds the smallest shared multiple. GCF finds the largest shared factor. Both values come from the same two numbers, and they are directly connected.

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

Take 12 and 18 as an example. Their LCM is 36. Their GCF is 6.

36 × 6 = 12 × 18 = 216 ✓

If you already have the GCF, you can calculate the LCM directly from that formula. Use our GCF calculator to find the greatest common factor first, then plug it in.

When two numbers share no common factors, their GCF equals 1. Numbers like this are called co-prime or relatively prime. For co-prime numbers, LCM equals their product directly.

Quick rule: GCF(7, 11) = 1, so LCM(7, 11) = 7 × 11 = 77.

How to Calculate LCM: 4 Methods Explained

There is no single best method for all situations. Pick based on the size of your numbers and how many you have.

Listing Multiples Method

Write out the multiples of each number in order. Keep going until one multiple appears in every list. That number is the LCM.

Example: Find the LCM of 6 and 9

Multiples of 6: 6, 12, 18, 24…

Multiples of 9: 9, 18, 27…

LCM(6, 9) = 18

This method works for small numbers, roughly under 20. Anything larger becomes slow and error-prone. The prime factorization method is faster for bigger numbers.

Prime Factorization Method

Break each number into prime factors. Write them in exponent form. Take the highest power of every prime that appears across all numbers. Multiply those together.

Example: Find the LCM of 8 and 12

8 = 2³

12 = 2² × 3

Highest powers: 2³ and 3¹

LCM = 2³ × 3 = 8 × 3

LCM(8, 12) = 24

This method scales to any size number. It is the most widely taught approach in middle and high school math.

GCF Method (Formula Method)

Use the formula: LCM(a, b) = (a × b) / GCF(a, b). Find the GCF first, divide the product by it, and you have the LCM.

Example: Find the LCM of 4 and 10

GCF(4, 10) = 2

LCM = (4 × 10) / 2 = 40 / 2

LCM(4, 10) = 20

For three or more numbers, chain the formula. Find the LCM of the first two. Then use that result with the third number.

Example: LCM of 4, 6, and 10

Step 1: LCM(4, 6) = 12

Step 2: LCM(12, 10) = (12 × 10) / GCF(12, 10) = 120 / 2

LCM(4, 6, 10) = 60

Cake / Ladder Method (Upside-Down Division)

Write all numbers side by side under a horizontal bar. Divide all of them by a shared prime. Write the results below. Repeat until no two numbers share a prime factor. Multiply every divisor on the left side together with the remaining numbers in the bottom row.

Example: Find the LCM of 12 and 18

Divide both by 2: 12 → 6, 18 → 9

Divide both by 3: 6 → 2, 9 → 3

Divide both by 3: 2 stays, 3 → 1

Divide remaining by 2: 2 → 1

Left column: 2 × 3 × 3 × 2 = 36

LCM(12, 18) = 36

This method is also called upside-down division. It is especially popular for three or more numbers because you divide them all at once.

LCM Formula and Key Properties

The core formula links LCM directly to GCF. Knowing one lets you calculate the other.

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

For three or more numbers, extend the formula by chaining.

LCM(a, b, c) = LCM(LCM(a, b), c)

Key properties worth knowing:

  • Commutative: LCM(a, b) = LCM(b, a). Order does not change the result.
  • Associative: You can pair any two numbers first and get the same final answer.
  • Identity: LCM(a, 1) = a. Any number’s LCM with 1 is itself.
  • Zero property: LCM(0, a) = 0 for any integer a.
  • Same number: LCM(a, a) = a. Always.

Two prime numbers always have an LCM equal to their product. LCM(7, 11) = 77, because primes share no common factors. GCF = 1, so LCM = a × b.

How to Find the LCM of Fractions

Finding the LCM of fractions is not the same as finding the LCD. The fraction LCM uses both numerators and denominators separately.

LCM of fractions = LCM of numerators / GCF of denominators
Example: Find the LCM of 2/3 and 3/5

LCM of numerators: LCM(2, 3) = 6

GCF of denominators: GCF(3, 5) = 1

LCM = 6 / 1

LCM(2/3, 3/5) = 6

This formula applies when you need the LCM of fractional values, not when adding fractions. Adding fractions requires the LCD, covered in the next section.

LCD Calculator: Finding the Least Common Denominator

The least common denominator (LCD) is the LCM of all the denominators in a set of fractions. You need it to add or subtract fractions with different denominators.

Once fractions share a denominator, you can add or subtract the numerators directly.

Example: Add 1/4 and 1/6

LCD = LCM(4, 6) = 12

1/4 = 3/12

1/6 = 2/12

3/12 + 2/12 = 5/12

1/4 + 1/6 = 5/12

The LCD step is where most fraction errors happen. Get the LCM of the denominators right, and the rest follows naturally.

How to Find LCM of 2 Numbers

All three methods give the same answer. Use listing for small numbers, prime factorization for medium ones, and the GCF formula when you want the fastest route.

Method 1 — Listing Multiples: LCM of 6 and 8

Multiples of 6: 6, 12, 18, 24

Multiples of 8: 8, 16, 24

LCM(6, 8) = 24
Method 2 — Prime Factorization: LCM of 9 and 12

9 = 3² | 12 = 2² × 3

Highest powers: 2² and 3²

LCM = 4 × 9

LCM(9, 12) = 36
Method 3 — GCF Formula: LCM of 8 and 10

GCF(8, 10) = 2

LCM = (8 × 10) / 2 = 80 / 2

LCM(8, 10) = 40

How to Find LCM of 3 Numbers

Use the chaining method. Find the LCM of the first two numbers. Then find the LCM of that result and the third number. The order you pair them in does not matter.

Example: LCM of 4, 6, and 9

Step 1: LCM(4, 6) = 12

Step 2: GCF(12, 9) = 3. LCM = (12 × 9) / 3 = 36

LCM(4, 6, 9) = 36
Example: LCM of 3, 5, and 7 (all prime)

All three are prime, so GCF of any two = 1

LCM = 3 × 5 × 7

LCM(3, 5, 7) = 105

The associative property guarantees the same result regardless of pairing order. You can also use prime factorization and take the highest power of every prime across all three numbers.

Common LCM Examples with Answers

Here are quick answers to the most searched number combinations. Use these to verify your work or find a result fast.

Two numbers:

LCM(6, 9) = 18
LCM(8, 12) = 24
LCM(4, 6) = 12
LCM(9, 12) = 36
LCM(6, 10) = 30
LCM(8, 10) = 40
LCM(12, 15) = 60
LCM(12, 18) = 36
LCM(15, 20) = 60
LCM(15, 25) = 75
LCM(18, 24) = 72
LCM(24, 36) = 72
LCM(16, 24) = 48
LCM(14, 21) = 42
LCM(20, 30) = 60
LCM(25, 30) = 150

Three numbers:

LCM(3, 4, 5) = 60
LCM(6, 8, 12) = 24
LCM(4, 6, 9) = 36
LCM(2, 3, 5) = 30
LCM(6, 9, 12) = 36
LCM(10, 12, 15) = 60

To verify any answer, divide your LCM by each original number. Every division must produce a whole number with no remainder.

LCM of Polynomials and Algebraic Expressions

Finding the LCM of polynomials follows the same logic as numbers. Factor each expression fully first. Then take each unique factor at its highest power.

Example: LCM of 12a²b and 42ab³

12a²b = 2² × 3 × a² × b

42ab³ = 2 × 3 × 7 × a × b³

Highest powers: 2², 3, 7, a², b³

LCM = 4 × 3 × 7 × a² × b³

LCM = 84a²b³

This same process applies to monomials, binomials, and rational expressions. Full factoring is the non-negotiable first step. Skipping it leads to wrong answers every time.

Real-World Uses of Least Common Multiple

LCM is not just a classroom exercise. It solves real problems in time planning, engineering, and software.

  • Scheduling: Find when two repeating events will next coincide in time. Two buses leaving every 8 and 12 minutes sync again after LCM(8, 12) = 24 minutes.
  • Fractions: Add or subtract unlike fractions by finding the LCD, which is the LCM of denominators.
  • Tiling: Fit tiles of two different sizes into a room with no cutting. The smallest matching dimension is their LCM.
  • Gear ratios: Find when two gears complete a full synchronized rotation together.
  • Computing: Memory alignment, array sizing, and thread synchronization rely on LCM in system programming.
  • Music theory: Rhythm patterns in different time signatures repeat at intervals calculated using LCM.

Browse more related tools on our math calculators page for other calculations you may need.

LCM Word Problems with Solutions

Word problems ask you to find when things repeat or align. That is always an LCM problem. If the question asks for equal groups or the largest share, use GCF instead.

Problem 1: Bus Schedule

Two buses leave at the same time. One departs every 8 minutes, the other every 12 minutes. When do they next leave together?

LCM(8, 12) = 24

They leave together again after 24 minutes.
Problem 2: Flashing Lights

A red light flashes every 6 seconds. A blue light flashes every 9 seconds. When do they flash at the exact same time?

LCM(6, 9) = 18

They flash together every 18 seconds.
Problem 3: Tiling Problem

Find the LCM of 15, 12, and 10 to tile a floor with no cuts.

LCM(15, 12) = 60

LCM(60, 10) = 60

Smallest matching dimension is 60 units.

Common Mistakes When Finding LCM

Most wrong answers come from one of these four errors.

  • Treating LCM as a simple product: LCM(12, 18) = 36, not 216. You must divide the product by the GCF first.
  • Missing the highest exponent: In prime factorization, always take the greatest power of each prime, not just any occurrence.
  • Confusing LCM with GCF: LCM finds the smallest common multiple. GCF finds the largest common factor. Read the problem twice before deciding which to use.
  • Stopping the multiples list too early: Keep listing until one value appears in every list. Stopping at an arbitrary point gives the wrong answer.
To verify any LCM, divide it by each original number. Every result must be a whole number with zero remainder. If not, recalculate.

Frequently Asked Questions About the LCM Calculator

What is the LCM of two prime numbers?+
The LCM of any two different primes always equals their product. For example, LCM(7, 11) = 77. Primes share no common factors, so GCF = 1 and the formula gives a × b directly.
Can LCM ever equal GCF?+
Yes, but only when both numbers are equal. LCM(6, 6) = 6 and GCF(6, 6) = 6. For any two different positive integers, LCM is always greater than or equal to GCF.
What is the LCM of a number and zero?+
LCM(a, 0) = 0 for any integer. Zero is technically a multiple of every number. The smallest shared multiple involving zero is always zero. Most calculators restrict input to positive integers to avoid this case.
Is the LCM always larger than both numbers?+
Not always. If one number is a multiple of the other, the LCM equals the larger number. For example, LCM(4, 8) = 8. The LCM is never smaller than the largest input number.
What is the meaning of LCM in math?+
LCM stands for least common multiple. It is the smallest positive integer that two or more numbers divide into evenly. It appears in fraction arithmetic, scheduling, and number theory problems.
How is LCM used in accounting or finance?+
In accounting, LCM stands for Lower of Cost or Market. This is a completely separate rule for valuing inventory. It has nothing to do with the mathematical least common multiple. The two share an acronym and nothing else.
How do you find LCM on a scientific or Casio calculator?+
Most scientific calculators have no built-in LCM button. Use the formula: LCM = (a × b) / GCF(a, b). On a TI-84, the LCM function is under MATH, then NUM, then lcm(. On a Casio, calculate it manually using the GCF formula.
What is the definition of LCM in simple terms?+
LCM is the smallest number that two or more numbers can all divide into without a remainder. It is the first place where all the multiples of your numbers meet.

Wrapping Up

This LCM calculator guide covers all four methods, real-world applications, word problems, and the most searched number combinations. Use listing for small numbers, prime factorization for larger ones, and the GCF formula when speed matters.

For polynomials, always factor fully before comparing. For fractions, identify whether you need the LCM of fractional values or the LCD of denominators. They are two different calculations.

Bookmark this page for quick reference. The next time a fraction problem or scheduling question comes up, the answer is one scroll away.