Greatest Common Divisor (GCD) Calculator
What a GCD Calculator Does
The greatest common divisor, or GCD, is the largest number that divides two integers with no remainder. This tool accepts several numbers at once and returns their GCD instantly. Students use it constantly to simplify fractions, factor expressions, and solve number theory problems, since reducing 48/36 by their GCD of 12 gives the tidy fraction 4/3.
The Euclidean Algorithm and a Worked Example
Most tools rely on the Euclidean algorithm, which replaces the larger number with the remainder of dividing them, repeating until the remainder reaches zero. Take 48 and 36: 48 mod 36 leaves 12, then 36 mod 12 leaves 0, so the GCD is 12. That final nonzero remainder is the answer, however large the inputs are.
How to Use It and What to Avoid
Type your values into the Numbers field, separating them with commas or spaces, then press Calculate. The result shows the greatest common divisor of every number you entered. A useful trick: if the GCD of two numbers is 1, they share no common factors. Also, a GCD only makes sense for whole numbers.
Practical sizing problems lean on the same logic. To cut the largest square tiles that cover a 96 x 64 inch floor with no offcuts, run the Numbers field on 96 and 64: 96 mod 64 leaves 32, and 64 mod 32 leaves 0, so 32 inch tiles fit exactly. Three inputs work too, since entering 24, 36, 60 returns 12, the largest number dividing all three. Order never matters either, since typing 64, 96 into the Numbers field returns the same 32 as 96, 64.
Frequently Asked Questions
What is the GCD of 48 and 36?
Using the Euclidean algorithm, 48 mod 36 leaves a remainder of 12, and 36 mod 12 leaves 0. The greatest common divisor of 48 and 36 is therefore 12.
How does the Euclidean algorithm work?
It repeatedly replaces the larger number with the remainder of the division. For 48 and 36, the steps give 12 then 0, so 12 is the GCD.
How do I reduce a fraction with GCD?
Divide both the numerator and the denominator by their GCD. Since the GCD of 48 and 36 is 12, the fraction 48/36 simplifies neatly to 4/3.
What do coprime numbers mean?
Two numbers are coprime when their GCD is 1, meaning they share no factor greater than 1. For example, 8 and 15 are coprime even though both are composite.
Can the GCD cover more than two numbers?
Yes. Find it progressively: the GCD of 12 and 18 is 6, then the GCD of 6 and 24 is 6, so all three share 6.