LCM Calculator
An LCM calculator (Least Common Multiple) is a mathematical utility that finds the smallest positive integer that is a multiple of two or more numbers. The calculator evaluates the inputs using methods such as listing multiples, prime factorization, or the greatest common divisor formula. It outputs the least common multiple along with step-by-step math explanations for each calculation method. Students, teachers, and developers use this tool to find common denominators for fractions, solve scheduling problems, and analyze periodic events.
Enter two or more positive whole numbers. The calculator returns the least common multiple using the GCF identity, with the GCF of the list and the step by step work.
Quick Answer
Find the least common multiple (LCM) of two or more numbers. Enter your numbers to compute the smallest shared multiple and prime factorization work.
Two or more positive whole numbers, comma- or space-separated. · e.g. 12, 18, 30
The LCM (least common multiple) is the smallest whole number that every input divides evenly.
Steps
- lcm(12, 18) = 12 × 18 ÷ gcd(12, 18) = 36
LCM
36
lcm(12, 18)
LCM is computed pairwise as lcm(a, b) = (a × b) ÷ gcd(a, b), then folded across the list. The result is the smallest positive integer that every input divides evenly.
Examples
LCM of 4 and 6
= 12
LCM of 12, 18, 30
= 180
LCM of 7 and 11
= 77 (coprime → product)
How it works
For any pair of positive integers a and b, the product a × b equals gcf(a, b) × lcm(a, b). Dividing by the GCF gives the LCM. For more than two inputs, the calculator folds the pairwise rule across the list.
Pairwise · lcm(a, b) = (a × b) ÷ gcd(a, b)
More numbers · lcm(a, b, c) = lcm(lcm(a, b), c)
All inputs must be positive whole numbers.
Related math calculators
- GCF calculator for the greatest common factor, the building block of the LCM.
- Factor calculator for factors, factor pairs, and prime factorization.
- Fraction calculator uses the LCM to find common denominators for addition and subtraction.
- Ratio calculator for simplifying and comparing ratios.
- All education calculators.
Related Calculators
More tools from Education



