What the least common multiple means
A multiple is the result of multiplying a whole number by another whole number. The multiples of 12 begin 12, 24, 36, and 48. The multiples of 18 begin 18, 36, 54, and 72. The first positive value in both lists is 36, so 36 is their least common multiple.
The word least matters. Any later shared value is also a common multiple, but it is not the first one. The visual result lets you compare both sequences instead of accepting a number without seeing where it comes from.
How the calculator finds the LCM
The tool first finds the greatest common divisor with the Euclidean algorithm. It then divides before multiplying where possible, which keeps the intermediate value smaller. For positive integers a and b, the product of the GCD and LCM equals the product of a and b.
Prime factorization gives a second check. Take every prime that appears in either number and use the greatest exponent found. Twelve is 2² × 3 and 18 is 2 × 3², so the LCM is 2² × 3², or 36.
Read the graph and related results
The two horizontal rows show successive multiples. The highlighted marker is the first value shared by both rows. The related-results panel also reports the greatest common divisor, each prime factorization, and the product identity used to verify the answer.
If the inputs share no prime factors, their GCD is 1 and their LCM is simply their product. If one input already divides the other, the larger input is the LCM.
When an LCM is useful
LCM calculations help when repeating events, package quantities, or fractional terms must line up. Two schedules repeating every 12 and 18 days first meet again after 36 days. Fractions with denominators 12 and 18 can use 36 as their least common denominator.
A real scheduling problem may also depend on its starting time. The LCM describes the repeat interval; it does not by itself prove that two events which started at different times will occur together.
Input limits and checks
Use positive whole numbers only. Decimal inputs do not describe the integer-multiple problem handled here. For large values, check whether you really need the exact LCM or only a repeat interval within a practical range.
To check the result, divide it by each input. Both quotients must be whole numbers. Then inspect the rows of smaller multiples or the prime factors to confirm that no smaller positive common value exists.
LCM reference
The linked OpenStax section explains prime factorization and the least-common-multiple method used as the independent reference for this calculator. Hippo Calculator adds the GCD identity and the interactive multiple map as transparent checks.
Where the LCM result stops
- Zero and negative values are excluded because this page is designed for the least positive common multiple of positive whole numbers.
- Very large integers can exceed the exact-integer range of browser numbers, so inputs are limited to safe whole numbers.