Skip to content

Greatest Common Divisor

In mathematics, the greatest common divisor (GCD), also known as greatest common factor (GCF), of two or more integers, which are not all zero, is the largest positive integer that divides each of the integers.

Version
v2 · 2026-11-14 · History
Domain-specific #
9754
Domain group
Formal Sciences
Origin domain
Mathematics
Subdomain
Number Theory → Mathematics

Core Idea

Greatest Common Divisor is treated here as the recurring mathematics, logic, and statistics identity summarized by this source-grounded definition: In mathematics, the greatest common divisor (GCD), also known as greatest common factor (GCF), of two or more integers, which are not all zero, is the largest positive integer that divides each of the integers. In mathematics, the greatest common divisor (GCD), also known as greatest common factor (GCF), of two or more integers, which are not all zero, is the largest positive integer that divides each of the integers.

How would you explain it like I'm…

Biggest Fair-Share Number

Say you have 8 apples and 12 oranges and want to make matching snack bags with no fruit left over. The biggest number of bags you can make is 4. That number, the biggest one that splits both piles evenly, is the Greatest Common Divisor.

Biggest Shared Divider

The Greatest Common Divisor of two numbers is the largest whole number that divides both of them with no remainder. For 8 and 12, the numbers that divide 8 are 1, 2, 4, 8, and the ones that divide 12 are 1, 2, 3, 4, 6, 12. The biggest one they share is 4, so the GCD is 4. It's also called the greatest common factor or highest common factor. You can use it for more than two numbers too.

Largest Common Divisor

The Greatest Common Divisor (GCD) of two or more integers, not all zero, is the largest positive integer that divides each of them exactly. It's written gcd(x, y); for example, gcd(8, 12) = 4. Other names include greatest common factor (GCF) and highest common factor (HCF), and historically 'greatest common measure.' The 'not all zero' condition matters because every integer divides 0, so gcd(0, 0) would have no largest value. The idea also extends beyond integers, for instance to polynomials.

 

For integers a₁, …, aₖ not all zero, the greatest common divisor gcd(a₁, …, aₖ) is the largest positive integer d dividing every aᵢ. The non-zero requirement ensures the set of common divisors is finite and so has a maximum. A standard example is gcd(8, 12) = 4, since the common positive divisors are 1, 2, and 4. Equivalent names include greatest common factor, highest common factor, and the older greatest common measure. The notion generalizes to polynomials and to other commutative rings, where 'greatest' is understood via divisibility rather than size. What identifies the concept is exactly this definition—largest positive common divisor—not merely the name or a familiar example.

Scope of Application

  • CalculationUsing prime factorizations. In practice, this method is only feasible for small numbers, as computing prime factorizations takes too long.

  • OverviewDefinition. This is the meaning of "greatest" that is used for the generalizations of the concept of GCD.

  • Euclid's algorithm. The method introduced by Euclid for computing greatest common divisors is based on the fact that, given two positive integers and such that , the common divisors of and are the same.

  • Euclid's algorithm. So, Euclid's method for computing the greatest common divisor of two positive integers consists of replacing the larger number with the difference of the numbers, and repeating this until the two.

  • Euclid's algorithm. This method can be very slow if one number is much larger than the other.

Clarity

A clear use of Greatest Common Divisor names the carrier, the operative relation, and the conditions under which the source treats the identity as present. The minimal definition is In mathematics, the greatest common divisor (GCD), also known as greatest common factor (GCF), of two or more integers, which are not all zero, is the largest positive integer that divides each of the integers.

Manages Complexity

Greatest Common Divisor compresses multiple mathematics, logic, and statistics details into a stable diagnostic relation. The source shows both the central mechanism—greatest common divisors can be computed by determining the prime factorizations of the two numbers and comparing factors.—and the practical consequence—this is commonly proved by using either Euclid's lemma, the fundamental theorem of arithmetic, or the Euclidean algorithm.

Abstract Reasoning

  1. Type the carrier. Identify the mathematics, logic, and statistics entities to which the claim applies.
  2. State the relation. Use the source-grounded identity: In mathematics, the greatest common divisor (GCD), also known as greatest common factor (GCF), of two or more integers, which are not all zero, is the largest positive integer that divides each of the integers.
  3. Check operation and conditions.

Knowledge Transfer

Within the home domain. Knowledge about Greatest Common Divisor transfers literally when a new case preserves the same carrier type, relation, and recognition test. In practice, this method is only feasible for small numbers, as computing prime factorizations takes too long. This is the meaning of "greatest" that is used for the generalizations of the concept of GCD. Beyond the home domain. No canonical parent is asserted for Greatest Common Divisor.

Neighborhood in Abstraction Space

Greatest Common Divisor sits in a moderately populated region (48th percentile for distinctiveness): it has near-neighbors but no dense thicket of look-alikes.

Family — Number-Theoretic Properties & Tests (22 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14