LCM Calculator

This least common multiple calculator finds the LCM of two or more whole numbers. Type your numbers separated by commas or spaces, and it shows the answer with the prime factorization steps. Students use it to add and subtract fractions with different denominators. Teachers use it to check homework. Planners use it to line up schedules that repeat on different cycles.

How the LCM is worked out

The least common multiple is the smallest positive number that all your numbers divide into evenly. The tool uses the prime factorization method:

  1. Break each number into its prime factors.
  2. For each prime, keep the highest power that appears in any number.
  3. Multiply those highest powers together. The product is the LCM.

For two numbers there is also a shortcut: LCM(a, b) = (a × b) ÷ GCF(a, b). The tool shows this check whenever you enter exactly two numbers.

Worked example: LCM of 6 and 10

  1. Break each number into primes: 6 = 2 × 3, and 10 = 2 × 5.
  2. The primes involved are 2, 3, and 5. The highest power of each is 2¹, 3¹, and 5¹.
  3. Multiply them: 2 × 3 × 5 = 30.
  4. Check with the GCF shortcut: GCF(6, 10) = 2, so (6 × 10) ÷ 2 = 30.

You can see it in the multiples too: 6, 12, 18, 24, 30 … and 10, 20, 30 … The first number both lists share is 30.

How to use this calculator

  1. Type two or more whole numbers, separated by commas or spaces.
  2. Click “Calculate LCM”.
  3. Read the LCM and the steps. Use “Clear” to start over.

Limits of this tool

  • Whole numbers only. Decimals, fractions, zero, and negative numbers are rejected.
  • Up to 20 numbers per calculation, each no larger than 1,000,000,000.
  • If the exact LCM is too large to compute safely, the tool says so instead of guessing.
  • It finds the LCM of the numbers you type. It does not solve equations or simplify fractions.

Frequently asked questions

What is the least common multiple of two numbers?

It is the smallest positive number that both numbers divide into evenly. For 6 and 10, the multiples of 6 are 6, 12, 18, 24, 30 …, and the multiples of 10 are 10, 20, 30 …, so the least common multiple is 30.

How is the LCM different from the GCF?

The GCF is the largest number that divides both numbers. The LCM is the smallest number that both numbers divide into. For 6 and 10, the GCF is 2 and the LCM is 30.

Why do I need the LCM to add fractions?

Fractions need a common denominator before you can add or subtract them, and the LCM of the denominators is the simplest one to use. For 1/6 + 1/10, the LCM of 6 and 10 is 30, so you rewrite the sum as 5/30 + 3/30 = 8/30 = 4/15.

Can this least common multiple calculator handle three or more numbers?

Yes. You can enter up to 20 whole numbers separated by commas or spaces. For example, the LCM of 6, 7, and 21 is 42.

Related tools