Everyday tool
GCD and LCM Calculator
Enter whole numbers separated by commas or spaces to calculate their GCD and LCM.
Works in your browser. Your files stay on your device.
Greatest common divisor (GCD):
Least common multiple (LCM):
About this tool
GCD and LCM Calculator made simple.
The greatest common divisor is the largest integer that divides every input. The least common multiple is the smallest positive integer shared by all inputs. Zero and negative integers are supported; the LCM is undefined when every input is zero.
Common questions
About GCD and LCM Calculator.
How do I find the GCD and LCM?
Enter whole numbers separated by commas or spaces. The calculator finds the greatest common divisor and least common multiple of the set.
Can I use negative numbers or zero?
Yes. Negative integers are treated by their absolute value. The LCM is zero if any input is zero, except when every input is zero, where it is undefined.