Instructions
Weigh the substance. If the substance is a liquid or gas -- and for some solids -- this will mean weighing an empty container first and then weighing the container with the substance in it. Subtract the first weight from the second weight to get the weight of the substance.
Find the moles per gram of substance you are measuring. If the substance is an element, this will be easy -- just look on the periodic table for atomic weight. If the substance is a compound, find the atomic weights of all the constitute elements and use the formula for the substance to compute the molecular weight. For example, the formula for sulphuric acid is H2SO4. There are two hydrogen atoms, one sulphur atom and four oxygen atoms in each sulphuric acid molecule. To find the molecular weight of a molecule of sulphuric acid, add two times the atomic weight of hydrogen, the atomic weight of sulphur and four times the atomic weight of oxygen.
Divide the mass of the substance by the molecular weight of the substance to get the moles in your sample. If you know how many moles you want and the molecular mass, multiple the moles by the molecular weight to find out how many grams you need.