A gradient theory of thermoelasticity of porous media was formulated. In the proposed theory, the effect of changing the volume of the solid fraction was introduced. The constitutive equations as well as the basic equations of movement and heat conduction were derived and their discussion was carried out. The problem of the propagation of small disturbances and the established dispersion relation for the propagation of harmonic waves were studied.