The Clausius gas equation can be written
Comparison with the virial expansion gives
For a hard-sphere gas of atomic radius , the pair potential is infinite when the center separation is below and zero otherwise. Thus
This is four times the volume of one atom and is the per-particle excluded volume appearing in the dilute equation of state.
Let the pair potential be , so that in the dilute limit only one interacting pair need be retained at a time. The leading Mayer f-function expansion is
For each pair, translation of its center coordinate supplies and the other particles supply . Neglecting boundary corrections,
The Taylor expansion and in the thermodynamic limit give
Using and the ideal gas free energy,
With number density , this is , so is precisely the second virial coefficient.