Surrounding rock of coal seam was one of the important factors to gas occurrence. The coal seam gas occurrence was studied by the index of roof strata thickness or sand content rate;we found that there were certain shortcomings. In order to reasonably evaluate the influence of coal seam surrounding rock on gas occurrence in Panji mining area, we quantitatively evaluated the effect of coal seam surrounding rock on gas occurrence by influence coefficient of roof strata thickness, and built six mathematical models of the variational gas content in the mining area which is divided into six gas geological units. The results shows that the coal seam gas content is mainly influenced by 20 mroof strata in each gas geological unit, the gas content presents the tendency of increase, and with the influence coefficient of strata thickness increases, they exist a significant linear relationship.