The second virial coefficient is usually written as B, or
.
The second virial coefficient is given by

where
is the intermolecular pair potential. Notice that the expression within the parenthesis
of the integral is the Mayer f-function.
For any hard convex body
The second virial coefficient for any hard convex body is given by the exact relation

where

where
is
the volume,
, the surface area, and
the mean radius of curvature.
Hard spheres
For hard spheres one has

leading to

Note that
for the hard sphere is independent of temperature.
References
McQuarrie, 1976, eq. 12-40