Entropy is a measure of disorder or randomness in a system. The entropy of a perfect crystal at absolute zero is zero, while the entropy of the universe must always be greater than zero. Entropy is related to the number of arrangements of particles and helps determine the direction of spontaneous processes. The entropy of an ideal gas can be calculated using Boltzmann's equation and entropy always increases or stays the same for an isolated system and its surroundings according to the second law of thermodynamics. Entropy balance equations track the transfer and generation of entropy in a system.