Unlike other air tools, such as an impact wrench or driver, nail guns use a very small amount of air each time they are run. If you only intend to use a nail gun every once in a while, you can get by with pretty much any size of compressor, from a 1-gallon tank and up.