Dinners

Substitute for Butter in Cookie Dough

Updated · By Stir & Share

Total timeprep + cook
27 min
Prep
15 min
hands-on
Cook
12 min
oven or stovetop
Serves
24
as written

Jump to recipe Save

Substitute for Butter in Cookie Dough

When you run out of butter mid-recipe, the right swap keeps your cookies chewy, crisp, or cakey depending on what you choose. The best substitute depends on the cookie style you want and what you have on hand. This guide covers the most reliable swaps, the exact ratios, and how each one changes the texture and flavor.

Pick the Substitute That Matches Your Cookie

Butter does three jobs in cookie dough: it adds fat for tenderness, water for steam and spread, and flavor. A good substitute replaces the fat and sometimes the water, and it changes the final texture. Here is what each common swap does:

  • Margarine or plant-based butter sticks: Closest to butter in fat and water content. Cookies spread similarly and taste neutral. Use the same amount as butter (1:1).
  • Shortening (vegetable shortening): Pure fat, no water. Cookies spread less, are taller and more tender, and have a bland flavor. Use 1 cup shortening for 1 cup butter, but add 2 tablespoons (30 ml) water per cup to mimic butter’s moisture.
  • Coconut oil: Solid at room temperature, so it works like shortening if chilled. Cookies are slightly chewy with a mild coconut flavor. Use 1 cup coconut oil for 1 cup butter; if using liquid coconut oil, reduce the liquid in the recipe by 1 tablespoon per cup.
  • Applesauce (for reduced-fat cookies): Replaces fat, not water. Cookies become cakey, less crisp, and less rich. Use ¾ cup applesauce for 1 cup butter, and reduce the sugar by ¼ cup to compensate for extra moisture and sweetness.
  • Greek yogurt or sour cream: Adds tang and moisture, making cookies soft and cakey. Use ¾ cup yogurt or sour cream for 1 cup butter, and reduce the liquid in the recipe by 2 tablespoons.
  • Nut butters (peanut, almond, etc.): Adds strong flavor and dense, chewy texture. Use ¾ cup nut butter for 1 cup butter, and reduce the sugar by 2 tablespoons because nut butters are sweetened.

Measure the Swap Correctly for Your Batch

Most cookie recipes call for ½ cup (1 stick) to 1 cup (2 sticks) of butter. Use this quick reference for common amounts:

Butter in recipe Margarine / plant butter Shortening + water Coconut oil Applesauce
½ cup (113 g) ½ cup (113 g) ½ cup (100 g) + 1 tbsp water ½ cup (110 g) 6 tbsp (90 g)
1 cup (226 g) 1 cup (226 g) 1 cup (200 g) + 2 tbsp water 1 cup (220 g) ¾ cup (180 g)

For a half batch, halve the swap amounts. For a double batch, double them. The ratios stay the same.

Mix the Dough With Your Chosen Fat

Once you have chosen the substitute, follow your usual cookie recipe with these adjustments:

  1. Soften the fat: If using margarine, shortening, or coconut oil, bring it to room temperature (about 70°F / 21°C) so it creams with sugar. Cold fat will not cream properly and leads to dense cookies.
  2. Cream fat and sugar: Beat the fat and sugar together for 2 to 3 minutes until light and fluffy. With applesauce or yogurt, beat for only 1 minute; overbeating makes cookies tough.
  3. Add eggs and vanilla: Mix in the eggs one at a time, then the vanilla. If using a liquid substitute like applesauce, the dough will be softer; chill it for 30 minutes before scooping.
  4. Add dry ingredients: Stir in the flour, leavener, and salt just until no streaks remain. Overmixing develops gluten and makes cookies tough.
  5. Chill the dough (optional but recommended): Chilling for 30 minutes to 1 hour prevents spreading, especially with margarine or coconut oil.
  6. Bake as directed: Most drop cookies bake at 350°F (175°C) for 10 to 12 minutes, until edges are set and lightly golden. Check at the shorter time; substitutes can bake faster or slower.

Adjust for Texture and Spread

