In this paper, the authors analyze, theoretically, the dependence of the work function on temperature within the
model proposed by one of the authors in his earlier works. In accordance with the introduced analytical equation, the thermal metal expansion leads directly to changes in the electron gas density and this, in turn, modifies
the value of the work function in a complicated way. The numerical calculations carried out by the authors also
show changes in the chemical potential of the metal, together with the changes in temperature. Knowing the
dependence of the chemical potential as well as the work function of the metal on the temperature, in the next
step, the authors analyze the influence of temperature on the dipole layer on the metal surface. All the calculations are applied to the example of metals for which the dependence of work function on temperature is known
from experimental research. The conducted analysis is a solid theoretical justification of the results of known
experimental works carried out in this field.