Add this free GCD calculator to your website or blog.
Euclid described this algorithm 2,300 years ago! It's incredibly efficient—even for huge numbers. Modern computers use it for cryptography.
Here's a cool relationship: GCD(a,b) × LCM(a,b) = a × b. So if you know GCD, you can easily find LCM.
To simplify a fraction like 12/18, divide both the numerator and denominator by their GCD (6). Result: 2/3. That's the lowest terms!
GCD is the LARGEST divisor. LCM is the SMALLEST multiple. Opposite concepts! GCD(12, 18) = 6. LCM(12, 18) = 36.
For large numbers, listing all factors is tedious and error-prone. Use the Euclidean algorithm instead—it's much faster.
Any number's GCD with 0 is the number itself. This is a special case that trips people up.