Least Common Multiple (LCM) Calculator
Find the lowest common multiple (LCM) of numbers with step-by-step GCF formulas, prime factorization maximum powers, multiple lists, and interactive cycle alignment graphics.
| Input Numbers | 12, 15 |
| Least Common Multiple (LCM) | 60 |
| Greatest Common Factor (GCF) | 3 |
| Multipliers / Strides to LCM | 12 × 5 = 60 | 15 × 4 = 60 |
| Common Denominator (LCD) Sum | 1/12 + 1/15 = 5/60 + 4/60 = 9/60 = 3/20 |
| Next Common Multiples | 120, 180, 240, 300 |
LCM(12, 15) = (|12 × 15|) ÷ GCF(12, 15)
LCM(12, 15) = 180 ÷ 3 = 60
12 = 2 × 2 × 3 = 2² × 3¹
15 = 3 × 5 = 3¹ × 5¹
Take maximum power for each prime:
2² × 3¹ × 5¹ = 4 × 3 × 5 = 60
Multiples of 12: 12, 24, 36, 48, [60], 72...
Multiples of 15: 15, 30, 45, [60], 75...
First matching multiple = 60
Common Integer LCM Benchmarks
Compare how your primary number 12 synchronizes with standard time, measurement, and fractional intervals.
| Comparison (A vs B) | LCM | GCF | Cycles A : B | Coprime? | LCD Addition (1/A + 1/B) |
|---|---|---|---|---|---|
| 12 vs 6 | 12 | 6 | 1 : 2 | No | 3/12 = 1/4 |
| 12 vs 8 | 24 | 4 | 2 : 3 | No | 5/24 |
| 12 vs 10 | 60 | 2 | 5 : 6 | No | 11/60 |
| 12 vs 15 (Active) | 60 | 3 | 5 : 4 | No | 9/60 = 3/20 |
| 12 vs 16 | 48 | 4 | 4 : 3 | No | 7/48 |
| 12 vs 18 | 36 | 6 | 3 : 2 | No | 5/36 |
| 12 vs 20 | 60 | 4 | 5 : 3 | No | 8/60 = 2/15 |
| 12 vs 24 | 24 | 12 | 2 : 1 | No | 3/24 = 1/8 |
| 12 vs 30 | 60 | 6 | 5 : 2 | No | 7/60 |
About This Calculator
The Least Common Multiple (LCM) Calculator computes the smallest positive integer that is divisible by each of two or more given integers without leaving a remainder. In arithmetic, the LCM serves as the Lowest Common Denominator (LCD) required when adding, subtracting, or comparing fractions with unlike denominators. In engineering and scheduling, the LCM determines the exact time interval when recurring cyclical events, gears, traffic signals, transit schedules, or planetary orbits synchronize.
Mathematical Algorithms & Practical Worked Examples
Multiple standard mathematical methods compute the LCM:
- 1. The GCF Product Formula: For any two positive integers A and B:
LCM(A, B) = (|A × B|) ÷ GCF(A, B). Because GCF can be computed extremely fast via Euclid's algorithm, this is the most computationally efficient method. - 2. Prime Factorization Method: Decompose each integer into its prime components:
N = p₁^a × p₂^b .... The LCM equals the product of all prime factors raised to their highest exponent:LCM = ∏ p_i^(max(a_i, b_i)). - 3. Multiples Sequence Intersection: List positive integer multiples of each value (A, 2A, 3A...) until identifying the first common number.
Real-World Practical Worked Examples:
Example 1 (Adding Fractions): Solve 1/12 + 1/15.
LCM(12, 15) = 60 (Least Common Denominator)
1/12 = 5/60 and 1/15 = 4/60
5/60 + 4/60 = 9/60 = 3/20.
Example 2 (Bus Schedule Sync): Route A arrives every 12 minutes, while Route B arrives every 15 minutes. If both arrive at 8:00 AM, when do they next arrive together?
LCM(12, 15) = 60 minutes
They next arrive together at exactly 9:00 AM (after 1 hour).
Example 3 (Matching Hot Dogs and Buns): Hot dog buns are sold in packages of 8, while hot dog sausages are sold in packages of 12. What is the minimum number of each you must purchase to have zero leftover buns or sausages?
LCM(8, 12) = 24
You need 24 total: 3 packs of buns (3 × 8 = 24) and 2 packs of sausages (2 × 12 = 24).
How to Use This Calculator
- Choose Input Mode: Select between two numbers, three numbers, or an arbitrary list of integers.
- Enter Numbers: Type integers directly or smoothly adjust the paired sliders. The calculations and graphics update in real time.
- Inspect Algorithmic Proofs: Review the step-by-step GCF formula, the prime power maximums, and the multiples sequence.
- Analyze Visual Alignment: Check the cycle synchronization timeline to see how many strides each number takes to reach alignment, or export the benchmark matrix to CSV.
Quick Reference: Common Everyday LCM Combinations
Common intervals frequently encountered in music rhythms, clock gears, transit schedules, and fraction arithmetic:
| Pairing | LCM | GCF | Strides Ratio | Typical Real-World Context |
|---|---|---|---|---|
| 2 and 3 | 6 | 1 | 3 : 2 | Polyrhythms / 6-pack item packaging |
| 3 and 4 | 12 | 1 | 4 : 3 | Quarter hours / Dozen units / 12-month calendar |
| 4 and 6 | 12 | 2 | 3 : 2 | Quarter hours vs bi-monthly sync |
| 6 and 8 | 24 | 2 | 4 : 3 | 24-hour daily scheduling sync |
| 10 and 15 | 30 | 5 | 3 : 2 | Half-hour clock synchronization |
| 12 and 15 | 60 | 3 | 5 : 4 | 60-minute hour division |
| 15 and 20 | 60 | 5 | 4 : 3 | Quarter-hour schedule alignment |
| 20 and 30 | 60 | 10 | 3 : 2 | Hour intervals |
| 24 and 36 | 72 | 12 | 3 : 2 | Construction framing / tile dimensions |
Important Mathematical Terms
Multiple: The product of an integer and any whole number (e.g. multiples of 6 are 6, 12, 18, 24...).
Least Common Multiple (LCM): The smallest positive integer that is evenly divisible by all numbers in a given set.
Lowest Common Denominator (LCD): The LCM of the denominators of two or more fractions.
Coprime (Relatively Prime): Numbers that share no common factors other than 1. For coprime numbers, LCM(A, B) = A × B.
Greatest Common Factor (GCF): The largest positive integer dividing both numbers. The product theorem links them: A × B = GCF × LCM.
Frequently Asked Questions
LCM(A, B) ≥ max(A, B). If the larger number is already a multiple of the smaller (e.g. 12 and 36), the LCM equals that larger number (36).LCM(A, B, C) = LCM(LCM(A, B), C). Alternatively, use prime factorizations and take the highest power of every prime that appears across all numbers.