LCM Calculator

Find the least common multiple of two or more numbers, with prime factorization and step-by-step work. Free and instant.

About the LCM Calculator

The least common multiple (LCM) of several numbers is the smallest positive number that every one of them divides evenly. It is the key to adding fractions with different denominators and to scheduling problems. This calculator takes two or more numbers, shows the prime factorization of each, and builds the LCM from the highest power of each prime.

For the greatest common factor use the GCF calculator.

How to use it

  1. Type two or more positive whole numbers, separated by commas or spaces.
  2. Press Find LCM.
  3. Read the LCM and the prime factorization steps.

How to find the LCM

  1. Prime factorization: factor each number, then multiply every prime that appears, using its highest power.
  2. GCF method: for two numbers, LCM(a, b) = a × b ÷ GCF(a, b).
  3. Listing multiples: list multiples of each number and pick the smallest one they share.

Example: LCM(12, 18). 12 = 22 × 3 and 18 = 2 × 32, so LCM = 22 × 32 = 36.

LCM examples

NumbersLCM
4 and 612
8 and 1224
12 and 1836
5 and 735
6, 8 and 1224
3, 4 and 560

Frequently asked questions

What is the LCM of two numbers?

The smallest positive number that both numbers divide into evenly. For 4 and 6 it is 12.

How do I use the LCM to add fractions?

Use the LCM of the denominators as the common denominator, convert each fraction, then add the numerators.

What is the LCM of two prime numbers?

Their product. For example LCM(5, 7) = 35.

What is the relationship between LCM and GCF?

For two numbers, LCM × GCF = a × b. So LCM = a × b ÷ GCF.

Can I find the LCM of three or more numbers?

Yes. Enter them all. The calculator combines them using the highest power of every prime.

Last reviewed: November 2026.

Related free tools

GCF calculator GCD and LCM calculator Fractions calculator Factor calculator Prime number checker Factorial calculator