Least Common Multiple Calculator

Least common multiple

72

Greatest common factor

6

All results
Calculator inputs
?

One to 100 whole integers, separated by commas, spaces, semicolons or new lines. Up to 60 digits each. A comma is a separator, not a thousands-grouping mark. Negative inputs use their magnitudes; zero follows the documented algorithm convention. API callers should supply the data as a quoted string to retain every digit.

Cover the required maximum powers

Complete running GCF and LCM calculation

Every input is included, in entered order. LCM updates by (prior LCM / pair GCF) × current magnitude; a zero input makes the extended LCM zero. Exact integer strings survive CSV export.

Complete running GCF and LCM calculation
Input rowEntered integerMagnitude usedRunning GCFGCF of prior LCM and current magnitudeRunning LCM
1121212112
218186636
3242461272

Euclidean divisions for the first pair

Dividend = divisor × quotient + remainder. The last nonzero divisor is the first pair’s GCF. Further inputs are folded into the complete reduction table; this worksheet shows the first pair only.

Euclidean divisions for the first pair
StepDividendDivisorInteger quotientRemainder
11218012
2181216
312620

All common positive factors when enumerable

The common factors of the inputs are exactly the positive divisors of their GCF.

All common positive factors when enumerable
Common factorGCF divided by this factor
16
23
32
61

Prime factorization of each input

Complete trial-division factorizations for the entered positive magnitudes up to 1,000,000,000. Signs do not change the prime powers.

Prime factorization of each input
Input rowMagnitudePrime powers
1122^2 × 3
2182 × 3^2
3242^3 × 3

Why GCF takes minimum powers and LCM takes maximum powers

A missing prime has exponent zero. To divide every input, use minimum powers. To be divisible by every input, use maximum powers. The empty product for all ones is 1.

Why GCF takes minimum powers and LCM takes maximum powers
PrimeExponent in each input (same order)Minimum: GCF exponentMaximum: LCM exponent
22, 1, 313
31, 2, 112

First ten common multiples

These are examples k × LCM for k = 1 through 10, not a list of every integer multiple.

First ten common multiples
MultiplierLCM × multiplier
172
2144
3216
4288
5360
6432
7504
8576
9648
10720

How to use the Least Common Multiple Calculator

Find the least common multiple (LCM) of up to 100 integers. Compare prime powers, follow exact GCF-based steps and list common multiples without rounding large answers.

  1. 1. Enter your inputs

    Start with Integers to compare. Use the units shown beside each field and open the field help when you need its assumptions.

  2. 2. Read the results

    Results update as you enter valid values. Review Least common multiple, Greatest common factor, Input count. Keep the entered units and settings consistent when comparing scenarios.

  3. 3. Check the calculation

    At most 100 integers and 60 decimal digits per input. No fractional, decimal or scientific-notation list entries. Fraction reduction and repeat-interval applications require quantities to represent the same units.

    See the worked example and method

Understanding the Least Common Multiple Calculator: uses, inputs and results

The Least Common Multiple Calculator finds a shared positive multiple for a list of positive integers, useful when aligning repeating counts.

What is the smallest shared repeat, rather than the largest shared divisor?

The LCM Calculator finds an exact common multiple and shows which prime powers and GCF-based reductions make it minimal for positive inputs.

Shared factors are counted once

For 12 and 18, divide out their GCF 6 before multiplying, giving LCM 36.

Intervals need a shared starting point

Repeat periods 6 and 8 align again after 24 only when the events start together. Different offsets need another model.

Further reading: OpenStax: multiples and factors

What do the Least Common Multiple Calculator inputs mean?

Integers to compare
One to 100 whole integers, separated by commas, spaces, semicolons or new lines. Up to 60 digits each. A comma is a separator, not a thousands-grouping mark. Negative inputs use their magnitudes; zero follows the documented algorithm convention. API callers should supply the data as a quoted string to retain every digit.

When is the Least Common Multiple Calculator useful?

Find a common denominator

Use denominators as inputs to identify a least common multiple for fraction work.

Compare repeating intervals

Enter integer interval lengths to find when they align under an exact repeating-cycle assumption.

Least Common Multiple Calculator: a practical reference

The fixed “12 18 24” example on this page produces the results below. It illustrates the stated model; your live results above use your current inputs.

Integers to compare
12, 18, 24
Least common multiple
72
Greatest common factor
6
Review the example inputs and calculation

Use the result in context

At most 100 integers and 60 decimal digits per input. No fractional, decimal or scientific-notation list entries. Fraction reduction and repeat-interval applications require quantities to represent the same units.

Try the Least Common Multiple Calculator·Read the subject guide·Explore a related calculator

Worked example: Least Common Multiple Calculator

12 18 24. This fixed reference example shows one complete scenario; the interactive results above use your current inputs.

View the example inputs
Integers to compare
12, 18, 24
Calculated results for the fixed example
Calculated quantityExample result
Least common multiple72
Greatest common factor6
Input count3

