Homemade hot cocoa mix typically lasts for up to six months if stored in an airtight container in a cool, dry place.