CalcVind

LCM Calculator

Least common multiple of two or more numbers

By Team Vind · Updated · How we check

Quick answer: The LCM is the smallest number every input divides into exactly: take each prime factor at its highest power, or use LCM(a, b) = a × b ÷ HCF(a, b).

Example: Whole numbers: 12, 18, 30. This gives LCM of 12, 18, 30: 180.

Your Numbers

Separate numbers with commas or spaces.

Least Common Multiple

180LCM of 12, 18, 30
6
GCF (HCF)
2² × 3² × 5
LCM as primes

Prime factorisation

  1. 12 = 2² × 3
  2. 18 = 2 × 3²
  3. 30 = 2 × 3 × 5
  4. LCM = highest power of each prime = 2² × 3² × 5 = 180
Read the guide · 4 minHCF and LCM: Methods, Formula and Word ProblemsRead the guide · 4 minFractions: How to Add, Subtract, Multiply and Divide
  1. 1
    Enter the numbers
    Two or more whole numbers
  2. 2
    Press Find LCM
    Results update as you type
  3. 3
    See the working
    Prime factors of every number

How is the LCM found?

The least common multiple is the smallest number that every input divides into exactly. Using prime factors:

Write each number as a product of primes

Take every prime at its highest power

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

Example

12 = 2² × 3 and 18 = 2 × 3². The highest powers are 2² and 3², so the LCM is 4 × 9 = 36.

Where LCM is used

Adding fractions needs the LCM of the denominators (the lowest common denominator). It also answers timing puzzles: buses every 12 and 18 minutes leave together again every 36 minutes.

Related calculators

Frequently asked questions

What is the LCM of 12 and 18?

36. It's the smallest number that both 12 and 18 divide into exactly.

What is the difference between LCM and GCF (HCF)?

The LCM is the smallest shared multiple; the GCF (or HCF) is the largest shared factor. For two numbers, LCM × GCF = the product of the numbers.

Can I find the LCM of more than two numbers?

Yes. Enter as many as you like; the calculator combines them one by one.

How do I find LCM by the division (ladder) method?

Write the numbers in a row and divide by a prime that divides at least one of them, carrying down any that don't divide. Repeat until all are 1; the LCM is the product of the primes used.

Related guides

Sources

Last reviewed: 15 October 2026