The relative formula mass of a compound is calculated by adding together the relative atomic mass values for all the atoms in its formula. One mole of any gas has a volume of 24 dm3 or 24,000 cm3 at rtp (room temperature and pressure). This volume is called the molar volume of a gas.