We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
Least Common Multiple (LCM) Calculator
Was this tool helpful to use?
Your feedback helps us make it better
Quickly calculate the least common multiple (LCM) of two or more integers. Supports space-separated number list input.
LCM(4, 6) = 12Overview
Understand what the tool solves, how it works, and the boundaries of its data.
The least common multiple (LCM) of positive integers is the smallest positive integer divisible by every number in the list. For 4 6, the result is 12: both 4 and 6 divide it evenly, and no smaller positive number does. This calculator accepts a list, so you can find the LCM of two or more values in one pass.
For two numbers, the calculation can use their greatest common divisor (GCD): LCM(a, b) = a × b ÷ GCD(a, b). For a longer list, it combines values successively: calculate the LCM of the first pair, then combine that result with the next value. For example, LCM(6, 15) = 30, and LCM(30, 10) = 30, so the LCM of 6, 15, and 10 is 30.
Guide
Follow the workflow and verify inputs and outputs with practical examples.
Separate values with spaces, commas, or line breaks. For instance, enter 12, 18, 24 or put each value on its own line.
The calculation updates as the input changes. The result panel shows the LCM, an equation such as LCM(12, 18, 24) = 72, and the list of numbers recognized by the calculator.
Use the copy control beside the main value for a compact answer, or copy the equation when you want to keep the inputs with it.
Check that the recognized-number list contains every intended input before relying on the answer. The parser reads integer prefixes, so a fragment such as 12abc may be read as 12 rather than rejected as a whole.
Use cases
See how the tool fits into real work and everyday tasks.
For 1/6 + 1/15, the LCM of 6 and 15 is 30. Rewrite the fractions as 5/30 and 2/30, then add them to get 7/30.
If two events repeat every 4 and 6 days and start together, their intervals next line up after 12 days. The starting alignment matters: different start dates require accounting for the offset separately.
A quantity divisible into groups of either 8 or 12 needs to be a multiple of both. The smallest such total is 24, which makes three groups of 8 or two groups of 12.
Q&A
Find concise answers to common questions and confusing cases.
Yes. Enter two or more positive integers in one list. The calculator combines them in sequence and shows the recognized values alongside the final equation.
Zero and negative values are filtered out. If fewer than two positive integers remain, the calculator asks for more valid numbers; it does not apply a convention that returns zero for an LCM containing zero.
The parser takes the integer prefix of each separated item. For example, 6.8 can be read as 6. Use whole positive integers only, then confirm the recognized-number list.
It is at least as large as the greatest input, but it can equal that input. For example, 18 is already a multiple of both 6 and 18, so their LCM is 18.
Notes
Review scope, result limitations, and important precautions before use.
Only positive integer inputs should be used. The page filters out nonpositive values and may parse an integer prefix from a malformed item, so verify the displayed input list. JavaScript number arithmetic also has a finite exact-integer range; very large inputs or intermediate products may no longer be represented exactly. Use an arbitrary-precision calculation when exact results beyond that range matter.
Related
Discover related tools, collections, and available API capabilities.