LCM Calculator

lcm(a,b)=|a·b|/gcd(a,b), folded across a list. Click any i for detail.

Jump to result

Integers

Numbers
i
List

Two or more positive integers, commas or spaces.

How to use this calculator

  1. Enter two or more positive integers.
  2. Read the least common multiple.
  3. Use it to find common denominators for fraction addition.
  4. Check pairwise GCF in the breakdown when shown.

Results explained

The LCM is the smallest positive number divisible by every input. For two numbers, lcm(a,b) = |a·b| / gcd(a,b).

Quick reference: LCM

lcm(4, 6) = 12 because 12 is the smallest number both divide.

ItemDetail
Two numberslcm = |a·b| / gcd(a,b)
Three or morefold lcm left to right
Denominatorslcm(3,4) = 12 for 1/3 + 1/4
Coprimeif gcd=1, lcm = product

Very large products can exceed JavaScript safe integers.

How the estimate is built

lcm(a,b) = |a·b| / gcd(a,b); extend across lists.

Example scenario

4, 6, 8 → 24.

FAQ

Why do fractions need LCM?

Common denominators are built from the LCM of the bottoms.

Can lcm be smaller than the largest input?

No. The largest input always divides the lcm.

What if inputs share a big gcd?

Product shrinks: lcm(12,18) = 36, not 216.