You can predict the volume of a gas made in a reaction using the molar gas volume. At room temperature and pressure, 1 mole of any gas has a volume of 24 dm3. There are three steps. First, find the moles of the substance you are given, using moles = mass ÷ relative formula mass. Second, use the balanced equation to find the moles of gas from the ratio. Third, volume of gas = moles × 24.
Example: CaCO3 + 2HCl → CaCl2 + H2O + CO2. Calcium carbonate has Mr = 100, so 5.0 g is 5.0 ÷ 100 = 0.050 mol. One mole of calcium carbonate gives one mole of carbon dioxide, so 0.050 mol of CO2 is made. Volume = 0.050 × 24 = 1.2 dm3, which is 1200 cm3.
Always check the ratio. Hydrogen peroxide decomposes by 2H2O2 → 2H2O + O2. Two moles of hydrogen peroxide give only one mole of oxygen, so 0.20 mol of hydrogen peroxide gives 0.10 mol of oxygen. The volume is 0.10 × 24 = 2.4 dm3 at room temperature and pressure.