As the substance gains thermal energy, the density of a fluid decreases.
When the particles of a substance have more thermal energy, they move faster and farther apart.
Density is the closeness of the particles of a substance. The closer the particles, the higher the density.