Math · FREE ONLINE TOOL

Least Common Multiple Calculator

Enter two or more integers to find the least common multiple (LCM). Follow the steps to work out a common denominator or a shared repeating interval.

Your inputs

Formula and input guidance

Whole numbers

gcd(a,b) = gcd(b, a mod b); lcm(a,b) = |a × b| / gcd(a,b).

The Euclidean algorithm finds the greatest common divisor. Factor lists contain positive factors.

Separate integers with commas, spaces or new lines.

Calculations run in your browser. No account needed.

EXAMPLE RESULTCalculated locally
Least common multiple
72
Jump to the full table
My workspace

Calculate with your inputs to save a result or compare scenarios.

Detailed breakdown

All 2 rows

The complete calculation, row by row.

Swipe or scroll horizontally for more columns.
Detailed breakdown · All 2 rows
Greatest common factorCalculation
6(12 ÷ 6) × 18 = 36
12(36 ÷ 12) × 24 = 72

How it works

Illustration for Least Common Multiple Calculator: overlapping documents with a plus sign; plus and division symbols.
Whole numbersgcd(a,b) = gcd(b, a mod b); lcm(a,b) = |a × b| / gcd(a,b).
A useful distinction

Repeating schedules also need matching starts

Events every 6 and 8 days align every 24 days if they start together. If their starting dates differ, the LCM alone does not identify the next meeting date; the offsets must also be considered.

When will two bells ring together again?

Start time
09:00
Cycles in 24 minutes. A (6 min) → 4. B (8 min) → 3.
When will two bells ring together again?
PeriodCalculationCycles in 24 minutes
A 6 min24 ÷ 64
B 8 min24 ÷ 83

When to use the least common multiple

The least common multiple is useful when you need the smallest positive quantity that is a multiple of every entered whole number. It differs from a greatest common factor, which looks for a shared divisor. For fraction problems, an LCM can help identify a common denominator. Check that inputs represent whole-number quantities before applying the result to a repeating schedule or grouping problem.

Find the first shared positive multiple for nonzero integers

The least common multiple is the smallest positive integer divisible by every nonzero input. Enter whole numbers separated by commas, spaces or line breaks. For two positive integers a and b, LCM(a,b)=a×b/GCF(a,b).

Multiplying the inputs always gives a common multiple, but usually not the least one when they share factors. For several inputs, apply the operation across the whole list rather than comparing only the first pair.

Use an LCM to find the next shared interval

If two events repeat every 12 and 18 minutes and begin together, their next shared occurrence is after 36 minutes. Their GCF is 6, so 12×18÷6=36. This assumes the same starting time; different offsets require another scheduling calculation.

Multiples leading to the first common interval
12-minute event18-minute event
1218
2436
3654

Build a least common denominator for fractions

For denominators 8 and 12, the LCM is 24. Thus 5/8 becomes 15/24 and 7/12 becomes 14/24, making their sum 29/24. A denominator of 96 would also work but would need more simplification.

Using prime exponents, 8=2³ and 12=2²×3. Keep the greatest required exponent of each prime: 2³×3=24. The GCF instead keeps only shared primes at their smaller exponents.

Interpret zeros and large outputs

The calculator returns 0 if any input is zero, following the common computational LCM convention. Do not interpret this as a positive repeat interval, since zero has no positive multiples. Signs are ignored when forming the nonnegative result.

LCMs can grow quickly even from moderate inputs. This mode rejects an output beyond its exact safe-integer range instead of presenting an inexact integer as exact. For larger supported integer tasks, use Big Number Calculator’s LCM operation.

Whole numbers: formula and assumptions

gcd(a,b) = gcd(b, a mod b); lcm(a,b) = |a × b| / gcd(a,b).

The Euclidean algorithm finds the greatest common divisor. Factor lists contain positive factors.

Use Whole numbers

Worked example

Using the Whole numbers example:

Inputs
Whole numbers
12, 18, 24
Method

gcd(a,b) = gcd(b, a mod b); lcm(a,b) = |a × b| / gcd(a,b).

Result

Example result

Least common multiple: 72

These are illustrative inputs. Change the values to explore a different scenario.

What to keep in mind

An LCM gives the repeat interval for whole-number cycles. To use it as the next meeting time, the cycles must start together.

Formula references

References explain the underlying methods; they do not imply endorsement or individual professional review of Finflo.

Common questions

How does the least common multiple differ from the greatest common factor?

The LCM is a shared multiple of the numbers. The GCF is a number that divides all of them.

What is the LCM of 6 and 8?

It is 24: the smallest positive integer divisible by both 6 and 8.

Is multiplying the inputs always the least common multiple?

No. Their product is a common multiple, but shared factors can make the least one smaller. For 12 and 18, the product is 216 while the LCM is 36.

How does LCM help add fractions?

Use it as the least common denominator, then rewrite each fraction with that denominator before adding numerators.

Can LCM find when repeating events meet?

Yes when the intervals are integer quantities in one unit and the events start together. Different starting offsets require additional reasoning.

Why does a list containing zero return zero?

That is the tool’s computational convention for LCM. It does not identify a positive common multiple or a practical repeat interval.

See our methodology and editorial policy.