Yes, you can substitute mayonnaise for butter in many baked goods, but it is not a 1-to-1 swap and works best in recipes where moisture and tenderness are prized over a buttery flavor. Use about 1 cup of mayonnaise for every 1 cup of butter (or 1/2 cup mayo for 1/2 cup butter) in cakes, brownies, and quick breads, but expect a slightly different texture and a tangy undertone. Mayonnaise is essentially oil, egg yolks, and acid (vinegar or lemon juice), so it behaves like a combination of fat and liquid—making it a clever stand-in in moist, dense bakes, but a poor choice for flaky pastries, cookies that need to spread, or any recipe where butter's solid state is crucial.
What Mayonnaise Actually Is (and Why It Works in Baking)
Mayonnaise is an emulsion of about 70–80% oil, egg yolks, and an acid (usually vinegar or lemon juice), plus salt and sometimes sugar. In baking, this composition means it brings fat (from the oil and yolks) and water (from the acid and any added liquid) at the same time. When you replace butter with mayo, you’re effectively adding a pre-mixed fat-and-moisture package that can make cakes and muffins exceptionally tender and moist.
The egg yolks in mayonnaise also act as an emulsifier, helping to create a smooth, uniform crumb. That’s why mayonnaise cakes became a Depression-era staple: it was a way to make a rich, moist cake without using fresh eggs or much butter. The acid in mayo can also react with baking soda, giving a slight lift, which is why many mayonnaise cake recipes call for baking soda rather than baking powder.
How to Substitute: The Basic Ratio and Method
The most common swap is equal parts by volume: 1 cup mayonnaise = 1 cup butter. However, because mayo is less concentrated fat than butter (butter is about 80% fat, 15% water, and 5% milk solids), the texture will differ. For better results, many bakers use a slightly reduced amount—about 3/4 cup mayo for every 1 cup butter—and add a tablespoon or two of extra liquid if the batter seems too thick.
Here’s a step-by-step approach for using mayo in place of butter:
- Start with a recipe that already has a high moisture content, like chocolate cake, banana bread, or brownies.
- Measure the mayo (use full-fat, not light or fat-free, as those contain more water and stabilizers).
- Reduce the amount by about 25% if you want a firmer crumb; otherwise, use equal parts.
- Mix the mayo into the wet ingredients just as you would melted butter or oil. Do not try to cream it with sugar—mayo won’t trap air the way softened butter does.
- If the recipe calls for creaming butter and sugar, instead whisk the mayo with the sugar and eggs until smooth, then add dry ingredients.
- Bake as directed, but check for doneness a few minutes early because mayo batters can bake faster due to their higher moisture content.
When Substituting Works Well (and When It Fails)
Mayonnaise shines in recipes that rely on fat for tenderness rather than structure or flakiness. Excellent candidates include:
- Chocolate cakes and devil’s food cakes (the classic “mayo cake”)
- Brownies and blondies
- Quick breads like banana, zucchini, or pumpkin bread
- Muffins, especially those with fruit or nuts
- Pancakes or waffles (use melted butter substitute)
On the flip side, avoid using mayo in:
- Pie crusts, puff pastry, or biscuits—these need solid, cold butter to create flaky layers.
- Shortbread or sugar cookies that rely on creaming butter for a crumbly, melt-in-your-mouth texture.
- Any recipe where butter is a dominant flavor, like butter cookies or pound cake (unless you want a tangy twist).
- Yeast breads—mayo’s fat and acid can interfere with gluten development and yeast activity.
How the Texture and Flavor Change
Baked goods made with mayo tend to be denser, moister, and more tender than those made with butter. The oil in mayo prevents gluten from forming too much, so cakes come out with a fine, soft crumb that stays moist for days. However, you lose the airy lightness that comes from creaming butter and sugar, so cakes may be slightly more compact.
Flavor-wise, mayo adds a subtle tanginess that most people can’t identify but that can enhance chocolate or spice flavors. In neutral recipes like vanilla cake, the tang may be noticeable, especially if you use a mayo with a strong vinegar taste. To minimize it, choose a mild, high-quality mayonnaise (like Hellmann’s or Duke’s) and avoid extra-virgin olive oil mayos, which have a peppery note.
Common Problems and How to Fix Them
If you try a mayo substitution and something goes wrong, here’s what to check:
- Batter too thick? Add 1–2 tablespoons of milk or water to loosen it.
- Baked goods too dense? You likely used too much mayo. Next time, reduce to 3/4 cup per 1 cup of butter.
- Tangy aftertaste? Use a milder mayo, or add a pinch of sugar to balance the acid.
- Weird shiny crust? That’s from the oil in mayo. Brush the top with milk before baking to reduce shine.
- Spreading too much? If you used mayo in cookies, they may spread more because mayo is liquid at room temperature. Chill the dough before baking.
Mayo vs. Other Butter Substitutes
Mayonnaise isn’t the only option. Here’s how it compares to other common swaps:
- Oil: Use 3/4 cup oil for 1 cup butter. Oil gives moistness but no structure or flavor. Mayo adds eggs and acid, which can improve lift and tenderness.
- Greek yogurt or applesauce: These replace some fat with moisture, making cakes lighter but less rich. Mayo is richer and more similar to butter in fat content.
- Mashed banana or avocado: Adds flavor and moisture, but changes taste and color. Mayo is more neutral.
- Shortening: Provides structure and flakiness but no flavor. Mayo is not a good substitute for shortening in pie crusts.
Cost and Practicality
Mayonnaise is generally cheaper than butter, especially when butter prices spike. A jar of mayo costs about the same as a pound of butter but yields more cups (a 30-ounce jar contains about 3.5 cups). That makes it a budget-friendly alternative for large batches. However, you’ll use more mayo than butter in some recipes, so the savings may be modest. Also, mayo has a long shelf life (unopened) but must be refrigerated after opening, so it’s convenient to keep on hand.
Frequently Asked Questions
Can I use mayonnaise instead of butter in cookies?
Yes, but only in soft, chewy cookies like chocolate chip or oatmeal. Use 1/2 cup mayo for every 1/2 cup butter, and expect the cookies to be cakier and less spread-out. Chill the dough for at least 30 minutes to prevent excessive spreading.
Does mayonnaise make cake taste like mayo?
No, not if you use a standard amount. The tang is subtle and usually masked by sugar and cocoa. In vanilla cakes, you might detect a slight sourness, but most people can’t identify it as mayo.
Can I substitute mayo for butter in boxed cake mix?
Yes. Replace the oil (or melted butter) called for on the box with the same amount of mayo. Many people add a few tablespoons of mayo to boxed mixes to make them moister. Follow the box instructions for eggs and water, but swap the fat.
Is it safe to bake with mayonnaise?
Yes. Mayonnaise is safe to use in baking because it’s cooked at high temperatures, killing any potential bacteria. The USDA notes that commercial mayonnaise is pasteurized and safe to use in recipes that are fully baked. Store leftover baked goods at room temperature for up to 2 days, or refrigerate for up to a week.
Can I use light or fat-free mayonnaise?
You can, but it’s not recommended. Light mayo contains more water and stabilizers, which can make baked goods gummy or cause them to collapse. If you use it, reduce the amount by 20% and add a tablespoon of oil to compensate.
What’s the best way to substitute mayo for butter in a recipe that calls for melted butter?
If the recipe calls for melted butter (like in brownies), simply swap in an equal amount of mayo. Since mayo is already liquid, it mixes easily. For recipes that call for softened butter, you’ll need to adjust the mixing method as described above.