The molar mass of a compound is equal to the sum of the atomic masses of its constituent atoms in g/mol. Although there is no physical way of measuring the number of moles of a compound, we can relate its mass to the number of moles by using the compound's molar mass as a direct conversion factor.