LCM Calculator
Calculate the Least Common Multiple (LCM) and Greatest Common Factor (GCF) of two, three, or more positive integers with step-by-step prime factorization breakdowns and interactive Venn diagram visualizers.
Integer Inputs
Step-by-Step Prime Factor & Division Solution Proof
How to Find the Least Common Multiple (LCM)
To find the LCM: 1. Prime factorize each integer. 2. Take each prime factor with its highest exponent. 3. Multiply these prime powers together: LCM = ∏ pᵢ^max(eᵢ). Alternatively, for two numbers a and b, compute: LCM(a, b) = |a × b| / GCF(a, b).
Least Common Multiple Definition & Core Concept
The Least Common Multiple (LCM) represents the smallest non-zero positive integer that is an exact multiple of each number in a given set:
Generated by multiplying 12 by 1, 2, 3, 4, 5, 6...
Common multiples are 36, 72... the smallest is LCM = 36.
The 4 Methods to Calculate LCM
| Method | Procedure | Best Used For |
|---|---|---|
| Prime Factorization | Multiply highest prime powers: ∏ pᵢ^max(eᵢ) | Standard algebraic homework & proofs |
| GCF Formula | LCM = (a × b) / GCF(a, b) | Fast calculation when GCF is known |
| Ladder / Division | Divide numbers simultaneously by common primes | Multiple numbers (3+ inputs) |
| Listing Multiples | List multiples until the first match appears | Small single-digit mental math |
The Fundamental LCM-GCF Product Theorem
Every prime factor of a and b is counted in either the GCF (minimum powers) or the LCM (maximum powers). Since min(x, y) + max(x, y) = x + y, their product reconstructs the exact original product a · b.
Real-World Applications of LCM
Adding Unlike Fractions
Finding the Least Common Denominator (LCD) of 1/6 + 1/8 requires computing LCM(6, 8) = 24 to scale numerators cleanly.
Periodic Event Synchronization
If bus A arrives every 15 minutes and bus B every 20 minutes, they synchronize at the station every LCM(15, 20) = 60 minutes.
Mechanical Gear Alignment
Two meshed gears with 12 and 18 teeth will return to their exact starting tooth alignment after LCM(12, 18) = 36 tooth passes.
Step-by-Step Worked Numerical Solutions
Problem: Find the Least Common Multiple of 8, 12, and 20.
Common Pitfalls & Mistakes
Confusing LCM with GCF
LCM is always greater than or equal to the largest number in the set; GCF is always less than or equal to the smallest number.
Assuming LCM(a,b,c) = a·b·c / GCF
The formula LCM · GCF = Product ONLY holds for pairs (two numbers). For 3+ numbers, use prime factorization.
Taking Minimum Powers Instead of Maximum
Taking the minimum prime powers calculates the GCF, not the LCM.
Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.
Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.