The aim of the work is to assess the impact of oil and gas industry production on the environment, taking into account emergency situations using mathematical modeling of the impact of emergency situations on atmospheric air. In order to solve this problem, the situation with fires in the oil and gas industry facility is considered. During the combustion of oil and gas, the contained carbon and hydrogen atoms are oxidized. In addition, there are some sulfur-, nitrogen-, oxygen-containing compounds in the oil. To determine the quantitative indicators of the formation and consumption of all substances involved in the process of obtaining energy from the combustion of oil and from the environment, the equations of material balance are used. In the case considered by us, the zone of active air pollution in case of an emergency fire of a gushing well does not exceed the sanitary protection zone of the 1st hazard class, despite the aeroclimatic conditions of the region. Keywords: emergency situation, mathematical modeling, atmospheric air, pollutants, emissions of pollutants, oil oxidation.