The entropy density s(T) is the derivative of the Helmholtz free energy with respect to temperature,

The Helmholtz free energy density can be expressed in terms of an integral over the density of states.

Here is the energy of phonons with frequency ω and D(ω) is the density of states. This result is discussed in Statistical Physics, Part 1 by Landau and Lifshitz and in the notes on the quantization of the electromagnetic field.

Differentiating with respect to T results in the following expression for the entropy,

The form below uses this formula to calculate the temperature dependence of the entropy density from tabulated data for the density of states. The density of states data is input as two columns in the textbox at the lower left. The first column is the angular-frequency ω in rad/s. The second column is the density of states. The units of the density of states depends on the dimensionality: s/m for 1d, s/m² for 2d, and s/m³ for 3d.

After the 'DoS → s(T)' button is pressed, the density of states is plotted on the left and s(T) is plotted from temperature T_{min} to temperature T_{max} on the right. The data for the s(T) plot also appear in tabular form in the lower right textbox. The first column is the temperature in Kelvin and the second column is the entropy density in units of J K^{-1} m^{-1}, J K^{-1} m^{-2}, or J K^{-1} m^{-3} depending on the dimensionality.