Smart LCM Calculator

Use our advanced AI to calculate the Least Common Multiple with precision. Get detailed results with prime factors, related GCD, and step-by-step explanation.

LCM Calculator

LCM Calculator

Enter numbers to calculate the LCM

LCM Calculator

Enter numbers to calculate the LCM

Enter two or more positive integers

LCM Result

Details calculated by our AI

Calculation Result

Details of your calculation

📊

Waiting for Calculation

Fill in the data to see the result here

Worked LCM examples

See how to find the LCM with simultaneous prime factorization (the ladder method): divide the numbers by primes until they all reach 1, then multiply the divisors.

LCM of 12 and 18

  1. Write the numbers side by side: 12, 18. On each row, divide by the smallest prime number that divides at least one of them.

  2. Divide all the numbers by 2.

    12 ÷ 2 = 6 · 18 ÷ 2 = 9
  3. Divide by 2. Numbers that are not divisible by 2 (9) are carried down unchanged.

    6 ÷ 2 = 3 · 9
  4. Divide all the numbers by 3.

    3 ÷ 3 = 1 · 9 ÷ 3 = 3
  5. Divide by 3. Numbers that are not divisible by 3 (1) are carried down unchanged.

    1 · 3 ÷ 3 = 1
  6. All the numbers have reached 1. The LCM is the product of all the prime divisors used.

    2 × 2 × 3 × 3 = 36

LCM(12, 18) = 36

LCM of 4, 6, and 8

  1. Write the numbers side by side: 4, 6, 8. On each row, divide by the smallest prime number that divides at least one of them.

  2. Divide all the numbers by 2.

    4 ÷ 2 = 2 · 6 ÷ 2 = 3 · 8 ÷ 2 = 4
  3. Divide by 2. Numbers that are not divisible by 2 (3) are carried down unchanged.

    2 ÷ 2 = 1 · 3 · 4 ÷ 2 = 2
  4. Divide by 2. Numbers that are not divisible by 2 (1, 3) are carried down unchanged.

    1 · 3 · 2 ÷ 2 = 1
  5. Divide by 3. Numbers that are not divisible by 3 (1, 1) are carried down unchanged.

    1 · 3 ÷ 3 = 1 · 1
  6. All the numbers have reached 1. The LCM is the product of all the prime divisors used.

    2 × 2 × 2 × 3 = 24

LCM(4, 6, 8) = 24

LCM of 15 and 20

  1. Write the numbers side by side: 15, 20. On each row, divide by the smallest prime number that divides at least one of them.

  2. Divide by 2. Numbers that are not divisible by 2 (15) are carried down unchanged.

    15 · 20 ÷ 2 = 10
  3. Divide by 2. Numbers that are not divisible by 2 (15) are carried down unchanged.

    15 · 10 ÷ 2 = 5
  4. Divide by 3. Numbers that are not divisible by 3 (5) are carried down unchanged.

    15 ÷ 3 = 5 · 5
  5. Divide all the numbers by 5.

    5 ÷ 5 = 1 · 5 ÷ 5 = 1
  6. All the numbers have reached 1. The LCM is the product of all the prime divisors used.

    2 × 2 × 3 × 5 = 60

LCM(15, 20) = 60

How LCM Works

1

Enter Numbers

Input two or more positive integers separated by commas

2

AI Analysis

Our AI calculates the LCM using optimized prime factorization algorithm

3

Detailed Result

Receive the LCM, prime factors of each number, and related GCD

Embed this calculator on your site

Teacher, blogger or content creator? Copy the code below and paste it into your site or blog. The calculator works right on your page, for free.

Calculator With AI ↗