Least Common Multiple Calculator

Find the exact least common multiple of up to 20 whole numbers and audit it through prime exponents.

Your numbers

Live

Instant result. Updates while you type.

Your result

Updated now
—

Enter your numbers.

LCM calculator for multiple integers with prime-factor audit

The least common multiple is the smallest number every input divides into. For two numbers, divide their product by their GCF: LCM(12, 18) = 12 × 18 ÷ 6 = 36. With 12, 18 and 30, keep each prime at its highest power (2², 3², 5) to get 180. Paste up to 20 whole numbers to see the answer and every step.

Editorial checkSuccessive GCD/LCM identity and prime-exponent audit checked against OpenStax methods; the common-pairs table is generated by the same Euclidean routine.Updated October 24, 2026Read the publication standard

Inputs used by this calculator

Least Common Multiple Calculator uses the fields below. The starting values reproduce the page example; replace them with values from the same units and time period before using the result.

Field-by-field reference for Least Common Multiple Calculator.
InputStarting exampleAccepted valueHow it is used
Whole numbers separated by commas, spaces or lines12, 18, 30Text or a list in the format shownSupplies the whole numbers separated by commas, spaces or lines quantity used by the published equation or result breakdown.
LCM keeps the largest required prime powersEvery input must divide the result, so the LCM includes each prime at its highest exponent among the inputs.1Prime factors2Largest exponents3Least common multiple
  1. Prime factors
  2. Largest exponents
  3. Least common multiple
LCM keeps the largest required prime powersEvery input must divide the result, so the LCM includes each prime at its highest exponent among the inputs.

What least common multiple means

The LCM is the smallest nonnegative integer divisible by every entered integer. It synchronizes repeating cycles and finds common denominators.

Prime-factor method

Factor each number and retain every prime at the largest exponent appearing in any input.

LCM(12,18)=2²×3²=36

GCD relationship

For two nonzero integers, multiplying and dividing by their GCD avoids listing multiples.

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

Worked three-number example

12=2²×3, 18=2×3² and 30=2×3×5. Keeping 2², 3² and 5 gives 180.

Zero and negative inputs

Signs do not change divisibility. By the convention used here, any set containing zero has LCM zero.

Practical uses and limits

LCM can align schedules, periodic signals and fraction denominators. Extremely large cycles may be mathematically correct but impractical in a real system.

LCM and GCF of common pairs

Computed with the Euclidean algorithm. The product of the GCF and the LCM always equals the product of the two numbers.
NumbersGCFLCMReduced ratio
8 and 124242 : 3
12 and 186362 : 3
15 and 255753 : 5
16 and 248482 : 3
18 and 246723 : 4
20 and 3010602 : 3
24 and 3612722 : 3
36 and 48121443 : 4
42 and 56141683 : 4
48 and 72241442 : 3
60 and 90301802 : 3
84 and 126422522 : 3

LCM by prime exponents

The LCM takes the maximum exponent for every prime.
InputPrime factorizationContribution
122²×32² and 3
182×3²3²
302×3×55
LCM2²×3²×5180

Frequently asked questions

What is the LCM of 12 and 18?

It is 36.

What is the LCM of 8 and 12?

It is 24: 8 × 12 = 96, divided by their GCF of 4.

How do I find the LCM to add fractions?

Use the LCM of the denominators as the common denominator. For 1/8 + 1/12, the LCM is 24, so the sum is 3/24 + 2/24 = 5/24.

Can I enter more than two numbers?

Yes, up to 20.

Does order change the LCM?

No.

What happens if one number is zero?

This calculator returns zero.

Are negative numbers allowed?

Yes. Their absolute values are used.

How is LCM different from GCF?

LCM is a shared multiple; GCF is a shared divisor.

What to keep in mind

Signs are ignored. If any entered number is zero, the LCM is zero. Each absolute value must be at most one trillion and at most 20 values are accepted.

Results are rounded for display in US format, with money in dollars and cents; CSV exports keep full calculation precision. This is a calculation summary, not an official certificate.

Sources and references

Manage privacy choices