Free online calculator

LCM Calculator

Find when whole-number cycles align or which common denominator to use for fractions. Enter signed integers separated by spaces or commas; the result uses exact integer arithmetic.

Separate numbers with commas or spaces. You can calculate more than two numbers at once.

Least common multiple
180
Numbers used
12, 18, 30

The calculator repeatedly applies LCM(a,b) = |a × b| ÷ GCF(a,b) until every entered integer has been included.

Least common multiple

  • For nonzero integers, LCM is the smallest positive common multiple. Signs are ignored; any zero input gives zero.
  • Shortcut for two numbers: For nonzero inputs, LCM(a, b) = |a × b| ÷ GCF(a, b). LCM(4, 6) = 24 ÷ 2 = 12.
  • Use it to find a common denominator: 1/4 + 1/6 → twelfths.
  • Prime factors: take each prime at its highest power.

How to use the LCM Calculator

  1. Enter signed integers in decimal digits separated by spaces or commas. Correct every invalid entry; none are silently discarded.
  2. Negative entries use their magnitudes. If any entry is zero, the result is zero by convention.
  3. For nonzero pairs, LCM(a,b) = |a×b|/GCF(a,b). The exact-integer calculation divides before multiplying, then combines the result with each remaining entry.

Cycle assumptions and zero convention

Signs are ignored. If any input is zero, this calculator returns zero by convention; for nonzero inputs the result is the smallest positive common multiple. Decimals and malformed entries are rejected.

Examples

LCM of 12 and 18

GCF(12,18) = 6, so LCM = (12 × 18) / 6 = 36.

LCM of 4, 6 and 10

The calculator first combines 4 and 6 to get 12, then combines 12 and 10 to get 60.

Check the result in context

Zero and signs: LCM(−12,18) = 36, since 36/12 = 3 and 36/18 = 2. LCM(0,18) is reported as 0.

LCM of all numbers from 1 to n

NumbersLCM
1 to 11
1 to 22
1 to 36
1 to 412
1 to 560
1 to 660
1 to 7420
1 to 8840
1 to 92,520
1 to 102,520
1 to 1127,720
1 to 1227,720

Frequently asked questions

What does LCM mean?

LCM means least common multiple, the smallest positive common multiple for nonzero inputs; this tool returns zero when any input is zero.

Can I calculate more than two numbers?

Yes. The calculator accepts multiple signed integers separated by commas or spaces.

How is LCM related to GCF?

For nonzero inputs, LCM(a,b) = |a × b| ÷ GCF(a,b).

Can I use negative numbers or zero?

Yes. Negative values use their absolute magnitudes. LCM is zero when any input is zero; GCF(0,n) = |n| and GCF(0,0) is reported as zero by convention.

Is LCM useful for fractions?

Yes. The LCM of denominators can be used as a least common denominator.

What is the LCM of 4 and 6?

12.

What is the smallest number divisible by 1 through 10?

2,520.

Do two cycles always meet after their LCM?

Only if they start together and retain fixed integer periods in the same units. Cycles every 4 and 6 days coincide after 12 days under those assumptions.

Related tools

More math tools