Baking soda is a basic compound called sodium bicarbonate. Vinegar is a diluted solution that contains acetic acid. The baking soda and vinegar reaction is actually two separate reactions. ... The carbonic acid formed as a result of the first reaction immediately begins to decompose into water and carbon dioxide gas.