One mole of carbon atoms has a mass of exactly 12 g. Because magnesium atoms each have twice the mass of carbon atoms (24Mg compared with 12C), one mole of magnesium has a mass of 24 g. In fact, one mole of any element has a mass in grams that is equal to its relative atomic mass. One mole of iron has a mass of 56 g