Dinners

What to Replace Butter With in Cookies

Updated · By Stir & Share

Total timeincludes chilling, rising or resting
55 min
Prep
15 min
hands-on
Cook
10 min
oven or stovetop
Serves
24
as written

Jump to recipe Save

What to Replace Butter With in Cookies

Many cookie recipes rely on butter for flavor, spread, and texture, so the idea of swapping it out can feel risky. You can replace butter in cookies with several fats and plant-based alternatives, and each one changes the final cookie in a predictable way. The best choice depends on whether you want crisp, chewy, or cakey cookies.

Why Butter Matters

Butter is about 80% fat and 15% water, with a little milk protein. The fat coats flour proteins and limits gluten formation, which keeps cookies tender. The water turns to steam in the oven, helping cookies spread. Butter also melts at a specific temperature, which affects how much a cookie spreads before it sets.

When you replace butter, you are changing the fat type, the water content, or both. That is why a direct 1:1 swap does not always work. The key is to match the moisture and fat behavior of butter as closely as possible.

Best Butter Substitutes

These are the most reliable swaps for cookies, ranked by how closely they mimic butter’s texture.

Unsalted Butter (the control)

If you are out of butter, the closest replacement is another dairy fat: margarine with at least 80% fat. Use the same amount by weight. Margarine has more water and less fat than butter, so cookies may spread a bit more and be slightly less tender. Choose stick margarine, not tub spreads, which have too much water.

Coconut Oil

Use refined coconut oil for a neutral flavor, or unrefined for a coconut taste. Measure it solid, then soften like butter. Use 1 cup (200 g) coconut oil for 1 cup (227 g) butter. Because coconut oil has no water, cookies spread less and are more tender. They also crisp up nicely when cooled. Chill the dough before baking to prevent excess spread.

Vegetable Shortening

Shortening is 100% fat, so it produces very tender cookies that hold their shape. Use the same volume (1 cup shortening for 1 cup butter) but reduce the liquid in the recipe by about 2 tablespoons per cup (240 ml) to compensate for the missing water. Shortening has no flavor, so add a pinch of salt and a drop of vanilla if you want a buttery taste.

Applesauce

Applesauce is not a fat, so it cannot replace all the butter. Use it for half the butter at most. For example, if a recipe calls for 1 cup (227 g) butter, use 1/2 cup (113 g) butter and 1/2 cup (120 ml) applesauce. The cookies will be cakey, less crisp, and slightly sweet. Reduce the sugar by 1 tablespoon per cup of applesauce to balance the extra moisture.

Mashed Banana or Avocado

These work like applesauce: replace no more than half the butter. Use 1/2 cup (120 g) mashed banana or avocado for 1/2 cup (113 g) butter. Banana adds flavor and sweetness; avocado adds a mild green taste and a soft, tender crumb. Both make cookies denser and more moist.

Greek Yogurt

Greek yogurt can replace half the butter for a protein boost and a tangy flavor. Use 1/2 cup (120 g) plain Greek yogurt for 1/2 cup (113 g) butter. Cookies will be more cakey and less crisp. Choose full-fat yogurt for the closest texture.

How Each Substitute Changes Texture

The table below shows what to expect from each swap. Use it to pick the right one for the cookie you want.

Substitute Texture Spread Flavor
Margarine Close to butter, slightly less tender More Neutral
Coconut oil Tender, crisp when cool Less Neutral or coconut
Shortening Very tender, soft Less None
Applesauce Cakey, soft Less Faint apple
Banana Dense, moist Less Banana
Greek yogurt Cakey, tangy Less Tangy

If the recipe relies on butter for flavor, like shortbread, add a small amount of butter extract (about 1/2 teaspoon per cup of substitute) to mimic it. If you want crisp cookies, choose coconut oil or shortening. For chewy cookies, use margarine or a half-butter/half-applesauce mix.

Adjusting the Recipe

No matter which substitute you use, you will likely need to tweak the dough. Here are the most important adjustments:

  • Chill the dough: Fats like coconut oil and shortening are soft at room temperature. Chilling the dough for 30 minutes before baking prevents excessive spread.
  • Check the liquid: If you use a dry fat like shortening, add 1–2 tablespoons (15–30 ml) milk or water to the dough to replace butter’s moisture.
  • Reduce sugar slightly: Applesauce and banana add sweetness. Cut sugar by 1–2 tablespoons (12–25 g) per cup of substitute.
  • Add a pinch of salt: Shortening and coconut oil lack the saltiness of salted butter. Add 1/4 teaspoon salt per cup of substitute if you used unsalted butter.
  • Watch the bake time: Cookies with more moisture (applesauce, yogurt) may need 2–3 minutes longer. Cookies with less moisture (coconut oil) may brown faster; check at the lower end of the time range.

