Find
GCD(12, 18)
6
6The greatest common divisor of 12 and 18 is 6, the least common multiple is 36.
Euclidean algorithm: divide the larger number by the smaller one, then the divisor by the remainder, until the remainder is 0. The last divisor is the GCD.
Using prime factors: the GCD takes each shared factor with the smaller exponent, the LCM takes each factor with the larger one.
Both numbers consist of whole blocks of length 6; no larger common block fits.
GCD and LCM Calculator by Rechnerzentrale(opens in a new tab)