LCM Calculator (Least Common Multiple)

Quick answerThe least common multiple (LCM) is the smallest positive number that every number in your list divides into evenly. Factor each number into primes, take the highest power of each prime and multiply. For 6 and 10, the LCM is 30.

Enter 2 to 6 whole numbers, for example 12, 18, 24.

LCM(6, 10) = 30

  • GCF: 2
Multiples of 6, 10 meeting first at 30661218243010102030LCM = 30

Step-by-step solution

  1. Prime factorisation of 6: 6 = 2 × 3.
  2. Prime factorisation of 10: 10 = 2 × 5.
  3. Take the highest power of each prime: 2, 3, 5.
  4. Multiply them: 2 × 3 × 5 = 30.
  5. Check with the formula LCM = (a × b) ÷ GCF = 60 ÷ 2 = 30.

Example shown: the default numbers above. Change them and press Calculate.

What you get when you use this calculator

Every result includes the answer, a picture of what the answer means and the full working, so you can check the method as well as the number.

What you get from the LCM Calculator. Two or more whole numbers → Prime factors, highest powers, multiply → The LCM with a multiples pictureWhat you get from the LCM CalculatorYOU ENTERTwo or more wholenumbersTHE CALCULATORPrime factors,highest powers,multiplyYOU GETThe LCM with amultiples picture

How to use the LCM Calculator

  1. Type your numbers into the boxes above.
  2. Press Calculate (or hit Enter).
  3. Read the highlighted answer, check the picture, then follow the numbered steps to see how it was found.
  4. Use Copy answer to paste the result into your homework or notes.

Formula and method

Two numbersLCM(a, b) = (a × b) ÷ GCF(a, b)
Prime methodmultiply the highest power of every prime

Worked examples

Example 1: 6, 10

LCM(6, 10) = 30

  1. Prime factorisation of 6: 6 = 2 × 3.
  2. Prime factorisation of 10: 10 = 2 × 5.
  3. Take the highest power of each prime: 2, 3, 5.
  4. Multiply them: 2 × 3 × 5 = 30.
  5. Check with the formula LCM = (a × b) ÷ GCF = 60 ÷ 2 = 30.

Example 2: 4, 6, 15

LCM(4, 6, 15) = 60

  1. Prime factorisation of 4: 4 = 22.
  2. Prime factorisation of 6: 6 = 2 × 3.
  3. Prime factorisation of 15: 15 = 3 × 5.
  4. Take the highest power of each prime: 22, 3, 5.
  5. Multiply them: 4 × 3 × 5 = 60.

Example 3: 12, 18, 24, 30

LCM(12, 18, 24, 30) = 360

Show the steps
  1. Prime factorisation of 12: 12 = 22 × 3.
  2. Prime factorisation of 18: 18 = 2 × 32.
  3. Prime factorisation of 24: 24 = 23 × 3.
  4. Prime factorisation of 30: 30 = 2 × 3 × 5.
  5. Take the highest power of each prime: 23, 32, 5.
  6. Multiply them: 8 × 9 × 5 = 360.

Example 4: 21, 6

LCM(21, 6) = 42

Show the steps
  1. Prime factorisation of 21: 21 = 3 × 7.
  2. Prime factorisation of 6: 6 = 2 × 3.
  3. Take the highest power of each prime: 2, 3, 7.
  4. Multiply them: 2 × 3 × 7 = 42.
  5. Check with the formula LCM = (a × b) ÷ GCF = 126 ÷ 3 = 42.

Practice problems

Try each one on paper first, then open the answer.

Problem 1: 8, 12

LCM(8, 12) = 24

Problem 2: 9, 15

LCM(9, 15) = 45

Problem 3: 5, 7, 10

LCM(5, 7, 10) = 70

Problem 4: 14, 21, 35

LCM(14, 21, 35) = 210

Frequently asked questions

What is the LCM of 6 and 10?

30. The multiples of 6 are 6, 12, 18, 24, 30 and of 10 are 10, 20, 30, so 30 is the first they share.

What is the difference between LCM and GCF?

The GCF is the largest number that divides all your numbers. The LCM is the smallest number that all your numbers divide into.

When do I use the LCM?

To add or subtract fractions (the LCM of the denominators is the least common denominator) and to solve scheduling problems that repeat in cycles.

Learn the method

Related calculators

Calculators are for learning and general use. If a result matters (an exam, a build, a purchase), double-check it. Read the disclaimer.