Calculate the Greatest Common Divisor (GCD) and Least Common Multiple (LCM) of two or more numbers. Free.
Find the Greatest Common Divisor (GCD) and Least Common Multiple (LCM) of two or more integers. Useful for simplifying fractions, scheduling problems, and number theory.
The GCD (also called HCF — Highest Common Factor) is the largest number that divides all given numbers evenly. The LCM is the smallest number that all given numbers divide into evenly. For example, GCD(12, 18) = 6 and LCM(12, 18) = 36.
The calculator uses the Euclidean algorithm for GCD — repeatedly replace the larger number with the remainder of dividing the two. LCM is then computed as (a × b) ÷ GCD(a, b). This approach is efficient even for large numbers.
GCD (Greatest Common Divisor) is used to simplify fractions. LCM (Least Common Multiple) is used to find the common denominator when adding or subtracting fractions.
Yes — enter multiple numbers separated by commas. The GCD and LCM work for any count of integers, not just two.