GCD and LCM Calculator

Calculate greatest common divisor and least common multiple of two integers.

GCD & LCM Calculator helps you find the greatest common divisor and least common multiple of two integers. Enter first whole number (a) and second whole number (b), review the breakdown, and use the guidance below to understand what the number means — and what it does not. When to use GCD & LCM Calculator GCD & LCM Calculator is for arithmetic, algebra, geometry, and number tools. Find the greatest common divisor and least common multiple of two integers. Useful for simplifying fractions and aligning repeating cycles. How GCD / LCM is calculated The GCD comes from repeated division (Euclid’s method): divide the larger number by the smaller, then divide the smaller by the remainder, and so on until the remainder is 0. Then LCM = (a × b) ÷ GCD. LCM from GCD: LCM = (a × b) ÷ GCD. GCD: divide the larger number by the smaller, then the smaller by the remainder, until the remainder is 0.