GCD & LCM Calculator
Find the Greatest Common Divisor (GCD/GCF/HCF) and Least Common Multiple (LCM) of 2 or more integers via Euclidean algorithm.
MATHFind the Greatest Common Divisor (GCD, also called GCF or HCF) and Least Common Multiple (LCM) of two or more integers using the Euclidean algorithm.
Identity: gcd(a, b) × lcm(a, b) = a × b. For 3+ numbers, both are computed iteratively: gcd(a, b, c) = gcd(gcd(a, b), c). The Euclidean algorithm is one of the oldest known algorithms — repeatedly replace the larger number with its remainder mod the smaller until you hit zero.