The aim of the present research was to develop a mathematical model for estimating the amount of viscous gas generated as a function of weather conditions. Due to the lack of models for predicting gas formation caused by sudden changes in weather conditions in the literature, such a model was developed in this study using the parameters of landfills recorded for over a year. The effect of temperature on landfill gas production has proved to be of particular interest. We constructed an algorithm for calculating the amount of the produced gas. The model developed in this study could improve the power control of the landfill power plant.