GCD Calculator
Calculate the Greatest Common Divisor (GCD) of a set of numbers.
Enter Your Numbers
Table of Contents
GCD Formula
The Greatest Common Divisor (GCD) of two or more numbers is the largest positive integer that divides all the numbers without leaving a remainder.
How to Calculate GCD
To calculate the GCD, follow these steps:
-
1Find the prime factorization of each number
-
2Take the lowest power of each common prime factor
-
3Multiply these prime factors together
For example, to find the GCD of 12 and 18:
18 = 2 × 3²
GCD = 2 × 3 = 6
GCD - Practical Examples
Example 1 Simplifying Fractions
To simplify the fraction 24/36, we need to find the GCD of 24 and 36.
GCD(24, 36) = 12
24/36 = (24÷12)/(36÷12) = 2/3
Example 2 Dividing Items Equally
A teacher has 48 pencils and 36 erasers. What is the largest number of students that can receive an equal number of pencils and erasers?
GCD(48, 36) = 12 students
Each student gets 4 pencils and 3 erasers
Example 3 Recurring Patterns
Two gears have 24 and 36 teeth respectively. After how many rotations will they align in the same position?
GCD(24, 36) = 12 teeth
First gear: 12/24 = 1/2 rotation
Second gear: 12/36 = 1/3 rotation