The balanced chemical equation for the reaction between sodium bicarbonate (NaHCO3) and hydrochloric acid (HCl) is:
NaHCO3 + HCl → NaCl + H2O + CO2
1 mole of NaHCO3 reacts with 1 mole of HCl to produce 1 mole of CO2. The molar mass of NaHCO3 is 84 g/mol, so 4.00 g of NaHCO3 is equivalent to 4.00 g / 84 g/mol = 0.0476 moles of NaHCO3. Therefore, 0.0476 moles of CO2 will be produced, which is equal to 0.0476 moles * 44.01 g/mol = 2.11 g of CO2