LCM Calculator
Calculate the Least Common Multiple (LCM) of two or more numbers — all in your browser, instant results.
About the LCM Calculator
This LCM calculator runs entirely in your browser. Enter two or more integers separated by commas, and the tool computes the least common multiple along with the prime factorization of each number.
How it works
For two numbers, the LCM is calculated as LCM(a, b) = |a × b| / GCD(a, b). For more than two numbers, the calculator reduces pairwise using this formula. The GCD is computed with the Euclidean algorithm.
Frequently asked questions
Does this tool upload my data? No. All calculations happen locally in your browser.
Can I enter decimals? The LCM is defined for integers. Decimals are rejected — please round or truncate to whole numbers first.
What if one of the numbers is zero? The LCM of any number and 0 is 0, by convention.
What is the prime factorization step? The tool decomposes each input into its prime factors and lists them, so you can verify the result.