LCM Calculator

Enter two or more positive integers to find their Least Common Multiple (LCM) — the smallest positive integer divisible by all of them — along with the GCF and first five common multiples.

How to use this calculator

  1. Enter two or more positive integers, separated by commas or spaces.
  2. Read the LCM and the first five common multiples as a reference.

Formula & method

LCM from GCF

LCM(a, b) = (a × b) / GCF(a, b) · For n numbers: LCM(LCM(a, b), c), …

GCF computed via Euclidean algorithm. Avoids overflow by computing GCF first before multiplying.

Example

LCM(12, 18, 30): LCM(12,18) = 36, LCM(36,30) = 180. First multiples: 180, 360, 540, 720, 900.

Key insights

How to interpret your result

LCM vs GCF

LCM is the smallest shared multiple; GCF is the largest shared factor. GCF × LCM = a × b for two numbers.

Common multiples

All common multiples of a set of numbers are multiples of their LCM: 12, 24, 36, 48, 60, … for LCM(4, 6) = 12.

Frequently asked questions

What is the LCM?
The Least Common Multiple (LCM) is the smallest positive integer that is divisible by all given numbers.
How do I add fractions using LCM?
Find the LCM of the denominators. Use it as the common denominator and scale each fraction numerator accordingly.
What is the difference between LCM and GCF?
LCM is the smallest common multiple; GCF is the largest common factor. GCF(a,b) × LCM(a,b) = a × b.

Related calculators

See all math calculators · Explore all online calculators