- Least common multiple
- 72
Detailed breakdown
| Greatest common factor | Calculation |
|---|---|
| 6 | (12 ÷ 6) × 18 = 36 |
| 12 | (36 ÷ 12) × 24 = 72 |
How it works

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

| Period | Calculation | Cycles in 24 minutes |
|---|---|---|
| A 6 min | 24 ÷ 6 | 4 |
| B 8 min | 24 ÷ 8 | 3 |
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.
| 12-minute event | 18-minute event |
|---|---|
| 12 | 18 |
| 24 | 36 |
| 36 | 54 |
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.
Worked example
Using the Whole numbers example:
- Whole numbers
- 12, 18, 24
gcd(a,b) = gcd(b, a mod b); lcm(a,b) = |a × b| / gcd(a,b).
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.
