How to use the LCM calculator
Enter between two and twelve integers, separated by commas, semicolons or spaces. Each integer may have up to twelve digits, with an optional plus or minus sign. Write one thousand as 1000: a comma separates entries, so 1,000 means two entries, 1 and 0. The total list may contain up to 400 characters.
The main result gives the LCM, and the steps show how each new number is combined with the running result. Use Advanced to see the GCF, choose how many positive common multiples to list, or switch the task to Fraction denominators. The answer updates as you edit. An invalid entry clears the previous results and identifies the field to correct.
All answers use exact integer arithmetic. Long answers wrap rather than being rounded or converted to scientific notation. This tool accepts integer literals and numeric fractions in the appropriate task; it does not parse decimals, powers such as 2^3, variables or polynomials. To use a power, first evaluate it and enter the resulting integer.
What is the least common multiple?
For positive integers, the least common multiple is the smallest positive integer divisible by every number in the list. “Lowest common multiple” means the same thing. A multiple of 6 is obtained by multiplying 6 by an integer: its positive multiples begin 6, 12, 18, 24, 30. The positive multiples of 8 begin 8, 16, 24, 32. Their first shared value is 24, so LCM(6, 8) = 24.
The result is not always the product. Multiplying 6 by 8 gives 48, which is a common multiple, but it is not the smallest. The common factor 2 was counted in both inputs. Removing that repeated factor gives 48 ÷ 2 = 24.
The LCM is useful when two repeating patterns need a shared interval. For example, if one event repeats every 6 minutes and another every 8 minutes, and both happen together now, they next coincide after 24 minutes. That interpretation assumes exact, constant intervals and the same starting time; the calculator itself only computes the integers you enter.
LCM formula using the GCF or GCD
The greatest common divisor (GCD) is also called the greatest common factor (GCF). For two nonzero integers:
The calculation divides before multiplying. For 12 and 18, their GCD is 6, so the LCM is (12 ÷ 6) × 18 = 36. The Euclidean algorithm finds the GCD by taking remainders: 18 divided by 12 leaves 6, and 12 divided by 6 leaves 0. The last nonzero remainder is the GCD.
For a longer list, combine the first pair and then combine that result with the next number. With 6, 8 and 9, the first step gives 24. The GCD of 24 and 9 is 3, so the next step gives (24 ÷ 3) × 9 = 72. The pairwise product identity should not be applied directly to the product and GCF of an entire list.
Prime factorization explains why it works
Another way to find the LCM is to take each prime factor at the highest power appearing in any input. For example:
| Number | Prime factorization |
|---|---|
| 12 | 2² × 3 |
| 18 | 2 × 3² |
| LCM | 2² × 3² = 36 |
Taking a smaller power would make the result fail to be divisible by one of the inputs. Taking a larger power would give a common multiple, but not the least one. For the GCF, take the lowest power shared by all inputs instead; here that gives 2 × 3 = 6.
Find the first common multiples of 6 and 8
Once the LCM is known, every positive common multiple is a positive integer multiple of it. For 6 and 8, the first five are 24, 48, 72, 96 and 120. In Advanced, choose a count from 1 to 12 to change the list. The count changes how many results are listed, not the LCM itself.
The diagram compares multiples on a linear scale from zero to the LCM. The highlighted end of every row marks their first shared positive value. It shows up to four rows and at most the first twelve ticks per row; an ellipsis indicates omitted ticks. A large gap in the drawing does not mean intermediate multiples do not exist. For long lists or large results, use the exact answer and worked steps alongside the illustration.
Least common denominator of fractions
To rewrite fractions with the same denominator, use the LCM of their positive denominators. For 1/6 and 1/8, the LCD is 24. Multiply the numerator and denominator of the first fraction by 4 and the second by 3:
Choose Advanced → Fraction denominators to obtain both the LCD and the equivalent fractions. Enter each fraction with a slash, such as 1/6, 1/8. Numerators and denominators must be integer literals within the same twelve-digit limit. Zero numerators are allowed; zero denominators are not.
This task uses denominators as entered, without reducing first. Thus 2/4, 3/6 produces LCD 12 and equivalents 6/12, 6/12. If you simplify both fractions first to 1/2, their reduced denominators have LCM 2. Both approaches preserve the fraction values, but they answer different questions. The explicit entered-denominator rule makes the result predictable when following a worksheet or comparing a prescribed set of denominators.
Finding a fraction LCD is also different from finding the LCM of rational numbers. This tool supports the denominator task. It does not calculate rational-number LCM or accept algebraic rational expressions with variables.
Negative numbers, zero and repeated values
Integer signs are ignored for LCM and GCF: −6 and 8 have the same LCM, 24, as 6 and 8. Repeating a number does not change the result. The LCM of 12, 12 and −12 is 12.
For a list containing zero, the calculator uses the convention LCM = 0. There is then no positive common multiple, so it displays that explanation instead of a positive-multiple list. GCF(0, 8) is 8, while GCF(0, 0) is defined here as 0. These conventions extend the usual positive-integer definition; a zero result does not identify a positive meeting interval.
For fractions, a negative denominator moves its sign to the numerator. For instance, −1/−6 is positive 1/6, so together with 1/8 it becomes 4/24 and 3/24. The tool retains the entered denominator magnitudes when finding the LCD.
References
- Wolfram MathWorld: Least Common Multiple, especially the prime-power rule, GCD identity and associativity.
- OpenStax Prealgebra 2e: Visualize Fractions, for numerator/denominator definitions and equivalent fractions.
Read the formula definitions, supported input ranges, and limitations before using this estimate.