how many moles in grams of a compound?
Divide the mass of the compound in grams by the molar mass you just calculated. The answer is the number of moles of that mass of compound. For example, 25 grams of water equals 25/18.016 or 1.39 moles.