Disclosure: This page may contain affiliate links. If you purchase through them, we earn a small commission at no extra cost to you.
Dairy allergy? Lactose intolerant? Vegan? Dairy-free diets are increasingly common, and many people need to adapt their favorite recipes. The challenge is that dairy—milk, butter, yogurt, sour cream—plays multiple roles in baking. Milk provides moisture and lactose for browning. Butter provides fat, moisture, and richness. Sour cream and yogurt provide moisture, tang, and acidity that affects leavening. Removing dairy without replacement creates an imbalanced recipe that fails. But with the right substitutions, you can make dairy-free versions that are nearly indistinguishable from the originals.
Milk in baking primarily provides moisture, fat (if whole or 2%), and lactose for browning. Non-dairy milks can replace cow's milk in most recipes. Common options: almond milk, oat milk, soy milk, coconut milk, and cashew milk. Almond milk is thin and low in protein, so cakes made with almond milk might be slightly less moist. Oat milk has more body and closer mimics whole milk. Soy milk has the most protein, which strengthens gluten in bread.
Substitute dairy milk with non-dairy milk at a 1:1 ratio. If the recipe calls for 1 cup milk, use 1 cup oat milk or almond milk. Most recipes won't notice the difference. For best results, use non-dairy milks that are unsweetened and unflavored—vanilla or chocolate milk changes the recipe's flavor.
Buttermilk is trickier because it's acidic. Most non-dairy milks aren't acidic, so they don't react the same with baking soda. If a recipe calls for buttermilk, either (1) use a non-dairy milk and reduce baking soda, or (2) make dairy-free buttermilk by adding 1 tablespoon lemon juice or vinegar to 1 cup non-dairy milk and letting it sit 5 minutes. The lemon juice mimics buttermilk's acidity and produces the same reaction with baking soda.
Butter provides fat, moisture, and flavor. Non-dairy butter (like Earth Balance or Miyoko's) is specifically designed to replace dairy butter in baking and works remarkably well. Use it 1:1 for dairy butter. These products have similar fat content and water content, so they behave identically in recipes.
If using non-dairy butter substitutes, don't use oils (like coconut oil or vegetable oil) as a substitute—oils have different water content and won't produce the same results as butter. Stick with purpose-made dairy-free butters that are formulated for baking.
For cookies and cakes, coconut oil also works but produces a subtle coconut flavor (unless you use refined coconut oil, which is flavorless). Use it at 75% the weight of butter. So if the recipe calls for 1 cup (227g) butter, use ¾ cup + 2 tablespoons (170g) coconut oil.
Sour cream and yogurt provide moisture, tang, and acidity that affects leavening. Dairy-free yogurt (like coconut or soy yogurt) can replace dairy yogurt 1:1 in most recipes. Coconut cream (the thick part of canned coconut milk) can replace sour cream and has similar tang and richness. Mix 1 tablespoon lemon juice or vinegar into ¾ cup coconut cream to make a dairy-free sour cream substitute.
For recipes that require buttermilk or sour cream (where acidity matters for leavening), confirm that your dairy-free substitutes have similar acidity. If you're unsure, add a teaspoon of lemon juice or vinegar to reinforce the acidic reaction with baking soda.
Heavy cream is used in some baked goods (like custard tarts or cream-based cakes). Coconut cream (the thick part of canned full-fat coconut milk, not the sweet cream of commerce) has similar richness and can replace heavy cream 1:1. Oat cream also works for some applications, though it's less rich than coconut cream.
Simple white cake (originally with dairy): 2 cups flour, 1.5 teaspoons baking powder, ½ teaspoon salt, ¾ cup dairy butter, 1.5 cups sugar, 3 large eggs, ¾ cup whole milk, 1.5 teaspoons vanilla. Dairy-free version: Replace ¾ cup dairy butter with ¾ cup dairy-free butter, replace ¾ cup milk with ¾ cup non-dairy milk (oat or soy recommended). No other changes. Bake as normal.
Chocolate cake (with buttermilk and sour cream): 1.75 cups flour, ½ teaspoon baking soda, ½ teaspoon salt, ½ cup dairy butter, 1.75 cups sugar, 2 large eggs, ½ cup sour cream, ½ cup buttermilk, 1.5 teaspoons vanilla, ½ cup cocoa powder. Dairy-free version: Replace ½ cup dairy butter with ½ cup dairy-free butter. Replace ½ cup sour cream with ½ cup dairy-free yogurt or coconut cream. Replace ½ cup buttermilk with ½ cup oat milk + 1.5 teaspoons lemon juice (mixed and let sit 5 minutes). Keep everything else the same.
Using almond milk in custard-heavy recipes: Almond milk is too thin. Use oat or soy milk for richer results.
Forgetting that dairy-free milks aren't acidic: If a recipe uses buttermilk or sour cream, don't just swap with unsweetened dairy-free milk. Add lemon juice or vinegar to recreate the acidity.
Using coconut oil for butter in recipes with delicate flavors: Coconut oil imparts flavor. Use it in chocolate or tropical recipes where coconut flavor is welcome, not in vanilla cakes.
Using wrong fat levels: If a recipe uses full-fat dairy, don't substitute with low-fat dairy-free alternatives. Use full-fat coconut milk, full-fat oat cream, or full-fat dairy-free butter.
Most vanilla extract, cocoa powder, and spices are naturally dairy-free. But check the label if you're dealing with a severe dairy allergy—some products may be processed in facilities with dairy. Similarly, some chocolate contains milk. Use explicitly dairy-free chocolate if dairy-free chocolate is required.
Making recipes dairy-free is straightforward: replace milk with non-dairy milk, butter with dairy-free butter, and sour cream/yogurt with dairy-free equivalents. Use 1:1 ratios for purpose-made dairy-free products. For non-dairy milks that aren't acidic, add lemon juice if the recipe requires buttermilk. After a few conversions, dairy-free baking becomes second nature, and you'll produce results that are nearly identical to the dairy versions.
Always check product labels for cross-contamination risks if you're baking for a severe dairy allergy.