ReadyCalcs · All calculators · Compare

Least Common Multiple Calculator

Enter first integer, second integer to find lcm. LCM = abs(First integer × Second integer) ÷ gcd(First integer,Second integer).

INPUT & RESULT

How the result changes

-20.9180380.9321
First integer (value)Current: 12 → 36

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

Greatest common divisor and least common multiple describe shared structure between integers. Use this least common multiple calculator to find lcm from first integer, second integer.

Formula

LCM = abs(First integer × Second integer) ÷ gcd(First integer,Second integer)

Worked example

With First integer: 12, Second integer: 18, lcm is 36.

How to calculate lCM

The rule is LCM = abs(First integer × Second integer) ÷ gcd(First integer,Second integer).

In the least common multiple example, first integer 12 produces lCM 36. Entering 13 instead produces 234.

Reading lCM

The GCD is the largest positive integer dividing both values. The LCM is the smallest positive integer divisible by both. With first integer 12, second integer 18, the calculator returns lcm 36.

Practical use

Use GCD to simplify fractions and LCM to align repeating cycles or denominators. Find the first common cycle length for repeating events with different whole-number intervals.

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.

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). A sequence term is a value at one stated position, not the sum of every preceding position. Confirm whether the first term is indexed as one before interpreting the requested index. 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. Holding the other fields fixed isolates the effect of first integer for this input step. Use the formula to check how a different step would affect the answer.

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

Related calculators

Start with your task