CalculatorWallah logoCalculatorWallah

LCM Calculator - Least Common Multiple

Calculate the least common multiple of two or more integers with pairwise steps, prime factors, highest prime powers, and common-denominator guidance.

Last Updated: May 2026

LCM

120

Numbers used

3

GCF check

4

Status

Shared factors

LCM Inputs

Enter two or more integers. Separate values with commas, spaces, semicolons, or new lines. Negative signs are normalized to absolute values.

LCM Summary

MeasureValueMeaning
Normalized inputs8, 12, 20Absolute values used for LCM calculations.
Least common multiple120Smallest positive shared multiple when all inputs are nonzero.
Zero handlingNo zero inputsStandard positive LCM applies.
Factor method120LCM from highest prime powers for factorable inputs.

Pairwise LCM Steps

StepFormulaRunning LCM
LCM(8, 12)(8 / 4) x 1224
LCM(24, 20)(24 / 4) x 20120

Prime Factors

InputPrime factorization
82^3
122^2 x 3
202^2 x 5

Highest Prime Powers

PrimeMax exponentFactor used
232^3
313
515

Integer Math Notice

This calculator is for integer arithmetic and educational planning. Decimal values are ignored. For coursework or formal proofs, follow the notation and method required by your instructor or institution.

Reviewed For Methodology, Labels, And Sources

Every CalculatorWallah calculator is published with visible update labeling, linked source references, and founder-led review of formula clarity on trust-sensitive topics. Use results as planning support, then verify institution-, policy-, or jurisdiction-specific rules where they apply.

Reviewed By

Jitendra Kumar, Founder & Editorial Standards Lead, oversees methodology standards and trust-sensitive publishing decisions.

Review editor profile

Topic Ownership

Sales tax and tax-sensitive estimate tools, Education and GPA planning calculators, Health, protein, and screening-formula pages, Platform-wide publishing standards and methodology

See ownership standards

Methodology & Updates

Page updated May 2026. Trust-critical pages are reviewed when official rates or rules change. Evergreen calculator guides are checked on a recurring quarterly or annual cycle depending on topic volatility.

How to Use the LCM Calculator

Enter two or more whole numbers separated by commas, spaces, semicolons, or line breaks. Negative signs are normalized because LCM uses absolute divisibility.

Read the LCM result first, then use the pairwise steps and prime-power table to audit how the answer was built.

  1. Step 1: Enter integers

    Type two or more whole numbers in the input box.

  2. Step 2: Review the LCM

    The primary result card shows the least common multiple.

  3. Step 3: Check pairwise steps

    Use the running LCM table to see how each additional input changes the result.

  4. Step 4: Compare prime powers

    For smaller inputs, review the highest prime exponents used to build the LCM.

How This LCM Calculator Works

The calculator normalizes inputs to absolute integers, then calculates the LCM pairwise. For two nonzero values, the rule is LCM(a,b) = |a x b| / GCD(a,b).

For three or more values, the running LCM from the first two values is combined with the next input until every value has been included.

For smaller values, the calculator also shows prime factorizations and the highest prime powers used in the factor method.

Least Common Multiple Guide

Core LCM Rules

ConceptRuleUse
LCM definitionsmallest positive shared multipleFinds the first value all inputs divide evenly.
Two-number ruleLCM(a,b) = |a x b| / GCD(a,b)Efficient pairwise calculation for nonzero integers.
Multiple inputsLCM(a,b,c) = LCM(LCM(a,b),c)Fold each new value into the running LCM.
Prime factorsproduct of each prime at its highest exponentBuilds LCM from factorization.
Least common denominatorLCD = LCM of denominatorsUsed to add or subtract fractions.

Examples

ProblemLCMNotes
LCM(8, 12, 20)120Highest powers: 2^3 x 3 x 5.
LCM(15, 20, 45)180Useful for repeated schedule cycles.
LCM(7, 11, 13)1,001Pairwise coprime values multiply together.
LCM(6, 10, 15)30The smallest value divisible by all three inputs.

LCM Context

LCM is the natural tool when values need to meet at the same multiple. In fraction arithmetic, that means finding the least common denominator. In scheduling, it means finding when repeating cycles line up again.

If numbers are pairwise coprime, their LCM is the product of the numbers. When they share factors, the LCM avoids counting the same factor more times than needed.

Keep the research moving with LCM / GCF Calculator, Fraction Calculator, Long Addition Calculator, and Modulo Calculator.

Frequently Asked Questions

The least common multiple is the smallest positive number that is a multiple of each input value. For example, the LCM of 6, 10, and 15 is 30.

Prime factor each number, keep the highest exponent for every prime that appears, then multiply those prime powers together.

For two nonzero integers, use LCM(a,b) = absolute value of a times b divided by GCD(a,b). For more numbers, repeat the rule pairwise.

Yes. Enter up to 30 integers separated by commas, spaces, semicolons, or new lines.

LCM is based on divisibility, so negative signs are normalized and the calculator uses absolute values.

LCM is used for least common denominators, adding and subtracting fractions, repeating schedules, cycle alignment, and synchronized events.

Related Calculators

Sources & References

  1. 1.Wolfram MathWorld - Least Common Multiple(Accessed May 2026)
  2. 2.OpenStax Prealgebra - Prime Factorization and the Least Common Multiple(Accessed May 2026)
  3. 3.Khan Academy - Least Common Multiple(Accessed May 2026)