LCM LCM Calculator
Least Common Multiple · Free Math Tool
Instant · Free · No signup Works for 2–6 positive integers

Least Common Multiple Calculator

Type two or more positive integers. Hit Calculate. Get the LCM, the GCD, and a prime-factor breakdown — the same steps you'd show on homework, without the arithmetic slog.

Enter numbers (leave blanks empty)
Open GCD Calculator
Result
—
Pre-filled with 12, 18, 24 — press Calculate LCM to see the answer (72).

What is the LCM?

Math formulas on a chalkboard

The least common multiple of two or more integers is the smallest positive number that is a multiple of each of them. For 4 and 6, the multiples of 4 are 4, 8, 12, 16, 20, 24… and the multiples of 6 are 6, 12, 18, 24… — so the least shared one is 12.

You'll use LCM when adding fractions (common denominators), planning recurring schedules, or solving number-theory homework. It pairs with the GCD: for any two positives, LCM(a,b) × GCD(a,b) = a × b.

How this calculator works

1
GCD via Euclidean algorithmWe compute the greatest common divisor with repeated division — fast and exact, no guessing.
2
LCM from the identityFor each pair we use LCM = |a·b| / GCD, then fold that result into the next number until the list is done.
3
Prime-factor checkWe also factor each input so you can verify the answer the textbook way — take the highest power of every prime that appears.
Quick example: LCM(12, 18, 24).
12 = 22 × 3 · 18 = 2 × 32 · 24 = 23 × 3
Highest powers: 23 × 32 = 72

When you'd actually need this

  • Fractions: 1/12 + 5/18 needs denominator LCM(12,18) = 36.
  • Schedules: Bus A every 12 min, Bus B every 18 — they meet every LCM minutes.
  • Gear ratios / cycles: Any problem asking “when do these patterns next line up?”

More walkthroughs: Worked Examples · Formula & Methods · How LCM Works.

Notebook with handwritten formulas