Skip to content
Zesona
LCM CalculatorLocal

LCM Calculator

Find the least common multiple of two or more whole numbers, exactly.

  • Free
  • No sign-up
  • Runs in your browser

Input

Runs in your browser

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. 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.

Other tools you might reach for next.