Least Common Multiple Calculator (LCM & Lowest Common Multiple)

Our free online least common multiple calculator delivers verified step-by-step solutions with BigInt precision in under a millisecond. Enter numbers or algebraic expressions below for transparent intermediate working.

Instant Solutions
Step-by-Step Breakdown
100% Free & Private

Interactive Calculator
Find the smallest positive integer divisible by all input numbers.
Try an example:
Least Common Multiple (LCM)
LCM(12, 18) = 36
Show step-by-step solution
Prime Factorization Method:
12 = 22 × 31
18 = 21 × 32
Highest prime powers = 22 × 32 = 36.

Last reviewed: October 2026 Reviewed by the FactorCalc editorial teamHow we test this calculator →

On This Page (Table of Contents)

How to Use This Least Common Multiple Calculator (LCM & Lowest Common Multiple)

Computing the smallest shared multiple is simple and transparent. Follow these steps to generate complete prime factor expansions:

  1. Provide Integers: Type two or more whole numbers separated by commas (such as 12, 18 or 15, 20, 25).
  2. Compute Multiples: Click ‘Calculate / Factor’ to evaluate the least common multiple using prime power comparisons and the division ladder.
  3. Inspect Prime Exponents: Expand the solution accordion to verify highest prime powers and check the product division formula LCM(a,b) = |a × b| / GCF(a,b).

What is the Least Common Multiple (LCM)?

The least common multiple, widely abbreviated as LCM (and occasionally called the lowest common multiple), of two or more non-zero integers is the smallest positive integer that is divisible by each of the given numbers. In fractional arithmetic, finding the LCM of denominators is the definitive technique for determining the least common denominator (LCD), allowing students and practitioners to add, subtract, and compare fractions with unequal denominators efficiently.

Beyond classroom arithmetic, the least common multiple appears frequently in real-world synchronization problems. For instance, when analyzing recurring schedules, planetary orbital resonances, traffic signal cycles, or periodic manufacturing maintenance routines, the LCM determines the exact time when two or more recurring events coincide. Our least common multiple calculator provides instantaneous solutions with detailed step-by-step mathematical reasoning.

Core Algorithms for Determining LCM

There are three primary algorithmic techniques to determine the LCM of two or more numbers:
1. Prime Factorization Method: Each number is factored into its prime constituents. The LCM is constructed by multiplying together the highest power of each prime factor observed across all numbers. For instance, for 12 and 18: 12 = 22 × 31 and 18 = 21 × 32. The highest power of 2 is 22; the highest power of 3 is 32. Therefore, LCM(12, 18) = 22 × 32 = 4 × 9 = 36.
2. The GCF-Product Relationship Formula: For any two positive integers a and b, the product of their greatest common factor and least common multiple equals their arithmetic product: GCF(a, b) × LCM(a, b) = a × b. Rearranging this identity gives LCM(a, b) = (a × b) / GCF(a, b). Using the Euclidean algorithm to compute the GCF in logarithmic time makes this formula the most efficient computational method for large numbers.
3. Common Division / Cake Method: The integers are arranged in a horizontal row and divided repeatedly by prime numbers that divide at least two of the terms. Numbers not divisible by the selected prime are brought down unchanged. When all remaining numbers share no common factors, the product of all divisors along the margin and the final row gives the LCM.

Worked Step-by-Step Examples

Review these worked examples to understand how our least common multiple calculator arrives at each solution: − Example 1: LCM of 15, 20, and 25: − Step 1: Prime factorize each integer: 15 = 31 × 51; 20 = 22 × 51; 25 = 52. − Step 2: List all distinct prime factors present: 2, 3, 5. − Step 3: Identify the maximum exponent for each prime: − Max power of 2: 22 = 4 (from 20) − Max power of 3: 31 = 3 (from 15) − Max power of 5: 52 = 25 (from 25) − Step 4: Multiply highest prime powers: LCM = 4 × 3 × 25 = 300. − Verification: 300 / 15 = 20; 300 / 20 = 15; 300 / 25 = 12. All divisions yield whole integers. − Example 2: Two Large Numbers (84 and 126): − GCF(84, 126) = 42 via Euclidean algorithm. − Using formula: LCM(84, 126) = (84 × 126) / 42 = 84 × 3 = 252.