Each substitute changes how the cookies behave in the oven:

  • Margarine and plant butter: Spread slightly more than butter because they contain more water. Chill the dough for 20 minutes to reduce spread.
  • Shortening: Cookies hold their shape well but may not brown as much. If you want golden edges, brush the tops with milk or egg wash before baking.
  • Coconut oil: Cookies spread less and stay softer. If the oil is liquid, chill the dough for 30 minutes to firm it up.
  • Applesauce or yogurt: Cookies spread very little and puff up like cake. Flatten the dough balls slightly with your palm before baking.
  • Nut butter: Cookies are dense and may not spread much. Press a fork pattern on top before baking, like peanut butter cookies.

Store the Baked Cookies Safely

Baked cookies with any substitute keep at room temperature in an airtight container for up to 1 week. For longer storage, freeze baked cookies for up to 3 months. Unbaked dough can be frozen for up to 3 months; thaw overnight in the refrigerator before baking.

If you used applesauce, yogurt, or nut butter, the dough is more perishable. Refrigerate any unused dough and bake within 2 days. Do not leave dough at room temperature for more than 2 hours.

When You Need Raw Dough for Eating

If you plan to eat the dough raw (for example, in ice cream or as a snack), you must take extra precautions. Raw flour can contain harmful bacteria, and raw eggs carry a risk of salmonella. Heat-treat the flour by spreading it on a baking sheet and baking at 350°F (175°C) for 5 minutes, then let it cool completely. Use pasteurized eggs or an egg substitute. Keep the dough refrigerated and eat it within 3 days. Pregnant people, young children, older adults, and anyone with a weakened immune system should avoid raw dough entirely.

Ingredients

  • 1 cup (226 g) unsalted butter or substitute (choose from the list above)
  • ¾ cup (150 g) granulated sugar
  • ¾ cup (165 g) packed brown sugar
  • 2 large eggs (pasteurized if eating raw)
  • 1 teaspoon vanilla extract
  • 2 ¼ cups (280 g) all-purpose flour (heat-treated if eating raw)
  • 1 teaspoon baking soda
  • ½ teaspoon salt
  • 1 cup (170 g) chocolate chips or chopped nuts (optional)

Instructions

  1. Preheat the oven to 350°F (175°C). Line two baking sheets with parchment paper.
  2. In a large bowl, cream the butter (or substitute) with both sugars until light and fluffy, about 2 to 3 minutes.
  3. Beat in the eggs one at a time, then the vanilla.
  4. In a separate bowl, whisk the flour, baking soda, and salt. Gradually add to the wet mixture, mixing just until combined.
  5. Fold in the chocolate chips or nuts if using.
  6. Chill the dough for 30 minutes if using margarine, coconut oil, or applesauce.
  7. Scoop rounded tablespoons of dough onto the prepared sheets, spacing them 2 inches (5 cm) apart.
  8. Bake for 10 to 12 minutes, until the edges are set and lightly golden. The centers may look slightly soft.
  9. Let the cookies cool on the baking sheet for 5 minutes, then transfer to a wire rack to cool completely.

What to Serve With Substitute Butter Cookies

These cookies work as an after-school snack, a lunchbox treat, or a simple dessert with a glass of milk. For a dessert platter, pair them with fresh fruit or a scoop of vanilla ice cream. They also make a good base for ice cream sandwiches.

How to Adjust for Half or Double Batches

For a half batch, halve all ingredients and bake the same time. For a double batch, double everything; you may need to bake in two or three batches to avoid overcrowding the oven. The swap ratios stay the same.

Common Substitution Questions Answered

Can I use olive oil instead of butter? Olive oil is liquid at room temperature and has a strong flavor. Use ¾ cup olive oil for 1 cup butter, but expect cookies that are dense and slightly savory. It works best in savory cookies or recipes with spices.

What if I only have salted butter? If you use salted butter or salted margarine, reduce the added salt in the recipe to ¼ teaspoon. The cookies will still be fine.

Why did my cookies spread too much? Spreading often happens when the fat is too warm or the dough is not chilled. Chill the dough for 30 minutes, and make sure your baking sheets are cool before adding new dough.

Related

Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.

Spotted an error? Tell us and we will correct it (corrections policy).