LCM & GCD Calculator — Free Online

The greatest common divisor (GCD, also called HCF in Indian textbooks) is the largest number that divides both inputs. The least common multiple (LCM) is the smallest positive number that both divide into. For two numbers they are linked by LCM(a, b) = a × b ÷ GCD(a, b). For 12 and 18, the GCD is 6 and the LCM is 36. This calculator takes two positive whole numbers and uses Euclid's algorithm to find their GCD, then derives the LCM. It is useful for simplifying fractions, finding a common denominator for two fractions and comparing two repeating schedules.

Free, fast, and runs entirely in your browser — no signup, no upload to a server.

Explore ConvertAI Hub

More Calculators

Browse categories

Sources we checked for LCM & GCD Calculator