GCD & LCM Calculator

Find exact greatest common divisors and least common multiples.

GCD & LCM Calculator
Local input
Output
Processing…
About this tool

Made for the task at hand.

Process two or more integers exactly with big-integer arithmetic. Negative signs do not change the non-negative GCD or LCM.

How to use

  1. Enter at least two integers separated by commas or spaces.
  2. Review the shared greatest common divisor.
  3. Use the least common multiple for denominators or cycles.
Your work stays yours.
Tool inputs are processed locally in your browser and are never sent to KitVerse servers. Clear the workspace when using a shared device.
Common questions
What is the LCM when zero is included?

The LCM is zero. The GCD still follows the Euclidean definition, including gcd(0, 0) = 0.

Are decimals accepted?

No. GCD and LCM here are integer operations, so decimal input is rejected.