Common Misconception: All Substitutes Work 1:1

Many people assume you can swap any fat cup-for-cup. That is not true. Butter is only 80% fat; the rest is water. Coconut oil and shortening are 100% fat, so they make cookies more tender but also more prone to spreading if not chilled. Applesauce and yogurt are mostly water, so they make cookies cakey and less rich. The key is to match the fat-to-water ratio, not just the volume.

Signs Your Substitute Is Working

You will know the swap is successful when the dough comes together without being greasy or dry. The cookies should spread slightly, brown evenly, and hold their shape after cooling. If they spread too much, chill the dough longer. If they are too dry, add a tablespoon of milk. If they are too cakey, reduce the applesauce or yogurt next time.

Storage and Make-Ahead

Cookies made with substitutes store the same as butter cookies. Keep them in an airtight container at room temperature for up to 5 days. For longer storage, freeze the baked cookies for up to 3 months. You can also freeze the dough: shape it into balls, freeze on a tray, then transfer to a bag. Bake from frozen, adding 2–3 minutes to the time.

If you use applesauce, banana, or yogurt, the cookies may be more moist and spoil faster; refrigerate them after 2 days. Always refrigerate any cookie dough that contains fruit or yogurt if you are not baking it immediately.

Ingredients

  • 2 cups (250 g) all-purpose flour
  • 1/2 teaspoon baking soda
  • 1/2 teaspoon salt
  • 1/2 cup (113 g) unsalted butter, softened
  • 1/2 cup (100 g) coconut oil, solid but softened
  • 1 cup (200 g) granulated sugar
  • 1 large egg
  • 1 teaspoon vanilla extract
  • 1 cup (170 g) chocolate chips (optional)

Instructions

  1. Whisk the flour, baking soda, and salt in a bowl.
  2. In a large bowl, beat the butter, coconut oil, and sugar until light and fluffy, about 2 minutes.
  3. Beat in the egg and vanilla until combined.
  4. Gradually stir in the flour mixture until just combined. Fold in the chocolate chips if using.
  5. Cover the dough and refrigerate for at least 30 minutes (this prevents spreading).
  6. Preheat the oven to 375°F (190°C). Line two baking sheets with parchment paper.
  7. Scoop tablespoons of dough onto the sheets, spacing them 2 inches (5 cm) apart.
  8. Bake for 10–12 minutes, until the edges are golden and the centers are set. The centers will look slightly soft.
  9. Cool on the sheet for 5 minutes, then transfer to a wire rack to cool completely.

What to Do With the Dough

This dough is versatile. You can bake it right away after chilling, or freeze it for later. To freeze, scoop the dough into balls, place them on a tray, and freeze until firm. Then transfer to a zip-top bag. Bake from frozen, adding 2–3 minutes to the baking time.

If you want a chewier cookie, replace the coconut oil with margarine. If you want a cakey cookie, replace half the coconut oil with applesauce (reduce sugar by 1 tablespoon). The dough will be softer, so chill it for 1 hour.

Why This Works

The combination of butter and coconut oil gives you the best of both: butter’s flavor and coconut oil’s structure. The butter provides water and browning; the coconut oil adds tenderness without extra water. Chilling the dough solidifies the fats, so the cookies spread just the right amount.

If you are using only coconut oil, the cookies will be slightly less flavorful but still delicious. Add 1/4 teaspoon of salt to compensate.

Can You Use Olive Oil?

Olive oil can replace butter in some cookies, but it has a strong flavor and a high liquid content. Use a mild olive oil and replace up to half the butter. Reduce the liquid in the recipe by 1 tablespoon per 1/4 cup (60 ml) of oil. The cookies will be denser and may spread more. Chill the dough well.

Can You Use Vegan Butter?

Vegan butter sticks are designed to mimic dairy butter. Use them 1:1 by weight. They contain water and fat, so the texture is very close to butter. Check the label for at least 70% fat. Some brands are softer, so chill the dough if needed.

Can You Use Nut Butters?

Peanut butter or almond butter can replace up to half the butter for a nutty flavor. Use 1/2 cup (128 g) nut butter for 1/2 cup (113 g) butter. Reduce the sugar by 2 tablespoons because nut butters are sweet. The cookies will be denser and may spread less.

Final Checks

Before baking, ask yourself: Is the dough too soft? Chill it. Is it too dry? Add a teaspoon of milk. Are the cookies spreading too much? Increase the flour by 2 tablespoons. Are they too cakey? Use less fruit puree next time.

With these substitutions, you can make cookies that are close to the original, even without butter. The first batch may not be perfect, but you will learn how the substitute behaves in your oven.

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).