The greatest common factor, or GCF, is the largest positive whole number that divides every number in a group exactly. Find it by listing factors, using prime factorization, or applying the Euclidean algorithm.

Open the greatest-common-factor worksheet PDF or take the GCF quiz. Use the worked examples to choose a method, then check the short practice below.

Method 1: list the factors

Example 1: find GCF(18,24). Factors of 18 are 1, 2, 3, 6, 9, 18. Factors of 24 are 1, 2, 3, 4, 6, 8, 12, 24. Shared factors are 1, 2, 3, 6, so the GCF is 6. Listing works well for small numbers because you can see every common factor.

A factor divides a number exactly; a multiple is made by multiplying it. For example, 6 is a factor of 18, while 36 is a multiple of 18. Confusing factors and multiples leads to choosing an LCM when a GCF is needed.

Method 2: use prime factorization

Example 2: find GCF(72,90). Write \(72=2^3\times3^2\) and \(90=2\times3^2\times5\). Use only primes appearing in both numbers, with their smallest exponents. Thus \(\mathrm{GCF}=2^1\times3^2=18\). The 5 is not shared.

To simplify \(72/90\), divide numerator and denominator by 18: \(\frac{72\div18}{90\div18}=\frac45\). Using the GCF reduces the fraction in one step.

Method 3: the Euclidean algorithm

Divide the larger number by the smaller. Replace the pair with the divisor and the remainder, and repeat until the remainder is zero. The last nonzero divisor is the GCF.

Example 3: find GCF(84,30). \(84=2(30)+24\); \(30=1(24)+6\); \(24=4(6)+0\). The final nonzero divisor is 6, so the GCF is 6. If the first division is exact, stop immediately: \(24=2(12)+0\), so GCF(24,12)=12.

Apply the GCF to equal groups

There are 24 pencils and 36 erasers. To make the greatest number of identical supply bags with nothing left over, find GCF(24,36)=12. Make 12 bags, each containing \(24/12=2\) pencils and \(36/12=3\) erasers. The GCF counts bags in this problem, not objects per bag.

For positive integers with no shared prime factor, the GCF is 1. Such numbers are relatively prime; they do not both have to be prime. For example, 8 and 15 are relatively prime.

Practice with step-by-step answers

  1. Find GCF(20,32).
  2. Find GCF(27,45).
  3. Find GCF(14,25).
  4. Find GCF(24,36,60).
Show the steps
  1. \(20=2^2\times5\), \(32=2^5\). Shared prime power: \(2^2\). GCF = 4.
  2. \(27=3^3\), \(45=3^2\times5\). Use the smaller power of 3: GCF = 9.
  3. \(14=2\times7\), \(25=5^2\). No prime factor is shared, so GCF = 1.
  4. First GCF(24,36)=12. Since 12 divides 60, GCF of all three is 12.

Next, use the method to simplify fractions or compare it with the least common multiple.