The recipe will always specify which one to use (or both). Make sure to follow the recipe exactly. Baking soda will help cookies spread and is used to create a dense, chewy texture in cookies. It also helps enhance the flavor of the cookie as well as increase the browning of the cookies. Baking powder helps the cookies rise and adds to the light, fluffy texture of the cookies. It also enhances the flavor of cookies.