Find the greatest common divisor and least common multiple of two numbers. Enter both.
Usage Tip
Once you know the GCD, the LCM is quick: divide one number by the GCD, then multiply by the other.
LCM = a × b ÷ GCD
They are linked: GCD times LCM equals the product of the two numbers.
The product check (GCD times LCM = a times b) confirms the result.
For more than two numbers, use the GCF or LCM list calculators.
The greatest common divisor is the largest number that divides both values with no remainder, and the least common multiple is the smallest number that both values divide into. For 12 and 18 the GCD is 6 and the LCM is 36. The two are linked: the product of two numbers equals their GCD multiplied by their LCM.
The GCD is used to reduce fractions to lowest terms, while the LCM helps when adding fractions with different denominators or finding when two repeating cycles coincide. The Euclidean algorithm finds the GCD by repeatedly replacing the larger number with the remainder of dividing it by the smaller. Two numbers whose GCD is 1 are called coprime.
