GCD & LCM calculator
Find the greatest common divisor (GCD) and least common multiple (LCM) of any set of whole numbers. The GCD — also called the highest common factor (HCF) — is the largest number that divides every value exactly. The LCM is the smallest number that every value divides into.
Enter two or more numbers, separated by commas or spaces, and both results update instantly. Everything runs in your browser, so nothing you enter is uploaded.