Changing climatic conditions cause the variability of the parameters of the building’s surroundings, which in turn causes both the gains and losses of heat to change over time. There is variability in both daily and annual cycles. Meeting the requirements of thermal comfort in rooms requires maintaining the required parameters, including constant temperature. Heat gains and losses must be balanced, and this balance is ensured through appropriate heating systems. At the same time, the above means that the demand for heating buildings is not constant but depends on external weather conditions and the energy efficiency of the building. This, in turn, affects the thermal inertia, causing changes in the partition temperature to occur slower than the changes in air temperature. Therefore, the amplitude of the heating power changes is not proportional to the amplitude of the outside air temperature change. The paper presents an example of the analysis of thermal dynamics in buildings. Various aspects of heat transfer in the building were investigated taking into account the transient conditions. The variability of temperature over time at different depths of the partition was analysed, showing the results graphically. The periodic variability of the outside air temperature and the intensity of solar radiation were described by the Fourier series. Moreover, the article shows the influence of the thermal insulation thickness of the external wall on the annual amplitude of temperature changes and on the duration of the heating season, which is important from the point of view of optimization.