Baking Soda and Baking Powder Are Not Twins
Baking soda and baking powder look alike. Both are white powders in small containers, and both help cakes and muffins rise. But they are not the same thing, and a cook cannot swap them freely.
Baking soda is one ingredient. By itself it does little in a cake. It needs an acid, such as buttermilk, yogurt, lemon juice, or brown sugar. When the soda meets an acid and gets wet, the two make bubbles of gas. The bubbles puff up the batter. Because it reacts right away, the batter should usually go into the oven soon.
Baking powder is a mix. It already holds baking soda and a dry acid, along with a little starch to keep them apart. Add water, and the two parts begin to react. Many baking powders react a second time when they get hot in the oven.
A recipe with a sour ingredient often calls for baking soda. A recipe with no sour ingredient usually uses baking powder. Cooks follow the recipe closely, because too much of either one can leave a bitter taste.