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.

Typical Common Scenarios:
Least Common Multiple (LCM)
36
Greatest Common Divisor (GCD): 6
Input Numbers:12, 18
Product of Pair (|a × b|):216
Ratio (LCM / GCD):6
LCM Formula & Direct Answer

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)
LCM: Least Common Multiple (smallest shared multiple)
GCD: Greatest Common Divisor (highest shared factor)
a, b: Input positive integers

🧩 Step-by-Step Prime Factorization Breakdown

Prime Power Method

🔢 Common Pairs LCM & GCD Reference Table

Crawlable Math Reference

Quick reference lookup for frequently queried integer pairs in arithmetic and algebra homework.

Number Pair (a, b)Prime FactorizationLCM(a, b)GCD(a, b)Product (|a × b|)
4 and 62² and 2 × 312224
6 and 82 × 3 and 2³24248
8 and 122³ and 2² × 324496
12 and 182² × 3 and 2 × 3²366216
15 and 203 × 5 and 2² × 5605300
18 and 242 × 3² and 2³ × 3726432
24 and 362³ × 3 and 2² × 3²7212864
⚠️

Common Calculation Mistakes & Pitfalls to Avoid

Be aware of these frequent calculation traps, unit errors, and conceptual misunderstandings before relying on mathematical outputs.

1
Confusing LCM with GCD (GCF)

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?".

2
Misapplying the product formula to three or more numbers

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).

3
Forgetting that LCM is strictly positive

Even if input integers are negative, LCM is by mathematical definition strictly the smallest positive integer divisible by all numbers.

4
Ignoring zero inputs

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 Multiple
    Official 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 Arithmetic
    Official 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.