Changing Temperature, Changing Density. Most matter increases in volume when it gets hotter. For example, if an iron rod is heated, it will get longer and fatter and its density will decrease. This happens because the mass of the rod stays the same, but its volume increases.