The mass of the sample divided by the amount of material is the molar mass of a chemical compound. The mass of a single gas particle multiplied by the Avogadro number gives the molar mass of that gas.