Least Common Multiple Calculator
Enter first integer, second integer to find lcm. LCM = abs(First integer × Second integer) ÷ gcd(First integer,Second integer).
How the result changes
Only first integer changes; all other inputs stay at your current values. Each dot represents one whole-number input. This is not a forecast of real-world outcomes.
About this calculation
Least Common Multiple: find lcm from first integer, second integer. Greatest common divisor and least common multiple describe shared structure between integers.
Formula
LCM = abs(First integer × Second integer) ÷ gcd(First integer,Second integer)
Worked example
With First integer: 12, Second integer: 18, lcm is 36.
Calculation method
The rule is LCM = abs(First integer × Second integer) ÷ gcd(First integer,Second integer).
For this least common multiple example, changing first integer from 12 to 13 while keeping the other inputs fixed changes lCM from 36 to 234.
Reading lCM
The GCD is the largest positive integer dividing both values. The LCM is the smallest positive integer divisible by both. In the worked values on this page, first integer 12, second integer 18 produce lcm 36.
Practical use
Use GCD to simplify fractions and LCM to align repeating cycles or denominators. The specific task here is to find lcm from first integer, second integer.
Limits and common mistakes
These are integer calculations. A zero input needs special interpretation, and a pair of zeros has no finite LCM under the usual convention. Verify first integer before interpreting lCM; a value measured on another basis would answer a different question.
Why the relationship works
The greatest common divisor identifies the largest integer that divides both inputs without remainder; the least common multiple finds the smallest positive shared multiple. They answer different questions. Their product equals the absolute product of the two integers when the standard definitions apply. The least common multiple rule uses first integer, second integer in LCM = abs(First integer × Second integer) ÷ gcd(First integer,Second integer); read each symbol as the field named on this page.
Interpreting another set of values
For least common multiple, the fields labeled first integer, second integer are the known quantities. The calculator solves for lcm using LCM = abs(First integer × Second integer) ÷ gcd(First integer,Second integer). Clarify whether the output is an integer count, a selected term, or a sum of terms. The index and the rule about order or repetition determine which mathematical object is being counted. When comparing two calculations, keep their units and input definitions identical.
For a second least common multiple check, keep the other default inputs fixed and change first integer from 12 to 14. LCM changes from 36 to 126. This is a comparison of two particular cases. Repeat it near the values relevant to your task; do not assume that every formula changes at a constant rate.
Checks and limits
Use integers as inputs. A greatest common divisor can be checked by dividing both values; a least common multiple must be divisible by both. Zero needs special interpretation, so inspect the calculator’s validation and the convention relevant to your problem. The reported lcm is 36 in the worked example. Keep its stated unit or counting convention when checking it against another calculation.
Inputs
- First integer
- Second integer