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.
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 profileTopic 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 standardsMethodology & 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.
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 CalculatorProportion Calculator
Solve equivalent ratios and scaled values with cross multiplication.
Use Proportion CalculatorSources & 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)