The colder the ground the more dense the gasoline, when it gets warmer gasoline expands, so buying in the afternoon or in the evening....your gallon is not exactly a gallon In the petroleum business, the specific gravity and the temperature of the gasoline, diesel and jet fuel, ethanol and other petroleum products plays an important role.