Greatest common factor (GCF) of 4 and 12 is 4. We will now calculate the prime factors of 4 and 12, than find the greatest common factor (greatest common divisor (gcd)) of the numbers by matching the biggest common factor of 4 and 12.