Calculator Bar

LCM Calculator

LCM Calculator: Least Common Multiple

Separate with commas or spaces. Up to 10 whole numbers.

—

What is the least common multiple?

The least common multiple (LCM) of two or more whole numbers is the smallest number that each of them divides into evenly. The LCM of 4 and 6 is 12: it's in the 4 times table (4, 8, 12) and the 6 times table (6, 12), and no smaller number is in both.

How to find the LCM

By listing multiples

Write out multiples of each number until one appears in every list. Best for small numbers.

12: 12, 24, 36, 48 18: 18, 36 LCM = 36

By prime factorization

Break each number into prime powers. Take every prime that appears, at its highest power, and multiply.

12 = 2² × 3 18 = 2 × 3² Highest powers: 2² × 3² = 4 × 9 = 36

Using the GCF

For two numbers, divide their product by their greatest common factor:

LCM(a, b) = a × b ÷ GCF(a, b) LCM(12, 18) = 216 ÷ 6 = 36

LCM of three or more numbers

Either use prime factors for all the numbers at once, or work in pairs: find the LCM of the first two, then the LCM of that answer and the next number.

LCM(4, 6) = 12 LCM(12, 10) = 60 → LCM(4, 6, 10) = 60

Using the LCM to add fractions

To add or subtract fractions with different denominators, rewrite them over the least common denominator, which is the LCM of the denominators.

1/4 + 1/6: LCM(4, 6) = 12 1/4 = 3/12, 1/6 = 2/12 3/12 + 2/12 = 5/12

LCM table for 2 to 12

23456789101112
226410614818102212
3631215621249303312
44124201228836204412
5101520530354045105560
66612306422418306612
7142128354275663707784
88248402456872408824
918936451863729909936
1010302010307040901011060
11223344556677889911011132
1212121260128424366013212

Frequently asked questions

What is the difference between LCM and GCF?

The least common multiple is the smallest number that all the numbers divide into. The greatest common factor is the largest number that divides into all of them. For 12 and 18 the LCM is 36 and the GCF is 6.

Can the LCM be smaller than the numbers?

No. The LCM is always at least as large as the biggest number in the list, because it has to be a multiple of it.

What is the LCM of two prime numbers?

Their product. Two different primes share no factors, so LCM(7, 13) = 7 × 13 = 91.

What is the LCM of 0?

The least common multiple is defined for positive whole numbers. Every number divides 0, but 0 isn't counted as a common multiple, so this calculator asks for numbers greater than 0.

See also

Last updated: November 16, 2026