Check whether a number is prime, distinguishing a proof from strong evidence and naming a factor when it is composite.
LCM Calculator
Find the least common multiple of two or more whole numbers, exactly.
- Free
- No sign-up
- Runs in your browser
Input
Two or more whole numbers, separated by commas or spaces.
Ready
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Enter two or more whole numbers. The least common multiple appears with their GCD.
Questions about LCM Calculator
How does the LCM relate to the GCD?
For two numbers, their product equals their GCD times their LCM. So the LCM is computed as |a x b| / gcd(a, b) - dividing before multiplying, which keeps the intermediate value from growing unnecessarily. The relationship does not extend to three or more numbers.
Why is the LCM zero when one value is zero?
Because the only multiple of zero is zero, so it is the only candidate. Some definitions leave this case undefined; reporting 0 with an explanation is more useful than an error.
What is it used for?
Most commonly for adding fractions, where the LCM of the denominators is the smallest common denominator. Also for scheduling - two events every 4 and 6 days coincide every 12.
Is my data sent anywhere?
No. This runs as JavaScript in your browser tab: there is no network request carrying your numbers, nothing reaches a server log, and it keeps working with your connection off. You can confirm it in the browser’s network panel.
Does the LCM Calculator work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the LCM Calculator keeps working with the network switched off and nothing is ever sent to a server.
Related tools
Other tools you might reach for next.
Find the prime factorisation of a whole number, with the divisor count and sum, using Pollard’s rho for large factors.
Find the greatest common divisor of two or more whole numbers, with Euclid's steps and the Bezout coefficients.
Evaluate an expression with exact fraction arithmetic, trigonometry, logarithms and factorials, reporting whether the result is exact.
Reduce a fraction to lowest terms, with its mixed number and exact decimal form including any repeating block.
Add two fractions exactly, showing the common denominator step and reducing the result.
Subtract one fraction from another exactly, showing the common denominator step.
Multiply two fractions exactly, multiplying across and reducing the result.