From the moles of carbon dioxide, calculate the moles and mass of carbon produced. calculation, we must understand that the subscripts within a chemical formula represent the number of moles of atoms of each element present in the compound. Therefore in 1 mole of CO2, there is 1 mole of carbon and 2 moles of oxygen atoms. We can use this information molar ratio.