LCM Calculator

Calculate the Least Common Multiple (LCM) of two numbers using the GCD method. Formula: LCM(a,b) = |a×b| / GCD(a,b).

LCM
36
Least Common Multiple of 12, 18
GCD
6
Greatest Common Divisor
Product
216
LCM × GCD relationship
LCM / Product
0.166667
Ratio (1 if coprime pair)
LCM × GCD
216
Should = 216
Coprime?
No
Share factor 6
Prime Factorization Breakdown
2
2^2
3
3^2
■ A■ B
Planning notes, formulas, and examples

About the LCM Calculator

The LCM Calculator finds the Least Common Multiple of two numbers using the efficient GCD-based formula: LCM(a,b) = |a×b| / GCD(a,b). The LCM is the smallest positive integer that both numbers divide into evenly.

Finding the LCM is essential when adding or subtracting fractions (you need a common denominator), scheduling repeating events, and solving problems involving cycles or periodic intervals.

For example, if Bus A comes every 12 minutes and Bus B every 18 minutes, they arrive together every LCM(12,18) = 36 minutes. This calculator computes the answer and shows the relationship between LCM and GCD.

When This Page Helps

Computing LCM by listing multiples is tedious. The GCD-based formula is fast and exact, handling even large numbers efficiently.

How to Use the Inputs

  1. Enter the first number.
  2. Enter the second number.
  3. The LCM is calculated using the GCD formula.
  4. View the LCM and the corresponding GCD.
  5. Use the LCM for fraction operations or scheduling problems.
Formula used
LCM(a, b) = |a × b| / GCD(a, b) Alternatively: list prime factors of both numbers; for each prime, use the highest power appearing in either factorization.

Example Calculation

Result: 36

GCD(12, 18) = 6. LCM = |12 × 18| / 6 = 216 / 6 = 36. Verify: 36 / 12 = 3, 36 / 18 = 2. Both divide evenly.

Tips & Best Practices

  • LCM(a,b) × GCD(a,b) = |a × b| always.
  • If GCD(a,b) = 1 (coprime), then LCM(a,b) = a × b.
  • The LCD (Least Common Denominator) for fractions is the LCM of the denominators.
  • LCM of more than two numbers: LCM(a,b,c) = LCM(LCM(a,b), c).
  • LCM is always ≥ max(a, b).

LCM in Scheduling

Planetary conjunctions, bus schedules, traffic light cycles, and factory production runs all involve finding when periodic events align. The LCM gives the exact interval.

LCM and Prime Factorization

The LCM can also be found by taking the highest power of each prime factor across both numbers. For 12 = 2²×3 and 18 = 2×3², LCM = 2²×3² = 36.

Common Denominator Applications

When adding 1/4 + 1/6, the LCD is LCM(4,6) = 12. Convert: 3/12 + 2/12 = 5/12. Using the LCM ensures the simplest arithmetic.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • The Least Common Multiple is the smallest positive integer divisible by both given numbers. For 4 and 6, the LCM is 12 because 12 is the smallest number both 4 and 6 divide into evenly.