You cannot directly substitute one for the other. Instead, you have to make sure to modify the amounts and possibly add new ingredients when you swap baking soda for baking powder or vice versa.