LCM Calculator
Calculate the least common multiple of numbers. Free online LCM calculator with step-by-step solution.
The LCM Calculator finds the Least Common Multiple of two or more numbers—the smallest positive integer divisible by all given numbers. Essential for adding fractions with different denominators, scheduling recurring events, and solving number theory problems. Enter your numbers to get the LCM instantly with a clear explanation of the calculation method.
LCM Calculator
Two or more whole numbers, separated by commas or spaces.
Formula: LCM(a, b) = |a × b| ÷ GCD(a, b); for more numbers, apply it pairwise
Worked example
- Prime factors: 4 = 2²
- Prime factors: 6 = 2 × 3
- Prime factors: 8 = 2³
- Take the highest power of each prime: 2³ × 3 = 24
- LCM(4, 6) = 4 × 6 ÷ GCD(4, 6) = 24 ÷ 2 = 12
- LCM(12, 8) = 12 × 8 ÷ GCD(12, 8) = 96 ÷ 4 = 24
Replace these values in the calculator above to compute your own numbers.
Common use cases
- Finding common denominators for fractions
- Scheduling recurring events
- Gear ratio calculations
- Pattern repetition calculations
- Number theory problem solving
How to use
- Enter two or more numbers
- Click calculate to find the LCM
- View the prime factorization method
- See the step-by-step solution
- Use for fraction operations
FAQ
What is LCM?
The Least Common Multiple is the smallest number divisible by all given numbers. LCM(4,6) = 12.
How is LCM calculated?
LCM(a,b) = (a × b) ÷ GCD(a,b), or by taking the highest power of each prime factor from all numbers.
What's the relationship between GCD and LCM?
GCD(a,b) × LCM(a,b) = a × b. They're inversely related.
When do I need LCM?
Common uses include adding fractions, finding when events sync up, and calculating tile patterns.
Related tools
- GCD CalculatorCalculate the greatest common divisor of numbers. Free online GCD/GCF calculator using Euclidean algorithm.
- Prime Factorization CalculatorFind the prime factorization of any number. Free online prime factor calculator with factor tree.
- Ratio SimplifierSimplify ratios to their lowest terms. Free online ratio simplifier calculator for math, recipes, and…
- Fraction to Decimal CalculatorConvert fractions to decimals instantly. Free online fraction to decimal calculator with step-by-step…
- Modulo CalculatorCalculate the modulo (remainder) of division. Free online modulo calculator for programming and math.
- Prime Number CheckerCheck if a number is prime. Free online prime checker with divisibility analysis and next prime finder.