When combined with an acid, baking soda produces carbon dioxide gas. The bubbles that form get trapped in the dough or batter, leading it to inflate or rise. Most commonly, acids such as cream of tartar, buttermilk, yogurt, vinegar, brown sugar, cocoa powder, honey, and lemon juice, cause the reaction.