Cyclic wetting and drying of soils due to changing weather conditions is characterised by a welldocumented hysteresis in the relationship between the pressure or matric potential and the water content in the soil. Hysteresis manifests itself through a difference in drying and wetting curves. Its presence suggests that there is dissipation of energy associated with intermittent wetting and drying of the soil, which can be released in the form of heat. In this paper, we discuss a model for evaluation of the energy dissipation rate due to soil-moisture hysteresis. The model has three main ingredients: (a) a hysteresis constitutive relationship between soil-water potential and moisture content in the soil, which is modelled by the Preisach operator; (b) a lumped form of Darcy's law assuming that the water flux is proportional to the difference of potentials in the soil and on its surface; (c) a rainfall term governing the evolution of the outer potential, which is modelled by a periodic forcing or a Poisson process. We propose a combination of analytic and numerical methods to evaluate the energy dissipation rate and how it is affected by the variation of rain parameters, such as the frequency of arrivals of rain cells and their shape, intensity and duration.