What is Greatest Common Factor (GCF) — Definition & Methods

What is Greatest Common Factor (GCF) — Definition & Methods

TL;DR

The Greatest Common Factor (GCF) — also called Highest Common Factor (HCF) or Greatest Common Divisor (GCD) — of two or more integers is the largest positive integer that divides each of them without remainder. This article gives the formal definition, walks through three methods to find it, distinguishes GCF from LCM, shows three worked examples, and clears up the most common mistakes.

The GCF is the largest of all the common factors — the highest number that appears in both lists.

The Formal Definition of GCF

The Greatest Common Factor (GCF) of two or more positive integers is the largest positive integer that divides each of them without leaving a remainder. It's also called:

Three names, one definition. The GCF of 12 and 18 is denoted gcd(12, 18) = 6.

If two numbers have a GCF of 1, they are called coprime (or relatively prime) — they share no factor larger than 1. gcd(8, 15) = 1, so 8 and 15 are coprime.

Quick reference.

Method 1 — Listing Factors

The straightforward approach. List every factor of each number, then pick the biggest one they share.

To find gcd(24, 36):

Works well for small numbers (under ∼50). For larger numbers, listing every factor takes too long — use one of the other two methods.

Method 2 — Prime Factorisation

The most popular school method. Factor each number into primes, then take the common prime factors with the lowest power.

To find gcd(48, 60):

Why this works: a factor of both numbers must use only primes that both numbers contain, and at most the power that the lesser number contains.

Method 3 — Euclidean Algorithm

The fastest method for large numbers — the algorithm Euclid (c. 300 BCE) gave in Book VII of his Elements.

The trick: gcd(a,b) = gcd(b, a mod b). Replace the larger number with the remainder, repeat until the remainder is 0. The last nonzero remainder is the GCF.

To find gcd(252, 105):

The algorithm finishes in O(log n) steps — fast even for 20-digit numbers used in RSA cryptography.

GCF vs LCM — The Easy Confusion

GCF LCM
What it means L argest common divisor S mallest common multiple
For gcd/lcm(12,18) 6 36
When to use Simplifying fractions, finding common factors Finding common denominators, scheduling problems
Identity gcd(a,b) × lcm(a,b) = a × b (same)

For 12 and 18: gcd × lcm = 6 × 36 = 216 = 12 × 18 ✓. Two numbers, two summary statistics.

Three Worked Examples Of GCF — Quick, Standard, Stretch

Quick. Find gcd(8,12).

Standard (Wrong Path First — Where Students Lose the Mark). Find gcd(36,54) using prime factorisation.

Stretch. Find gcd(144,96) using the Euclidean algorithm.

Cross-check by prime factorisation: 144 = 2^4 × 3^2, 96 = 2^5 × 3. Lowest powers: 2^4 × 3^1 = 16 × 3 = 48 ✓.

Where GCF Appears — Beyond the Worksheet

A few places this idea quietly does work:

Tripping Points to Avoid With GCF

Mistake 1: Taking the highest power instead of the lowest (in prime factorisation)

Mistake 2: Confusing GCF with LCM

Mistake 3: Forgetting the GCF of coprime numbers is 1

Conclusion

Quick Self-Check — Three Problems

  1. Find gcd(15,20) by listing factors.
  2. Find gcd(72,108) by prime factorisation.
  3. Find gcd(176,130) using the Euclidean algorithm.