Butter Substitute for Baking Cakes: What Works
In this article
Most people assume any fat can stand in for butter in a cake, but the accurate answer is that only some substitutes work well and each one changes the result. For cakes, the reliable swaps are neutral oil, melted butter-flavored margarine or stick margarine, and plain full-fat yogurt for part of the fat; each has a ratio and a texture trade-off you should know before you start mixing.
Quick answer: Use oil at about ¾ cup (180 ml) for every 1 cup (227 g) of butter, or stick margarine cup-for-cup, and expect a slightly softer crumb and less butter flavor.
Why Butter Does More Than Add Flavor
Butter carries three jobs in a cake: fat for tenderness, water for steam and lift, and a little milk solid that browns and flavors the crust. When you swap it out, you are changing all three at once, which is why some cakes turn out gummy or dry after a substitution.
Butter is roughly 80 percent fat and 15 to 18 percent water. Oil is 100 percent fat, so it makes a moister, denser cake but adds no water. Margarine is closer to butter in water content, which is why stick margarine behaves more like butter than oil does. Plain yogurt and sour cream bring fat plus water plus acid, so they tenderize and add a little tang.
If your recipe calls for creaming butter with sugar until pale and fluffy, that step builds air into the batter. Oil cannot cream, so oil-based cakes usually rely on chemical leaveners and eggs for lift instead. That is the main reason an oil cake has a tighter, softer crumb than a butter cake.
The Butter Substitutes That Work in Cake Batter
Pick your swap based on what the cake needs: moisture, structure or flavor. The table below gives the working ratio for each and what changes in the finished cake.
| Substitute | Amount for 1 cup (227 g) butter | What changes |
|---|---|---|
| Neutral oil (canola, vegetable) | ¾ cup (180 ml) | Moister, denser crumb; no butter flavor; crust browns less |
| Stick margarine (at least 80% fat) | 1 cup (227 g) | Closest to butter; can cream with sugar; flavor is mild |
| Full-fat plain yogurt | ½ cup (120 g) plus ½ cup (113 g) butter or oil | Tender, slightly tangy; use only as a partial swap |
| Sour cream | ½ cup (120 g) plus ½ cup (113 g) butter or oil | Rich, moist crumb; mild tang; partial swap only |
| Applesauce (unsweetened) | ½ cup (120 g) plus ½ cup (113 g) butter or oil | Denser and chewier; reduce sugar slightly; partial swap only |
Use the full oil or margarine swap when the cake is a simple snack cake, carrot cake, or chocolate cake where butter flavor is not the point. Use a partial swap with yogurt, sour cream or applesauce when you want to keep some butter structure and flavor.
Matching the Swap to the Cake You Are Baking
Not every cake tolerates the same substitute. A pound cake or a butter-heavy layer cake depends on creaming and structure, so a full oil swap makes it noticeably softer and less sliceable.
Layer cakes and butter cakes
Use stick margarine cup-for-cup, or swap half the butter for oil and keep the rest as butter. A full oil swap works but the layers will be tender and may crumble when you cut them warm. Cool completely, about 1 hour, before frosting.
Chocolate cakes and snack cakes
Oil is the best choice here. Chocolate masks the missing butter flavor, and oil keeps the crumb moist for days. Use ¾ cup (180 ml) oil per cup of butter and add 2 tablespoons (30 ml) milk or water to replace the water butter would have brought.
Pound cakes and dense loaf cakes
Stay with butter or stick margarine. These cakes rely on a firm, fine crumb, and oil makes them greasy and weak. If you must swap, replace no more than ¼ cup (60 ml) of the butter with oil.
Carrot, banana and applesauce cakes
These are forgiving. Swap up to half the butter for unsweetened applesauce or yogurt and expect a slightly denser, chewier cake. Reduce the sugar by 2 tablespoons (25 g) per ½ cup (120 g) of applesauce used.
What Goes Wrong and How to Fix It
Most failed butter swaps come down to water and fat content, not the flavor. Check the label on any margarine or spread before you bake with it.
Use only stick margarine or a spread labeled at least 80 percent fat. Tub spreads and light margarines contain extra water and air, and they make cakes collapse or turn rubbery. If the label lists water as the first ingredient, do not bake with it.
If the batter looks thin after an oil swap, add 1 to 2 tablespoons (8 to 15 g) of flour to bring it back to a soft drop consistency. If the cake browns too fast on top, lower the oven by 25°F (about 15°C) and check at the early end of the time range.
If the cake is dry, you likely used a partial swap without replacing the lost water. Add 2 tablespoons (30 ml) of milk per ½ cup (113 g) of butter replaced. If it is gummy in the middle, the oven was too hot or the cake was cut warm; bake at 350°F (175°C) until a toothpick inserted near the center comes out with a few moist crumbs, typically 25 to 35 minutes for a 9-inch (23 cm) round layer.
Salt, Flavor and Browning Adjustments
Unsalted butter carries no salt, so a salted margarine swap can push a cake over the edge. If you use salted margarine, cut the added salt in the recipe by ¼ teaspoon per ½ cup (113 g) of margarine.
Oil cakes brown less because oil has no milk solids. For a golden top, brush the pan with a little melted butter or margarine, or add 1 tablespoon (15 g) of dry milk powder to the dry ingredients. Add ½ teaspoon of butter extract if you want the flavor back without the fat; it is concentrated, so start small.
For chocolate cakes, a tablespoon (5 g) of espresso powder or a teaspoon (5 ml) of vanilla boosts the flavor that butter would have carried. Neither replaces fat, so keep the oil or margarine amount the same.
Storing Cakes Made With a Butter Substitute
Cakes made with oil or margarine keep well, but they still need the fridge once frosted with dairy. Wrap an unfrosted cake tightly and keep it at room temperature for up to 2 days, or refrigerate for up to 4 days.
Frosted cakes and cakes with a yogurt or sour cream swap should go in the fridge within 2 hours of baking or frosting. Let slices sit at room temperature for about 20 minutes before serving so the crumb softens. Freeze unfrosted layers wrapped in plastic and foil for up to 2 months; thaw in the fridge overnight.
Do not leave a cream-cheese or whipped-cream frosted cake out for more than 2 hours, or 1 hour when the room is above 90°F (32°C). Discard anything left longer rather than re-chilling it.
Small-Batch Amounts for Common Cake Sizes
Most cake recipes list butter in cups or sticks, so here are the working amounts for a single 9-inch (23 cm) layer or a small loaf. Halve or double as your recipe needs.
For ½ cup (113 g) butter, use 6 tablespoons (90 ml) oil or ½ cup (113 g) stick margarine. For ¼ cup (57 g) butter, use 3 tablespoons (45 ml) oil or ¼ cup (57 g) margarine. For 2 tablespoons (28 g) butter, use 1½ tablespoons (22 ml) oil. These amounts keep the fat level close to the original, so the cake's structure stays predictable.
If a recipe calls for melted butter, the swap is simpler: use the same volume of oil, since melted butter and oil measure alike. If it calls for cold butter cut into flour, as in a crumble topping, stick margarine is the better match because it holds its shape.