LCM Calculator

Calculate the least common multiple of numbers. Free online LCM calculator with step-by-step solution.

The LCM Calculator finds the Least Common Multiple of two or more numbers—the smallest positive integer divisible by all given numbers. Essential for adding fractions with different denominators, scheduling recurring events, and solving number theory problems. Enter your numbers to get the LCM instantly with a clear explanation of the calculation method.

LCM Calculator

Two or more whole numbers, separated by commas or spaces.

Formula: LCM(a, b) = |a × b| ÷ GCD(a, b); for more numbers, apply it pairwise

Worked example

Numbers
4, 6, 8
LCM
24
Numbers4, 6, 8
Step by step
  1. Prime factors: 4 = 2²
  2. Prime factors: 6 = 2 × 3
  3. Prime factors: 8 = 2³
  4. Take the highest power of each prime: 2³ × 3 = 24
  5. LCM(4, 6) = 4 × 6 ÷ GCD(4, 6) = 24 ÷ 2 = 12
  6. LCM(12, 8) = 12 × 8 ÷ GCD(12, 8) = 96 ÷ 4 = 24

Replace these values in the calculator above to compute your own numbers.

Common use cases

  • Finding common denominators for fractions
  • Scheduling recurring events
  • Gear ratio calculations
  • Pattern repetition calculations
  • Number theory problem solving

How to use

  1. Enter two or more numbers
  2. Click calculate to find the LCM
  3. View the prime factorization method
  4. See the step-by-step solution
  5. Use for fraction operations

FAQ

What is LCM?

The Least Common Multiple is the smallest number divisible by all given numbers. LCM(4,6) = 12.

How is LCM calculated?

LCM(a,b) = (a × b) ÷ GCD(a,b), or by taking the highest power of each prime factor from all numbers.

What's the relationship between GCD and LCM?

GCD(a,b) × LCM(a,b) = a × b. They're inversely related.

When do I need LCM?

Common uses include adding fractions, finding when events sync up, and calculating tile patterns.