Skip to content
RK Calculator
Menu

Least Common Multiple Calculator

Find the least common multiple (LCM) of two or more numbers, or the least common denominator (LCD) of fractions, with prime-factor steps.

Change the values and press Calculate to work out your own figures.

LCM of two or more numbers

Enter two or more numbers to find the smallest number they all divide into.

About numbersTwo or more numbers separated by commas or spaces, for example 12, 18, 24. Decimals are allowed.
Result
Least common multiple
150
Greatest common factor
5

The least common multiple of 15, 25, 30 is 150.

Show the working
  1. 15 = 3 × 5
  2. 25 = 5²
  3. 30 = 2 × 3 × 5
  4. Take each prime at its highest power: 2 × 3 × 5² = 150
  5. 150 ÷ 15 = 10
  6. 150 ÷ 25 = 6
  7. 150 ÷ 30 = 5

Least common denominator of fractions

Enter fractions or mixed numbers to find their least common denominator and rewrite each one over it.

About fractionsTwo or more fractions or mixed numbers separated by commas, for example 1/2, 3/4, 1 2/3.
Result
Least common denominator
12
Denominators
2, 4, 3

The least common denominator of 1/2, 3/4, 1 2/3 is 12.

Each fraction over the common denominator
FractionDenominatorMultiply top and bottomEquivalent fraction
1/22× 66/12
3/44× 39/12
1 2/33× 420/12
Show the working
  1. The LCD is the least common multiple of the denominators 2, 4, 3: 12
  2. 12 ÷ 2 = 6
  3. 12 ÷ 4 = 3
  4. 12 ÷ 3 = 4

How to use it

Enter two or more numbers to find the smallest number they all divide into. Enter fractions or mixed numbers to find their least common denominator and rewrite each one over it.

The answer is exact: whole numbers of any size up to 30 digits are handled without rounding, and Show the working lists every step.

Key facts

LCM(a, b) = a × b ÷ GCF(a, b)
LCD of fractions = LCM of their denominators

Finding the LCM with primes

Break each number into primes, then multiply every prime at the highest power it appears in any of the numbers. For 15 = 3 × 5, 25 = 5² and 30 = 2 × 3 × 5, that is 2 × 3 × 5² = 150.

Common denominators

To add or compare fractions, rewrite them over a common denominator. The least common denominator is the LCM of the denominators, which keeps the numbers as small as possible.

Questions

What is the LCM of 4 and 6?

12: it is the smallest number both 4 and 6 divide into.

What is the LCD of 1/2, 3/4 and 1 2/3?

12, the LCM of the denominators 2, 4 and 3.

Formulas

LCM(a, b) = a × b ÷ GCF(a, b)
LCD of fractions = LCM of their denominators

Sources

Limitations

  • Numbers have at most 30 digits; factor lists and prime factorizations are limited to 10¹².

Formula version 0.1.0Reviewed