Baking powder is a mixture of baking soda (sodium hydrogen carbonate) and a mild edible acid such as tartaric acid. On heating, the soda reacts with the acid to produce salt, water and carbon dioxide. The carbon dioxide released is responsible for leavening.