Least Common Multiple Calculator
Least Common Multiple Calculator
Signed Ints

Negative Number LCM Calculator

Find the positive LCM using absolute values of negative and positive integers.

Negative Number LCM Calculator Inputs

Supports negative integers: LCM is always strictly positive

Calculation Result Verified Result
Answer
--
Calculation Output

Step-by-Step Explanation

Calculating initial values...

How Negative Number LCM Calculator Works?

The Negative Number LCM Calculator works by taking the absolute value of every entry first, then folding the list, because a least common multiple is defined as a positive integer.

1. Strips the signs

An entry of −12 becomes 12 before any arithmetic runs.

2. Records the original input

The step list keeps the signed form, so the source values stay readable.

3. Folds the absolute values

Each pair fold uses the standard GCD division on the unsigned numbers.

4. Returns a positive result

The answer stays positive, even when every input is negative.

Negative Number LCM Calculator Formula

The Negative Number LCM Calculator uses LCM(a, b) = LCM(|a|, |b|), so signs drop out before the division.

LCM(a, b) = |a × b| ÷ GCD(|a|, |b|)

Formula Terms

Absolute value of a
Discards the minus sign and keeps the magnitude.
Sign rule
Signs cancel inside the absolute value, so LCM(−12, 18) equals LCM(12, 18).
Positivity
The least common multiple is the smallest positive common multiple, which rules out negative answers.

Worked Example

  1. 1Input: −12, 18, −30.
  2. 2Absolute values: 12, 18, 30.
  3. 3LCM(12, 18) = 36.
  4. 4LCM(36, 30) = 180.
  5. 5LCM(−12, 18, −30) = 180, a positive integer.

Negative Number LCM Calculator Conversion Table

The table below converts 7 signed inputs into their absolute values and LCM.

Signed inputAbsolute valuesLCMSign of result
−4, 64, 612positive
4, −64, 612positive
−4, −64, 612positive
−12, 1812, 1836positive
−12, −18, −3012, 18, 30180positive
−7, 137, 1391positive
−15, 25, −3515, 25, 35525positive

All four sign combinations of 4 and 6 return 12, which confirms that sign placement never shifts the answer.

What is Negative Number LCM Calculator?

The Negative Number LCM Calculator is a signed-integer solver that returns the positive least common multiple of inputs carrying minus signs.

Negative integers do have common multiples, and −36 is a common multiple of −12 and 18. The least common multiple names the smallest positive one, which is 36, so the sign disappears by definition rather than by preference.

Zero stays invalid. An input of 0 has no positive multiple, so the calculator reports the set as undefined instead of returning 0.

What are the uses of Negative Number LCM Calculator?

The Negative Number LCM Calculator has 4 main uses.

  • Clearing signed denominators

    Fractions written as 1/−6 convert to the positive denominator 6 before addition.

  • Checking sign conventions in homework

    Textbook answers list 36 rather than −36 for the pair −12 and 18.

  • Handling signed sensor offsets

    Offsets of −15, 25 and −35 units repeat together every 525 units.

  • Validating code behaviour

    Library functions returning negative values for negative input can be compared against the positive definition.

Related LCM Calculators

View All →