LCM Calculator

Use the LCM Calculator to find the smallest positive whole number that is a multiple of every value in a list. Enter from two to twenty positive integers to calculate an exact least common multiple for fraction denominators, repeating schedules, number patterns, and classroom problems.

Method reviewed by the NumUtility editorial team · Updated August 18, 2026

Calculate the LCM

Use 2–20 positive whole numbers. Each value may contain up to 50 digits.
Least common multiple180Numbers recognized3

How to use this lcm calculator

Enter two to twenty positive whole numbers separated by commas, spaces, semicolons, or new lines. The result updates as the list changes. Use only positive integers; zero, negative numbers, and decimals are outside this calculator's stated scope. Each input may contain up to fifty digits.

How the calculation works

A multiple is produced by multiplying a whole number by another whole number. A common multiple appears in the multiple lists of every input, and the least common multiple is the smallest positive value they share. Multiples of 12 and 18 first meet at 36.

The calculator uses the relationship between LCM and GCF instead of generating potentially long multiple lists. For two positive integers, lcm(a, b) = (a ÷ gcd(a, b)) × b. Dividing before multiplying keeps intermediate values smaller. For more inputs, the running LCM is combined with each next number.

Formulas

Two positive integers

LCM(a, b) = (a ÷ GCF(a, b)) × b

Multiple numbers

LCM(a, b, c) = lcm(lcm(a, b), c)

Worked examples

LCM of 12, 18, and 30

lcm(12, 18) = 36, then lcm(36, 30) = 180. The smallest positive multiple shared by all three numbers is 180.

A common denominator

The LCM of 6 and 8 is 24, so sixths and eighths can both be rewritten as twenty-fourths before adding or subtracting fractions.

Common uses

Finding common denominators

Use the LCM of fraction denominators as the least common denominator. This creates equal-sized parts while avoiding a larger common denominator than the calculation needs.

Coordinating repeating events

Find when repeating cycles can next coincide when their intervals are expressed in the same unit. Examples include classroom rotations, maintenance intervals, signals, or recurring schedules.

Patterns and divisibility

Identify the smallest positive value divisible by every number in a set. This supports number-pattern exercises, modular reasoning, and conversions that require a shared whole-number interval.

Accuracy and limitations

The calculator combines exact BigInt GCF and LCM operations, dividing before multiplication to limit intermediate growth. It accepts 2–20 positive whole numbers of up to 50 digits each.

A mathematical cycle result does not automatically account for start times, time zones, downtime, holidays, or real-world scheduling constraints. Confirm those assumptions before using an LCM in operational planning.

Frequently asked questions

What is the difference between LCM and GCF?

LCM is the smallest positive multiple shared by the inputs. GCF is the largest positive factor that divides all inputs. They answer opposite but related divisibility questions.

Can the LCM equal one of the inputs?

Yes. If one input is already a multiple of every other input, it is the LCM. For example, the LCM of 4 and 12 is 12.

Can I enter more than two numbers?

Yes. Enter from two to twenty positive whole numbers. The calculator combines the running LCM with each additional value.

Why can an LCM be much larger than the inputs?

Numbers with few shared factors need more multiplication before their multiple lists meet. Relatively prime numbers have an LCM equal to their product.

How is LCM useful for fractions?

The LCM of the denominators provides the least common denominator, which lets fractions be added or subtracted using equal-sized parts.

Is the LCM calculator free to use?

Yes. NumUtility is free, requires no account, and places no limit on ordinary calculations.

Are my entries stored?

No. The calculation runs in your browser. Values entered into the tool are not sent to NumUtility or saved by us.

Related calculators

Related guides