About this tool
Paste a list of whole numbers and get their greatest common divisor (also called HCF or GCF) and least common multiple. Optional step-by-step Euclid divisions show how the GCD was found, which is handy for homework. Big integers are handled exactly.
How to use GCD & LCM Calculator
- Type two or more whole numbers separated by commas or spaces.
- Read the GCD and LCM.
- Turn on the steps to see Euclid's algorithm.
Frequently asked questions
Is GCD the same as HCF or GCF?
Yes. Greatest common divisor, highest common factor and greatest common factor are three names for the same thing.
What if one number is 0?
The GCD ignores zeros (gcd(a, 0) = |a|), while the LCM becomes 0.
What does coprime mean?
Numbers are coprime when their GCD is 1, meaning they share no common factor other than 1.