Largest integer dividing both numbers.
GCF(a, b) = GCF(b, a mod b), where GCF(a, 0) = a
The most efficient way to compute the GCF of two integers is the Euclidean Algorithm. It works by repeatedly replacing the larger number with the remainder of dividing the larger by the smaller, until the remainder reaches zero. The last non-zero remainder is the GCF.
For more than two numbers, apply the algorithm iteratively: GCF(a, b, c) = GCF(GCF(a, b), c).
Step 1: GCF(180, 48) → 180 mod 48 = 36 (since 180 = 3 × 48 + 36) Step 2: GCF(48, 36) → 48 mod 36 = 12 (since 48 = 1 × 36 + 12) Step 3: GCF(36, 12) → 36 mod 12 = 0 (since 36 = 3 × 12 + 0) Remainder is 0, so the GCF is the last non-zero remainder.
Result: GCF(48, 180) = 12
The GCF of 48 and 180 is 12. This means 12 is the largest integer that divides both 48 and 180 evenly. For example, the fraction 48/180 simplifies to 4/15 by dividing both the numerator and denominator by 12.
The Greatest Common Factor (GCF) — also called the Greatest Common Divisor (GCD) or Highest Common Factor (HCF) — is the largest number that divides two or more integers exactly, with no remainder.
Repeatedly take remainders until you reach zero. Fast even for very large numbers.
Break each number into prime factors, then multiply the common prime factors together.
List all factors of each number, identify the largest shared one. Practical only for small numbers.
The Least Common Multiple (LCM) is the smallest number that both integers divide into. GCF and LCM are related by:
GCF(a, b) × LCM(a, b) = a × b
For 48 and 180: 12 × LCM = 48 × 180 = 8,640, so LCM = 720.
To simplify a fraction a/b, divide both the numerator and denominator by GCF(a, b). For example, 36/48 simplifies to 3/4 because GCF(36, 48) = 12, and 36÷12 = 3, 48÷12 = 4.
For any two positive integers a and b: GCF(a, b) × LCM(a, b) = a × b. This formula lets you find the LCM quickly if you already know the GCF.
The standard GCF is defined for positive integers. For fractions p/q and r/s, the GCF can be defined as GCF(p,r)/LCM(q,s), but this is a specialized extension not used in everyday arithmetic.
Prime factorization becomes computationally expensive for very large numbers (this difficulty actually underlies RSA cryptography). The Euclidean algorithm runs in O(log(min(a,b))) steps, making it dramatically faster for large integers.
GCF (Greatest Common Factor) and GCD (Greatest Common Divisor) are the same concept with different names. 'GCF' is more common in elementary and middle-school math, while 'GCD' is preferred in higher mathematics and computer science.
No. The GCF of two positive integers can never exceed the smaller of the two numbers, because no factor of a number can be larger than the number itself.
If the GCF equals 1, the two numbers are called **co-prime** (or relatively prime). They share no common factors other than 1. For example, GCF(8, 15) = 1.
Apply the Euclidean algorithm iteratively. First compute GCF(a, b), then compute GCF(result, c), and so on. For example, GCF(12, 18, 24) = GCF(GCF(12, 18), 24) = GCF(6, 24) = 6.
Yes. By the base case of the Euclidean algorithm, GCF(a, 0) = a. So GCF(15, 0) = 15. This is consistent with the definition since every integer divides 0.
Only sources that have been reviewed are shown. Unverified citations are never published.