Baking soda and baking powder sit side by side in most pantries and both make cakes, muffins and cookies rise. They are not interchangeable spoon for spoon, though, and the wrong one, or the right one in the wrong amount, is behind many flat cakes and odd-tasting cookies. The difference comes down to one thing: acid.

Baking soda is a base, baking powder brings its own acid

Baking soda (bicarbonate of soda in the UK) is pure sodium bicarbonate, an alkaline salt. When it meets an acid in a wet batter, it reacts straight away and gives off carbon dioxide. Those bubbles inflate the tiny air pockets already mixed into the batter, the oven's heat expands them further, and the cake or cookie sets around them.

Because it needs an acid partner, baking soda turns up in recipes that already contain one: buttermilk, yogurt, sour cream, lemon juice, vinegar, natural (non-alkalized) cocoa, brown sugar, molasses or honey.

Baking powder is baking soda premixed with one or more dry acids, plus a little starch that keeps the mixture dry so it doesn't react in the tin. Add liquid and the acid and base meet in the batter. That means baking powder can raise a batter with no acidic ingredients at all, such as a plain vanilla cake made with milk.

Since baking soda is all leavening and baking powder is part acid and part starch, soda is the stronger of the two by a wide margin, and recipes use much less of it. It is also denser: a level teaspoon of baking soda weighs about 6 grams, while a teaspoon of baking powder weighs about 4 grams.

Single-acting and double-acting

Single-acting baking powder uses an acid that reacts as soon as it gets wet, so most of its gas is released in the mixing bowl and the batter has to go into the oven straight away. Homemade baking powder made with cream of tartar behaves this way.

Double-acting baking powder, the usual type on US supermarket shelves, contains two acids. A fast one, typically monocalcium phosphate, reacts when liquid is added. A slow one, such as sodium aluminum sulfate (or sodium acid pyrophosphate in aluminum-free brands), waits until the batter heats up in the oven. That second burst of gas is why a batter made with double-acting powder can sit for a while before baking and still rise.

Why some recipes use both

Recipes with buttermilk, yogurt or natural cocoa often list a little baking soda and some baking powder. Each one has a separate job.

The baking soda is there mainly to balance the acid. A common rule of thumb is about ½ teaspoon of baking soda for each cup (240 ml) of buttermilk or yogurt. That neutralizes the acid and provides some lift, but often not enough for all the flour, so baking powder tops it up.

Baking soda also changes the batter in ways baking powder doesn't. Making the batter more alkaline speeds up browning, which gives cookies a deeper color and toastier flavor. It loosens the dough so cookies spread more, and it makes chocolate batters darker. Leave the soda out of a recipe built around it and you lose more than rise. Brown sugar is a good example of a mildly acidic ingredient that pairs with soda; light vs dark brown sugar explains why the two often appear together in cookies.

How to substitute one for the other

Out of baking powder, but you have baking soda

You need to supply the acid that baking powder normally carries. The standard mix to replace 1 teaspoon of baking powder is:

  • ¼ teaspoon baking soda
  • ½ teaspoon cream of tartar

Whisk them into the dry ingredients. This works like single-acting powder, so mix the batter promptly and get it into the oven without delay. To make a small batch to keep, add about ¼ teaspoon of cornstarch for every ¾ teaspoon of mix to absorb moisture, and store it airtight.

No cream of tartar? Use an acidic dairy ingredient instead. For each teaspoon of baking powder, use ¼ teaspoon of baking soda and replace ½ cup (120 ml) of the recipe's milk or water with buttermilk or plain yogurt. Milk soured with lemon juice or vinegar, as described on the buttermilk converter, can stand in for the buttermilk.

Out of baking soda, but you have baking powder

Use about three times as much baking powder: 1 teaspoon of baking soda becomes roughly 1 tablespoon (3 teaspoons) of baking powder. That gives similar lift, but it is not a perfect swap. Baking powder brings its own acid, so the acid already in the recipe is no longer neutralized. Expect:

  • A tangier, slightly sour flavor.
  • Paler color and less browning.
  • Cookies that spread less and turn out puffier and more cake-like.
  • A bitter, chemical aftertaste if the amount of baking powder gets large.

If the recipe uses buttermilk, swapping it for regular milk removes some of the extra acid and brings the result closer to the original.

When a swap won't work well

  • Baking soda alone can't replace baking powder. Without enough acid, the soda doesn't release its gas properly. Oven heat breaks some of it down, but that leaves behind sodium carbonate, which tastes soapy and bitter, and the cake stays dense.
  • Recipes that rely on a lot of baking soda, such as gingerbread, molasses cookies, soda bread and dark chocolate cakes made with natural cocoa, owe part of their color, texture and flavor to it. Tripling the amount as baking powder means a lot of powder and a noticeably different result. Buying baking soda is the better fix.
  • Batters that rest before baking, like pancake batter made the night before or muffin batter kept in the fridge, depend on double-acting powder. Homemade single-acting powder will have used up most of its gas before the batter reaches the heat.

How to test if they are still active

Both lose strength over time, especially once opened. Baking powder is the more fragile of the two: humidity in the air, or a damp spoon dipped into the tin, lets its acid and base react slowly in the container. Estimates of shelf life after opening range from a few months to a year or more depending on how it is stored, so a quick test tells you more than the date on the label.

  • Baking powder: stir about 1 teaspoon into ⅓ cup (80 ml) of hot water. Fresh powder fizzes vigorously right away. Use hot rather than cold water: the heat triggers the slow-acting acid too, so the result is easier to judge.
  • Baking soda: put ¼ teaspoon in a small bowl and pour over 2 teaspoons of vinegar or lemon juice. It should bubble up immediately.

A weak or slow fizz means it is time for a new container. Keep both tightly closed in a cool, dry cupboard away from the stove, and always use a dry spoon.

What too much (or too little) does

More leavening does not make a lighter cake. Past a certain point it makes things worse.

  • Too much baking soda: a soapy or metallic taste, a darker crumb than expected, and often a coarse texture. Cookies spread more than they should. Lumps of soda that never dissolve leave bitter pockets, so whisk it thoroughly through the flour.
  • Too much baking powder: a bitter aftertaste and a coarse, crumbly texture. The batter rises quickly, the bubbles grow too large and merge, and the cake can collapse in the middle. If your cakes keep sinking, check the leavening before blaming the oven or the size of your cake pan.
  • Too little of either: a dense, heavy, flat result with a tight crumb.

Because the amounts are small, measuring carefully matters. Use proper measuring spoons and sweep them level with a knife; a heaped teaspoon can hold far more than a level one. If you change the size of a recipe, the recipe scaler converts awkward fractions of a teaspoon into amounts you can actually measure.