Example 1
- a = 48
- b = 18
6
6 is the largest number dividing both 48 and 18.
Type two integers. GCD, the greatest common divisor, is the largest number that divides both with no remainder. GCD(48, 18) = 6. GCD(17, 13) = 1, because they are coprime.
The GCD is computed for integers. When one number is zero, the result is the absolute value of the other. Article: greatest common divisor.
Enter two whole numbers.
GCD (greatest common divisor) is the largest integer that divides both given numbers with no remainder. GCD(48, 18) = 6, because 48 = 6 × 8 and 18 = 6 × 3, and 12 no longer divides 18. GCD(17, 13) = 1: they share no divisor larger than 1.
Euclid’s algorithm: divide the larger by the smaller and repeat with the remainder until the remainder is zero. 48 ÷ 18 leaves 12, 18 ÷ 12 leaves 6, 12 ÷ 6 leaves 0, so the last nonzero divisor is 6. If one number is zero, the result is the absolute value of the other. 0 and 0 the calculator rejects.
The fields are First number and Second number, integers only. Type 48 and 18, click Calculate. A minus does not change GCD: GCD(−48, 18) is still 6. A fraction 12.5 does not run.
LCM, the least common multiple, uses GCD: LCM(48, 18) = |48 × 18| ÷ 6 = 144. Reducing the ratio 48:18 by 6 gives 8:3, on the ratio of two numbers page.
Without both integers, nothing computes. The header unit switch does not reduce 48 and 18. They still give 6.
GCD(12, 18) = 6, GCD(100, 25) = 25, GCD(7, 3) = 1. GCD(84, 36) = 12, because 84 = 12 × 7 and 36 = 12 × 3.
GCD(a, b) - largest d such that d divides both a and b
The greatest common divisor of two integers. GCD(48, 18) = 6. GCD(17, 13) = 1, because they are coprime.
6
6 is the largest number dividing both 48 and 18.
1
GCD = 1 - no common divisor greater than 1.
25
When a = 0, GCD(a, b) = |b|.
100
The GCD of two equal numbers is that number.
12
What is the GCD of 84 and 36? 12.
48
What is the GCD of 144 and 96? 48.
6
What is the GCD of 270 and 192? 6.
7
What is the GCD of 35 and 49? 7.
6. 6 divides 48 and 18, and 12 no longer divides 18. That is the greatest common divisor.
Greatest common divisor. The largest integer that divides both given numbers with no remainder.
1. They are coprime: they share no divisor larger than 1.
48 ÷ 18 remainder 12, 18 ÷ 12 remainder 6, 12 ÷ 6 remainder 0. The last nonzero is 6.
GCD divides both. LCM, the least common multiple, is divisible by both. LCM(48, 18) = 144.
12. 84 = 12 × 7, 36 = 12 × 3. GCD(12, 18) is 6 as well.
Yes. GCD looks at size, so GCD(−48, 18) = 6, the same as GCD(48, 18).
The result is the absolute value of the other. 0 and 0 the calculator rejects.
No. Integers only. A fraction such as 12.5 stays out of this card.
To reduce. GCD(12, 8) = 4, so the ratio 3:2 lives on ratio of two numbers.
The calculator computes the same formula as the definition below.
Page updated in 2026.