Boltzmann's entropy formula
In statistical mechanics, Boltzmann's equation is a probability equation relating the entropy S of an ideal gas to the quantity W, which is the number of microstates corresponding to a given macrostate:
where kB is the Boltzmann constant (also written with k), which is equal to 1.38065 × 10 J/K.