Did You Mean? Why ‘Highest Common Multiple’ and ‘Least Common Factor’ are Misnomers

Students occasionally search for terms such as ‘highest common multiple’ (HCM) or ‘least common factor’ (LCF). Mathematically, these phrases are conceptual misnomers: − Why There Is No Highest Common Multiple: Multiples of any positive integer extend infinitely to positive infinity (e.g., multiples of 4 are 4, 8, 12, 16, 20…). Consequently, any two numbers possess an infinite set of common multiples. Because this set has no upper bound, a ‘highest’ common multiple does not exist mathematically. − Why ‘Least Common Factor’ is Trivial: Every positive integer is divisible by 1. Therefore, for any collection of positive integers, the smallest common factor is always 1. Because the answer is universally 1 for all numbers, a ‘least common factor’ problem has no practical mathematical utility.
When users encounter questions mentioning HCM or LCF, the intended question is almost certainly the Least Common Multiple (LCM) or Greatest Common Factor (GCF).

Authoritative Standards and References

The properties of integer divisibility and the least common multiple are rigorously defined in formal number theory. For further study on proofs and theorems concerning the least common multiple, consult Wolfram MathWorld Least Common Multiple and standard academic texts on abstract algebra.

Common Mathematical Results & Factor Patterns

Compare these calculated least common multiples and prime power distributions for standard integer sets:

Number SetPrime Factor ExponentsHighest Prime PowersLCM
4, 64 = 2², 6 = 2×32² × 3¹12
8, 128 = 2³, 12 = 2²×32³ × 3¹24
12, 1812 = 2²×3, 18 = 2×3²2² × 3²36
15, 20, 2515 = 3×5, 20 = 2²×5, 25 = 5²2² × 3¹ × 5²300
24, 36, 6024 = 2³×3, 36 = 2²×3², 60 = 2²×3×52³ × 3² × 5¹360

Real-World Practical Applications

In transportation logistics and astronomical tracking, the least common multiple predicts when cyclical events synchronize. If train routes depart every 12 and 18 minutes, their LCM of 36 minutes gives the exact recurring schedule when both trains depart simultaneously.

Common Pitfalls & Mistakes to Avoid

❌ Common Mistake

Calculating LCM by simply multiplying the numbers together (a × b), which artificially inflates the answer when numbers share common factors.

✓ Correct Approach

Always divide the product by their greatest common divisor: LCM(a, b) = |a × b| / GCF(a, b). Only coprime integers equal their simple product.

For authoritative curriculum guidelines, proofs, and academic definitions, consult Wolfram MathWorld Least Common Multiple.

Frequently Asked Questions

How do you find the LCM of more than two numbers?

Prime factorize all numbers, find the highest exponent of every prime that appears in any of the factorizations, and multiply those highest powers together. Alternatively, use our calculator which handles multiple numbers instantly.

Can the LCM of two numbers be smaller than either number?

No. Since the LCM must be a multiple of each number, it can never be less than the largest number in your set. In fact, LCM(a, b) ≥ max(a, b).

Does the formula LCM(a, b) = (a × b) / GCF(a, b) work for three numbers?

No. The identity GCF(a, b) × LCM(a, b) = a × b holds strictly for pairs of integers. For three numbers, GCF(a,b,c) × LCM(a,b,c) generally does not equal a × b × c. Use prime factorization or pairwise LCM instead.

What is the LCM of two prime numbers?

Because prime numbers share no common factors other than 1, their GCF is 1. Therefore, the LCM of any two distinct prime numbers p and q is simply their product: LCM(p, q) = p × q.