Abstract Decades of experience in the fight against endogenous fire hazard in coal mines indicate a major influence of certain conditions in a given area of the mine on the possibility of fire occurrence, such as: susceptibility of coals to spontaneous combustion, oxygen content in the air incoming to the self-heating coal, conditions of heat exchange between the self-heating coal mass and the environment This paper presents a numerical method for determining the critical conditions of spontaneous combustion of coal in longwall gob areas, i.e. conditions under which spontaneous combustion may occur. It has been assumed that crushed coal in the gob has a shape of a flat layer adjacent from the roof and floor side to the rocks. Our considerations have been limited to coals containing small amount of moisture. A simple model of oxidation kinetics on the coal surface expressed by the Arrhenius equation has been adopted. This model assumes that oxidation rate is independent of the amount of oxygen absorbed by coal. The rate of reaction depends only on temperature, with the parameters of the equation changing after the coal has reached the critical temperature. The article presents also a mathematical model of spontaneous heating of the coal layer in the gob area. It describes the heat balance in the coal as well as the oxygen and heat balance in the flowing gases. The model consists of a system of differential equations which are solved using numerical techniques. The developed computer program enables to perform the relevant calculations. In this paper, on the example of coal from a seam 405, we present the method for determining the following critical parameters of the layer of crushed coal: thickness of the layer, oxygen content in a stream of gases flowing through the layer and thermal conductivity of surrounding rocks.