Our free GCD calculator finds the greatest common divisor of two numbers in seconds. GCD stands for greatest common divisor, the largest whole number that divides both numbers exactly, and it is useful for simplifying fractions.
These figures are estimates only for educational purposes. No personal data is collected or saved.
How to use this GCD calculator
Enter two whole numbers, then click Calculate GCD. The calculator uses the Euclidean algorithm, which repeatedly replaces the larger number by the remainder when it is divided by the smaller one, until the remainder is 0. For example, the GCD of 48 and 180 is 12, because 12 is the largest number that divides both exactly. Change either value to try a new calculation — nothing is saved or shared.
Frequently asked questions
What is the greatest common divisor?
The greatest common divisor, or GCD, is the largest whole number that divides two or more numbers without leaving a remainder. For 48 and 180, the common divisors include 1, 2, 3, 4, 6, and 12, and the greatest is 12.
How does the GCD help with fractions?
Dividing the top and bottom of a fraction by their GCD simplifies it. For example, 48/180 simplifies to 4/15 when both are divided by 12.
What if the GCD is 1?
If the GCD is 1, the numbers are coprime — they share no common divisor other than 1. For example, the GCD of 8 and 15 is 1.
What other calculators can I use?
Try our LCM calculator for the least common multiple, the factorial calculator for whole-number products, or the percentage calculator for percentages. You can also View all calculators.