What happens when you add baking soda in vinegar?

When you mix baking soda (sodium bicarbonate) with vinegar (acetic acid), a chemical reaction occurs that results in the formation of carbon dioxide gas, water, and sodium acetate. The reaction can be represented by the following equation:

NaHCO3 (baking soda) + CH3COOH (vinegar) → CO2 (carbon dioxide gas) + H2O (water) + CH3COONa (sodium acetate)

The production of carbon dioxide gas causes a fizzing or bubbling effect, which is characteristic of this reaction. The gas bubbles rise to the surface and create a foam. The reaction is exothermic, meaning that it releases heat, so the mixture may feel warm to the touch.

The products of the reaction, water and sodium acetate, are both soluble in water, so they dissolve and remain in the solution. Sodium acetate is a salt that has a slightly salty taste.

This reaction is commonly used in baking to produce a leavening effect, where the carbon dioxide gas causes baked goods to rise. It is also used in science education to demonstrate chemical reactions and the production of gases.