This number is called Avogadro's number or Avogadro's constant. It is used as the number of atoms for any substance, and the mass of 1 mole of a substance is its molar mass. Here's how to calculate the molar mass for elements and compounds.