GCD / LCM
Find greatest common divisor and least common multiple with factor displays
GCD(12, 18, 24) & LCM(12, 18, 24)
GCD
6
LCM
72
Prime factors
12 = 2 × 2 × 3
18 = 2 × 3 × 3
24 = 2 × 2 × 2 × 3
About this calculator
The GCD/LCM Calculator finds the greatest common divisor and least common multiple of up to 5 integers at once. Prime factor breakdowns show exactly why each result appears. Useful for simplifying fractions, solving scheduling problems, and exploring number theory.
Common examples
- GCD(12, 18) = 6, LCM(12, 18) = 36
- GCD(24, 36, 48) = 12, LCM(24, 36, 48) = 144
- GCD(7, 13) = 1, LCM(7, 13) = 91 (coprime numbers)
- GCD(100, 75) = 25, LCM(100, 75) = 300
- GCD(0, 8) = 8, LCM(0, 8) = 0