LCM Calculator
Find the Least Common Multiple (LCM) of two or more numbers. For common factors or factor trees, use our GCF Calculator or Prime Factorization Calculator.
How do you calculate the Least Common Multiple (LCM)?
The Least Common Multiple (LCM) of two or more integers is the smallest positive number evenly divisible by all of them. The most efficient calculation method uses the Greatest Common Divisor (GCD): multiply the absolute values of the numbers and divide by their GCD.
LCM(a, b) = (|a · b|) / GCD(a, b)🧩 Step-by-Step Prime Factorization Breakdown
Prime Power Method🔢 Common Pairs LCM & GCD Reference Table
Crawlable Math ReferenceQuick reference lookup for frequently queried integer pairs in arithmetic and algebra homework.
| Number Pair (a, b) | Prime Factorization | LCM(a, b) | GCD(a, b) | Product (|a × b|) |
|---|---|---|---|---|
| 4 and 6 | 2² and 2 × 3 | 12 | 2 | 24 |
| 6 and 8 | 2 × 3 and 2³ | 24 | 2 | 48 |
| 8 and 12 | 2³ and 2² × 3 | 24 | 4 | 96 |
| 12 and 18 | 2² × 3 and 2 × 3² | 36 | 6 | 216 |
| 15 and 20 | 3 × 5 and 2² × 5 | 60 | 5 | 300 |
| 18 and 24 | 2 × 3² and 2³ × 3 | 72 | 6 | 432 |
| 24 and 36 | 2³ × 3 and 2² × 3² | 72 | 12 | 864 |
Common Calculation Mistakes & Pitfalls to Avoid
Be aware of these frequent calculation traps, unit errors, and conceptual misunderstandings before relying on mathematical outputs.
The LCM is always greater than or equal to the largest number in your set. The GCD is always less than or equal to the smallest number. LCM answers "when do multiples align?", whereas GCD answers "what is the largest shared factor?".
For three numbers, LCM(a, b, c) ≠ (a × b × c) / GCD(a, b, c). You must either use prime factor trees or calculate pairwise: LCM(LCM(a, b), c).
Even if input integers are negative, LCM is by mathematical definition strictly the smallest positive integer divisible by all numbers.
Multiplication by zero makes division undefined; the LCM involving zero is either zero or undefined depending on convention.
Authoritative References & Standards
- Euclid's Elements (Book VII, Proposition 34) (c. 300 BCE):Given Two Numbers, to Find Their Least Common MultipleOfficial Reference
Foundational classical mathematical proof demonstrating that the product of two numbers divided by their greatest common measure yields the least common multiple.
- American Mathematical Society (AMS) (2021):Elementary Number Theory: Prime Factorization & The Fundamental Theorem of ArithmeticOfficial Reference
Modern algebraic treatment of lattice theory, divisibility relations, and GCD/LCM duality across natural numbers.
When two cycles line up again
The least common multiple is the smallest number both values divide into exactly. It answers questions about repeating cycles coinciding: buses leaving every 12 and 18 minutes depart together every 36 minutes, because 36 is the LCM. That is the intuition worth carrying — the LCM is when two rhythms next align.
Prime factorisation gives it directly: take every prime appearing in either number, at the highest power it reaches in either. For 12 (2² × 3) and 18 (2 × 3²), that is2² × 3² = 36. The faster route uses the GCF identity: LCM(a,b) = (a × b) / GCF(a,b), and since the Euclidean algorithm finds a GCF in a few steps, this handles large numbers easily.
The everyday use is adding fractions, where the lowest common denominator is exactly the LCM of the denominators. Using any common multiple works, but the lowest one keeps the arithmetic small and leaves less to simplify at the end. For more than two numbers, take the LCM of the first pair, then the LCM of that result with the next, and so on.
Frequently Asked Questions
What is the Least Common Multiple (LCM)?
The Least Common Multiple (LCM or Lowest Common Multiple) of two or more integers is the smallest positive integer that is evenly divisible by all numbers in the set without leaving a remainder.
How is LCM calculated using the GCD (Greatest Common Divisor)?
For two numbers a and b: LCM(a, b) = |a × b| / GCD(a, b). Because the GCD represents the factors shared between both numbers, dividing their product by GCD prevents double-counting shared prime factors.
How do you find LCM using prime factorisation?
Break each number down into its prime factors. The LCM equals the product of every unique prime factor raised to its highest power found across all numbers. For example, 12 = 2² × 3 and 18 = 2 × 3², so LCM = 2² × 3² = 36.
How do you find the LCM of three or more numbers?
Calculate the LCM pairwise in steps: first find LCM(a, b) = L₁, then find LCM(L₁, c) = L₂, and continue sequentially for all remaining numbers. Note: for three numbers, LCM(a, b, c) does NOT equal (a × b × c) / GCD(a, b, c).
What are real-world applications of the LCM?
Common practical applications include adding or subtracting fractions with unlike denominators (where LCM is the Lowest Common Denominator / LCD), synchronization of periodic schedules (trains, buses, traffic signals), astronomical alignment cycles, and mechanical gear tooth ratios.