GCD and LCM Definitions
The Greatest Common Divisor (GCD) is the largest number that divides evenly into all your given numbers. The Least Common Multiple (LCM) is the smallest number that all your given numbers divide evenly into.
The Euclidean Algorithm
This calculator finds GCD using the Euclidean algorithm — repeatedly replacing the larger number with the remainder of dividing it by the smaller number, until the remainder is zero. This is one of the oldest and most efficient algorithms in mathematics.
LCM(a, b) = (a × b) ÷ GCD(a, b)
Common Uses
- GCD: Simplifying fractions to lowest terms, dividing items into equal groups
- LCM: Finding a common denominator when adding fractions, scheduling repeating events (e.g., "when will these two events next coincide?")