This question already has an answer here:
I want to add a 100 amp sub-panel from a 200 amp main in an attached garage. It will be about 100 feet from sub to main. What gauge wire should I use? The sub panel is to hook up a 7.5 horse air compressor and a welder.