This is out-of-date. For the up-to-date estimates see:
https://sealevel.info/PgC_vs_Gt_CO2.html and
https://sealevel.info/conversion_factors.html
The Earth's atmosphere is variously estimated to have a mass of 5.1 to
However, atmospheric gas concentrations are customarily expressed in ppmv (parts-per-million by volume,
a/k/a molar fraction, µ mol/mol),
so to calculate the mass of one ppmv requires scaling according to the molecular weight of the gas in question.
(Note: if water vapor is ignored this is properly called the dry molar fraction.)
The average molecular weight of the Earth's atmosphere is 28.966 g/mole (≈29). So, for example: ↑
Carbon Dioxide:
That much CO2 contains (12/44)×3350 = 914 PgC. ↑
Methane:
†IPCC AR5 WGI uses a slightly different figure: 2.12 PgC per ppmv (Prather et al, 2012).
‡which are the approximate current (2022) average atmospheric concentrations of the two gasses: 416 ppmv CO2 and 1.90 ppmv CH4.