If there is a mixture of gases in the environment, with different number of moles, na, nb, nc, the molar fraction of a gas "a" is:

Xa=na/nT

where

nT=na + nb + nc