Butter Substitute for Baking

Choose the swap by what the butter is doing: creaming, creating flaky layers, adding tenderness, or simply supplying melted fat.

Last reviewed: October 2, 2026 · Reviewed by the BakingSubstitutes Editorial Team · How we review pages

Quick answer

For the closest dairy-free replacement in most cakes, cookies, bars, and quick breads, use a baking-style vegan butter stick at a 1:1 amount. If the recipe calls for melted butter, a neutral oil works well; start with about 3/4 cup oil per 1 cup (2 sticks) of butter. For pie crust, biscuits, and laminated doughs, choose a solid fat and keep it cold. Plain liquid oil is the wrong tool for those jobs.

What butter actually does in a recipe

Standard butter is roughly 80% fat, with the remainder mostly water plus a small amount of milk solids. Each part matters. The fat tenderizes and carries flavor. The water turns to steam in the oven, which helps puff pastry and biscuits. The milk solids brown and add the toasty, caramel-like note people associate with butter. Solid butter also traps air when creamed with sugar. Whenever you swap it out, ask which of those jobs the butter is doing in your recipe, then pick the substitute that covers the same job.

Butter substitute ratios and what changes

SubstituteAmount for 1 cup (2 sticks) butterWhat changes
Vegan butter sticks1 cup, 1:1Closest behavior. Water and fat content vary by brand, so spread and flavor can differ slightly.
Stick margarine1 cup, 1:1Works in most recipes. Avoid tub spreads, which are softer and hold more water or air.
Vegetable shortening1 cup, 1:1All fat, no water, no butter flavor. Cookies often turn out softer and puffier; consider a pinch of salt if your recipe used unsalted butter.
Neutral oil (canola, vegetable)About 3/4 cup as a starting pointNo creaming or flaky layers. Crumb is often moister and denser. Best where butter was melted.
Refined coconut oilAbout 1 cup, solid and cool, or follow your recipeBehaves like a solid fat when cool but melts at a lower temperature. Unrefined versions taste of coconut.
Unsweetened applesauceReplace only part, such as 1/4 to 1/2 of the butterAdds moisture, not richness. Higher swaps can make bakes gummy or pale.

Treat these as starting points. Check the package or recipe notes for your specific product.

Cookies: creaming and spread

Most cookie recipes cream butter with sugar so the sugar crystals cut tiny air pockets into the fat. That structure is what gives cookies lift and controls spread. A stick-style vegan butter or stick margarine preserves it. Oil does not cream, so an oil swap tends to give flatter, greasier cookies unless the recipe was written for oil. Shortening holds its shape in the oven, which is why shortening cookies often spread less but taste less buttery.

If your cookies spread too much with a substitute, chill the dough for 30 to 60 minutes before baking and make sure the fat was cool, not warm and soft, when you started creaming.

Cakes and quick breads

Cakes that start with creamed butter need a solid fat for the same reason as cookies. Quick breads and muffins that call for melted butter are far more forgiving. Here oil is a reasonable stand-in, and the result is often moist because oil is 100% fat while butter contains water. Because oil has no water, some bakers add a splash of milk or plant milk to make up for it. Start small and see how the batter looks; it should resemble the thickness your recipe describes.

Pie crust, biscuits, and laminated doughs

Flaky layers come from solid pieces of fat that stay separate from the flour until the oven heat melts them and the water in them turns to steam. Liquid oil coats flour evenly instead, producing a mealy, tender crust rather than a flaky one. For these recipes use a firm solid fat made for baking, such as a vegan butter stick or shortening, and keep it cold. For croissants and puff pastry, look for a product specifically sold for lamination, since softer sticks can leak and smear.

Tip: cut cold fat into the flour until pieces are about pea-sized, add ice-cold liquid sparingly, and chill the dough before rolling.

Frosting and buttercream

Buttercream relies on fat that is firm yet creamy at room temperature. Vegan butter sticks usually work, though some are softer or contain more water, so frosting can turn loose in a warm kitchen. Shortening gives a stable, very white frosting without butter flavor; many bakers use half shortening and half vegan butter for a balance. Add powdered sugar gradually and chill briefly if the frosting becomes too soft to pipe.

Browning and sautéing

Brown butter gets its nutty flavor from milk solids that toast as the water cooks off. Most dairy-free sticks do not brown the same way. For savory sautéing, a neutral oil or olive oil is a simple swap. For baking recipes that call for brown butter, expect a different flavor and compensate with a little extra vanilla, toasted nuts, or a pinch of salt. Browned butter also loses water as it cooks, so recipes written for it already account for that.

How to swap butter, step by step

  1. Identify the butter's job: creamed, cut in cold, melted, or used for flavor.
  2. Choose a substitute that matches that state (solid for creamed or cold, liquid for melted).
  3. Start with the ratio in the table and measure by weight if the recipe lists grams.
  4. Keep the temperature the same as the original instruction: cool for creaming, cold for pastry, warm for melted.
  5. Bake one small test batch of cookies, or check a cake early, before committing the whole recipe.

Common mistakes and fixes

Storage notes

Baked goods made with vegan butter or oil generally store like their butter versions, but oil-based cakes often stay moist a little longer. Cookies and unfrosted cakes usually freeze well when wrapped tightly. Always follow the package instructions for opened vegan butter, as storage guidance differs by brand.

Frequently asked questions

Can I use oil instead of butter in cookies?

You can, but results change. Oil does not cream with sugar, so cookies tend to spread more and feel denser. Use it only in recipes designed for oil, or start with about 3/4 of the butter amount and chill the dough.

How much oil replaces 1 cup of butter?

A common starting point is about 3/4 cup of neutral oil per 1 cup of butter. Adjust based on your recipe and how the batter looks.

Is margarine the same as butter in baking?

Stick margarine can often be used 1:1, but it contains different amounts of water and fat than butter, and spreads sold in tubs behave differently. Check the label for the fat percentage if your recipe is sensitive.

What is the best butter substitute for pie crust?

A cold, solid fat designed for baking, such as vegan butter sticks or shortening, because flaky layers depend on solid pieces of fat.

Can I substitute applesauce for all the butter?

It is usually better to replace only part of it. Applesauce adds moisture but not richness, so full replacement can make a bake dense or gummy.

Sources & related guides