Free · No sign-up · Private

LCM Calculator

Find the least common multiple of two or more integers.

Quick answer

The least common multiple is the smallest positive number that every given number divides into exactly. The LCM of 4, 6 and 15 is 60. For two numbers, LCM = a × b ÷ GCD(a, b); for more, apply it repeatedly: LCM(4, 6) = 12, then LCM(12, 15) = 60.

LCM CalculatorRuns in your browser
LCM
60

Step by step

How to use the LCM Calculator

01

Enter two or more integers.

02

See their least common multiple.

Formula

LCM(a,b) = |a×b| / GCD(a,b)

Worked examples

LCM examples

NumbersLCM
4, 612
8, 1224
9, 1545
7, 1177
24, 3672

Good to know

Using the LCM to add fractions

The lowest common denominator of two fractions is the LCM of their denominators. To add 1/4 and 1/6, use 12: 3/12 + 2/12 = 5/12. The fraction calculator does this automatically.

Repeating schedules

If one bus leaves every 12 minutes and another every 18, they leave together every LCM(12, 18) = 36 minutes.

Finding the LCM by prime factors

Write each number as a product of primes, then take every prime at its highest power. 12 = 2² × 3 and 18 = 2 × 3², so LCM(12, 18) = 2² × 3² = 36. The method is easy to do by hand for small numbers and gives the same answer as the formula the calculator uses.

FAQ

Frequently asked questions

What is the LCM of 0?

It is defined as 0, because 0 is a multiple of every number. The calculator returns 0 if any input is 0.

Is the LCM always larger than the numbers?

It is at least as large as the biggest number, and equal to it when that number is a multiple of the others.