The barometric equation gives the pressure dependence of a perfect gas in a gravitational potential. In particular
$$ P(h) = P_0e^{-\frac{mgh}{k_BT}} $$
where $m$ is the mass of molecules and $T$ the temperature of the gas.
What would happen if we had an atmosphere composed of different species? I would expect it to be layered with heavier gases at the bottom and lighter ones on top with transitions between gases looking something like a $tanh(h)$. Can this be derived from statistical mechanics relatively easily?