Higher and foundation tier
A shortened version of the periodic table is shown below. For each element there are two number in the box e.g. for magnesium the numbers 24 and 12 are alongside its symbol, Mg. The number 12 is the atomic number, the proton number. The other number is the relative atomic mass, Ar. It is the average mass of magnesium atoms taking into account the presence of any isotopes of magnesium. The mass of 1 mole of magnesium is simply the Ar expressed in grams, so 1 mole of magnesium is 12g, and of course 1 mole of any substance contains 6 x 1023 particles.
Examples using other elements from the periodic table.
The mass of 1 mole of an element is just the Ar expressed in grams
Carbon dioxide is a small molecule made up of three atoms, 1 atom of
carbon and 2 atoms of oxygen.
To calculate the relative formula mass, Mr of this molecule is a simple task, simply add up the relative atomic masses, Ar, for each of the atoms present. The calculated mass of the molecule is called the relative formula mass, it is given the symbol Mr.
To avoid confusion and mix-ups great care needs to be taken to ensure you are very clear about
the type of particle you are discussing e.g. oxygen gas is a diatomic gas, this means that
exists as a molecule, formula O2.
If we had 10 molecules of oxygen gas we would have 20 atoms of oxygen, since each molecule contains 2 atoms of oxygen. If we had 6x1023 molecules, that is 1 mole of molecules then we would have 2x6x1023 atoms of oxygen present, that is 2 moles of oxygen atoms.
The relative atomic mass of an oxygen atom is 16, Ar =16. So the mass of 1 mole of oxygen molecules is 32g. The mass of 1 mole of oxygen atoms is 16g. To avoid confusion you must be clear about the type of particle, atom, molecule or ion you are discussing.