Finding molar mass starts with units of grams per mole (g/mol). When calculating molecular weight of a chemical compound, it tells us how many grams are in one mole of that substance. The formula weight is simply the weight in atomic mass units of all the atoms in a given formula.
In chemistry, the formula weight is a quantity computed by multiplying the atomic weight (in atomic mass units) of each element in a chemical formula by the number of atoms of that element present in the formula, then adding all of these products together.
This is how to calculate molar mass (average molecular weight), which is based on isotropically weighted averages. This is not the same as molecular mass, which is the mass of a single molecule of well-defined isotopes.