🧮 Verified Mathematical Engine 👁 5 Views

LCM Calculator

Find the least common multiple of numbers with prime factorization and division breakdown.

LCM Calculator Result
0.00
Step-by-Step Breakdown:

Enter values and click Calculate.

Mathematical Formula & Method

LCM Calculator Formula
LCM(a, b) = (|a × b|) / GCD(a, b)
The LCM Calculator computes the smallest positive integer that is divisible by all given numbers without a remainder. It demonstrates both the prime factorization method and the continuous division method.

Worked Examples & Step-by-Step Solutions

LCM of 12 and 18
  1. Prime factors of 12: 2² × 3¹.
  2. Prime factors of 18: 2¹ × 3².
  3. Take the highest power of each prime: 2² × 3² = 4 × 9 = 36.
  4. Result: LCM(12, 18) = 36.
LCM of 8, 12, and 20
  1. Prime factors: 8 = 2³, 12 = 2² × 3, 20 = 2² × 5.
  2. Highest powers: 2³ × 3¹ × 5¹ = 8 × 3 × 5 = 120.
  3. Result: LCM(8, 12, 20) = 120.

How to Use the LCM Calculator

  1. Enter two or three positive integers.
  2. Click Calculate to see the LCM and prime factors tree.
  3. View both GCD relation and prime factorization proofs.

Important Assumptions & Unit Conventions

  • Only positive integers are defined for traditional LCM.
  • Very large numbers (> 15 digits) may hit browser integer precision limits.

Frequently Asked Questions

What is the LCM of two prime numbers?

The LCM of two distinct prime numbers p and q is simply their product: p × q.

How is LCM related to HCF/GCD?

For two numbers a and b: LCM(a, b) × HCF(a, b) = a × b.

Related Calculators

HCF / GCD Calculator

Find the highest common factor using Euclidean algorithm and prime factorization.

Open Calculator →

Prime Number Checker

Check if a number is prime and compute prime factorizations.

Open Calculator →

Fraction Calculator

Add, subtract, multiply, and divide fractions with step-by-step LCD and reduction.

Open Calculator →