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
| Measure | Value | Meaning |
|---|---|---|
| Normalized inputs | 8, 12, 20 | Absolute values used for LCM calculations. |
| Least common multiple | 120 | Smallest positive shared multiple when all inputs are nonzero. |
| Zero handling | No zero inputs | Standard positive LCM applies. |
| Factor method | 120 | LCM from highest prime powers for factorable inputs. |
Pairwise LCM Steps
| Step | Formula | Running LCM |
|---|---|---|
| LCM(8, 12) | (8 / 4) x 12 | 24 |
| LCM(24, 20) | (24 / 4) x 20 | 120 |
Prime Factors
| Input | Prime factorization |
|---|---|
| 8 | 2^3 |
| 12 | 2^2 x 3 |
| 20 | 2^2 x 5 |
Highest Prime Powers
| Prime | Max exponent | Factor used |
|---|---|---|
| 2 | 3 | 2^3 |
| 3 | 1 | 3 |
| 5 | 1 | 5 |
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.
Checked by Jitendra Kumar
LCM Calculator - Least Common Multiple is checked for formula labels, source links, and result limits.
Jitendra Kumar, Founder & Editorial Standards Lead. Updated May 2026. Scope: math calculators.
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.
Step 1: Enter integers
Type two or more whole numbers in the input box.
Step 2: Review the LCM
The primary result card shows the least common multiple.
Step 3: Check pairwise steps
Use the running LCM table to see how each additional input changes the result.
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
| Concept | Rule | Use |
|---|---|---|
| LCM definition | smallest positive shared multiple | Finds the first value all inputs divide evenly. |
| Two-number rule | LCM(a,b) = |a x b| / GCD(a,b) | Efficient pairwise calculation for nonzero integers. |
| Multiple inputs | LCM(a,b,c) = LCM(LCM(a,b),c) | Fold each new value into the running LCM. |
| Prime factors | product of each prime at its highest exponent | Builds LCM from factorization. |
| Least common denominator | LCD = LCM of denominators | Used to add or subtract fractions. |
Examples
| Problem | LCM | Notes |
|---|---|---|
| LCM(8, 12, 20) | 120 | Highest powers: 2^3 x 3 x 5. |
| LCM(15, 20, 45) | 180 | Useful for repeated schedule cycles. |
| LCM(7, 11, 13) | 1,001 | Pairwise coprime values multiply together. |
| LCM(6, 10, 15) | 30 | The 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
Related Calculators
LCM / GCF Calculator
Calculate least common multiple, greatest common factor, and Euclidean steps.
Use LCM / GCF CalculatorFraction Calculator
Use LCM to find least common denominators for fraction arithmetic.
Use Fraction CalculatorLong Addition Calculator
Add long integers or decimals with aligned column work and carrying steps.
Use Long Addition CalculatorModulo Calculator
Calculate remainders, quotients, congruence checks, and divisibility.
Use Modulo CalculatorRelated Guides

Factors, Multiples & Number Theory Guide
Use this for factors, multiples, GCF, LCM, prime numbers, prime factorization, divisibility tests, relatively prime numbers, digit sums, and digital roots.
Read guide
Math Formulae Page: 440 K-12 Formulas
Use this as a broad formula reference across arithmetic, algebra, geometry, trigonometry, statistics, matrices, vectors, and calculus readiness.
Read guideSources & References
- 1.Wolfram MathWorld - Least Common Multiple(Accessed May 2026)
- 2.OpenStax Prealgebra - Prime Factorization and the Least Common Multiple(Accessed May 2026)
- 3.Khan Academy - Least Common Multiple(Accessed May 2026)