LCM Calculator: find the first shared multiple and understand why it works

How do I find the least common multiple of several numbers?

For positive integers, the least common multiple is the smallest positive number divisible by every input. The LCM Calculator accepts a list and builds the shared multiple step by step. For 12, 18 and 24, the answer is 72: each input divides 72 without a remainder.

A multiple is a number reached by multiplying an integer by another whole number. It points outward from the starting number. A factor instead divides the number exactly. That distinction explains why LCM is used for shared repeat intervals while GCF is used for largest equal group sizes.

OpenStax: multiples and factors

Can I calculate LCM for more than two integers?

Yes. After finding the LCM of the first two magnitudes, combine that result with the next magnitude and continue. For 12 and 18, the running LCM is 36; combining 36 with 24 gives 72. The complete reduction table retains each entered row and the running result.

The tool supports up to 100 whole integers, each with at most 60 decimal digits. Commas, spaces, semicolons and new lines separate entries. A comma is not a thousands separator: enter 1000 as one integer, because 1,000 describes two list entries under this syntax.

Why does the LCM use the highest prime powers?

A number divisible by every input must contain enough copies of each prime to cover the most demanding input. For 12 = 2² × 3, 18 = 2 × 3² and 24 = 2³ × 3, the required powers are 2³ and 3², giving 72. Adding all the prime exponents would overcount shared factors.

The prime-power table compares every input’s exponent with the minimum used by GCF and the maximum used by LCM. Complete factorization is shown when all magnitudes fit the stated 1-to-1,000,000,000 range. Larger exact inputs still use the Euclidean method; the page does not pretend a partial factorization is complete.

How does GCF make LCM calculation more efficient?

For two nonzero integers, LCM(a,b) = |(a/GCF(a,b)) × b|. Dividing out the overlap first avoids counting the common part twice. For 18 and 24, the GCF is 6, so the LCM is (18/6) × 24 = 72.

The two-number identity GCF × LCM = |a × b| is a useful cross-check. It does not generally extend by multiplying all three or more original numbers together. The complete table applies the two-number step repeatedly and retains exact integer digits throughout.

When should I use an LCM Calculator?

Use LCM for least common denominators and idealized repeating schedules. Denominators 8 and 12 have LCM 24, so 1/8 + 1/12 can be rewritten as 3/24 + 2/24. The LCM identifies a shared denominator; the Fraction Calculator performs the full fraction operation.

For events that start together and repeat every 6 and 8 minutes, the next shared repeat is after 24 minutes. The start-together condition matters: different starting offsets are a separate problem. Real calendars also have variable month lengths, so an integer interval model should not be mistaken for automatic calendar scheduling.

What happens with zero, negative values or very large integers?

Negative inputs use their absolute magnitudes. The implemented extended convention is LCM(0,a) = 0: when an input is zero there is no positive common multiple, and zero is the only common multiple. This is explicitly different from the smallest-positive definition used for positive inputs.

Large LCM answers remain strings of exact digits, rather than being rounded to a floating-point integer. The examples table lists the first ten positive common multiples only when a positive LCM exists. For a longer calculation, CSV and print retain the complete reduction ledger rather than only its first screen of rows.

Formula and calculation method

GCF/GCD is found by exact integer Euclidean remainders. LCM(a,b) = |(a/GCF(a,b)) × b| for nonzero a and b. Multiple inputs are folded in order.

All arithmetic uses integer strings and BigInt. LCM stays a string; large GCF values are also strings, retaining digits beyond the safe floating-point integer range.

Negative signs do not change nonnegative GCF/LCM magnitudes. The extended convention is GCF(0,a)=|a|, GCF(0,0)=0 and LCM(0,a)=0; all-zero inputs have no greatest positive common divisor.

Prime factorizations are provided only when every magnitude is from 1 through 1,000,000,000. Common-divisor enumeration requires a positive GCF no greater than that bound. Neither limit affects the exact GCF/LCM calculation.

For positive integers, GCF uses minimum prime exponents and LCM uses maximum exponents. For two inputs only, GCF × LCM = |a × b|; this product identity does not generally hold for three or more inputs.

Scope and Limitations

  • At most 100 integers and 60 decimal digits per input. No fractional, decimal or scientific-notation list entries. Fraction reduction and repeat-interval applications require quantities to represent the same units.

Reference Sources

Frequently asked questions

Is the LCM always the product of the inputs?

No. Shared factors reduce the necessary product. For 12 and 18, the LCM is 36 rather than 216.

What is the least common denominator?

For positive integer denominators, it is their LCM. It lets fractions be expressed with one shared denominator.

Can I enter negative integers?

Yes. The calculation uses their magnitudes and reports a nonnegative LCM.

Why does a zero input give LCM zero?

The tool uses the standard extended algorithm convention. There is no positive common multiple when one of the inputs is zero.

Will a large LCM lose its last digits?

Integer arithmetic and string results preserve all calculated digits within the documented input limits.