For the defaults, GCD(24, 36) = 12 and LCM(24, 36) = 72. The greatest common divisor (GCD) is the largest integer that divides both numbers evenly, and the least common multiple (LCM) is the smallest positive integer both numbers divide into; the GCD comes from the Euclidean algorithm, and the LCM follows from the identity LCM = |a·b| ÷ GCD.
Suppose you put the default values into GCD & LCM Calculator:
Plug those into the formula GCD: Euclidean algorithm; LCM = |a·b| / GCD and the result is:
GCD & LCM Calculator uses the formula shown in the math card and is computed from first principles. Inputs are validated for sensible ranges; results are computed client-side for instant feedback and do not leave your browser.
Last reviewed July 2, 2026 · Editorial policy