Hydrostatic balance makes the atmospheric column mass . Multiplying by the surface area gives the mass of a thin hydrostatic atmosphere
where the second expression neglects the top pressure and atmospheric self-gravity.