Toolvist

LCM Calculator

Find the least common multiple of two or more numbers, with prime factorisation shown for each.

Separate with commas, spaces or new lines. Whole numbers from 1 upwards.

Least common multiple

—

Greatest common divisor

—

Numbers

0

Prime factors in LCM

—

Check (LCM × GCD)

—

Prime factorisation of each number

Multiples (first 10)

Number Multiples

LCM Calculator

Find the least common multiple of two or more numbers. The calculator factorises each number into primes and builds the LCM from the highest power of every prime, showing the working so the method is clear.

The companion is the GCF Calculator, and the two together underpin the Fraction Calculator. For the factorisation behind both, the Number Base Converter is a related but different operation.

How to use the LCM

  1. 1 Enter two or more whole numbers.
  2. 2 The least common multiple is calculated, along with the prime factorisation of each input.
  3. 3 Use the factorisation to see why that multiple is the smallest one.
  4. 4 Add more numbers to extend the calculation.

Two ways to find it

The first is prime factorisation: break each input into primes, take the highest power of each prime that appears across all of them, and multiply. This always works and is easy to verify.

The second is the division method: divide the numbers by shared primes repeatedly and then multiply the divisors by whatever remains. It is faster by hand for medium numbers and gives the same answer, since it is the same operation carried out in a different order.

  • The LCM of two numbers times their GCF equals their product.
  • If one number is a multiple of the other, the LCM is the larger of the two.
  • Coprime numbers have an LCM equal to their product.
  • The LCM of fractions uses the LCM of numerators over the GCF of denominators.

The method

Every whole number greater than one has a unique prime factorisation. The LCM takes the highest power of each prime found across all the inputs, while the GCD takes the lowest. That is why LCM(a, b) × GCD(a, b) always equals a × b.

Frequently asked questions

What is LCM used for in practice?

Most commonly for adding fractions with different denominators, because the lowest common denominator is the LCM of the denominators. It also applies to scheduling problems — when two repeating events will next coincide — and to anything involving cycles of different lengths.

How is it different from the greatest common factor?

They are complementary. The greatest common factor is the largest number dividing all the inputs; the least common multiple is the smallest number all the inputs divide into. For any two numbers, their product equals the GCF multiplied by the LCM, which is a useful check on either calculation.

Why does the prime factorisation matter?

Because it shows why the answer is minimal. The LCM takes the highest power of each prime appearing in any input, so seeing the factorisations laid out makes the construction obvious and catches the case where a factor was missed. Without it, the result is a number you have to trust.

Related Calculators

Browse all Calculators →

You might also need

Tools from other categories that people pair with the LCM:

Browse the full tool directory →