The molar mass is calculated by looking up the relative atomic mass values on a periodic table. The relative atomic mass is a value without units that is calculated on a Carbon-12 scale.
By looking at the periodic table (values will be to 3 significant figures [<em>2</em><em> for hydrogen though]</em>): Molar mass (M) of 1 mole of Carbon = 12.0 g/mol Molar mass (M) of 1 mole of Hydrogen = 1.0 g/mol Molar mass (M) of 1 mole of Oxygen = 16.0 g/mol
So the molar mass is essentially the relative atomic mass (RAM), but molar mass has a unit, but RAM doesn't (it is a ratio).
Given the formula is C6H12O6 (without putting the numbers as subscripts), we can calculate as follows: M (C6H12O6) = (6 x 12.0) + (12 x 1.0) + (6 x 16.0) = 72.0 + 12.0 + 96.0 = 180.0 g/mol