Bills, Percentages & Everyday Math · Math Foundations
How to Find the Least Common Multiple
The least common multiple is the smallest positive number divisible by every input. The GCF formula keeps the multiplication smaller and easier to check.
The least common multiple (LCM) is the smallest positive whole number that is divisible by every input. The LCM Calculator accepts two to ten positive whole numbers and checks the final result by dividing it by each input. It is useful for fraction denominators and repeating intervals, but it does not by itself account for an offset between two schedules.
Define the least common multiple
List a few multiples of 4 and 6:
4: 4, 8, 12, 16, 20, 24, ...
6: 6, 12, 18, 24, ...
The first shared positive value is 12, so LCM(4, 6) = 12. The LCM is at least as large as the largest input, but it can equal that input when the larger number is already divisible by the others.
Build the LCM from prime factors
Prime-factorize each input, then keep the highest exponent of every prime that appears. For 12, 18, and 24:
12 = 2² × 3
18 = 2 × 3²
24 = 2³ × 3
LCM = 2³ × 3² = 72
Using the highest power matters. Taking only the factors common to every input finds a GCF instead; taking every factor without removing repeated copies can produce a number larger than the least common multiple.
Use the GCF formula for two numbers
For two positive whole numbers, the product of the GCF and LCM equals the product of the inputs:
LCM(a, b) = (a × b) ÷ GCF(a, b)
For 18 and 24, the GCF is 6, so LCM = (18 × 24) ÷ 6 = 72. Dividing by the GCF first is safer for large values because it removes the shared factors before the multiplication. The GCF Calculator can provide the shared factor separately.
Use the LCM as a common denominator
To add 1/4 + 1/6, use the LCM of 4 and 6, which is 12. Rewrite both fractions with denominator 12:
1/4 = 3/12
1/6 = 2/12
3/12 + 2/12 = 5/12
The LCM gives the smallest common denominator for these two denominators, which keeps the resulting numerator smaller than using an arbitrary multiple. Then reduce the answer with the Fraction Calculator if necessary.
Check repeating intervals and limits
If two events repeat every 6 and 8 days and start on the same day, their next shared interval is LCM(6, 8) = 24 days. If they start on different dates, the LCM only gives the interval pattern; you must also account for the starting offset. Do not claim that two schedules meet simply because their periods have an LCM.
The calculator accepts positive whole numbers. Zero, negative values, decimals, and empty inputs do not fit this LCM model. Large inputs can produce a result much larger than any individual input, so keep the exact result until you decide how to display it.
FAQs
Is the LCM the same as the least common denominator?
The least common denominator is the LCM of the denominators in a particular fraction problem. LCM is the general property of the input numbers; it is not limited to fractions.
What is the LCM of 0 and a number?
This calculator requires positive whole numbers and rejects zero. Some mathematical conventions define LCM(0, n) as 0, while others leave it undefined; the page avoids choosing a zero-input convention for a positive-number tool.
Is the LCM always larger than every input?
It is at least as large as the largest input, but it can equal that input. For example, LCM(4, 12) = 12 because 12 is already divisible by 4.
Why does dividing by the GCF give the LCM?
The product a × b contains shared prime factors twice. Dividing by the GCF removes one copy of each shared factor, leaving the smallest number that still contains every required prime power.