Chocolate Mayonnaise Cake: The Weird Vintage Recipe That Actually Works
Some of the links in this post are affiliate links. This means if you click on the link and purchase the item, I will receive an affiliate commission at no extra cost to you. All opinions remain my own.
As an Amazon Associate I earn from qualifying purchases.
I’m about to ask you to put a spoonful of mayonnaise in your chocolate cake batter, and I need you to trust me.
Mayonnaise in a cake sounds like a joke until you break down what mayonnaise actually is: eggs, oil, and a little acid, whisked together. That’s basically half the ingredients in your average chocolate cake already sitting in the jar. So no, it doesn’t taste like mayonnaise; it just makes the cake incredibly moist without you tasting a thing, and it’s the kind of trick cooks have been using for decades.

I never met my grandmother, but I like to think this is the kind of trick she would have known. She passed away before I was born, so anything I know about her cooking comes from stories, old photos, and recipes like this one. Mayonnaise cake feels like one of those recipes she would have made without a second thought.
Back in her day, a jar of mayo doing double duty as butter and milk wasn’t weird. It was just smart. Mayonnaise cake goes all the way back to 1937, when Hellmann’s started printing the recipe right on their jars, and it really caught on during WWII when butter and milk got hard to find.
Quick Facts
- Prep Time: 15 minutes
- Cook Time: 35 minutes
- Total Time: 50 minutes
- Servings: 8
- Origin: This recipe dates back to 1937
- Created By: Hellmann’s printed the original version right on their mayonnaise jars as a marketing recipe
- Why It Works: Mayo is just eggs, oil, and acid, the same building blocks already in a chocolate cake, so it turns into an incredibly moist crumb
- Claim to Fame: It became a WWII kitchen staple when butter and milk were hard to find, and it’s still a favorite in recipe boxes today
Why You’ll Love this Recipe
- It’s unbelievably moist. The mayonnaise handles the fat and eggs, so the crumb comes out rich and tender every time.
- One bowl, no mixer skills needed. Mix, pour, bake. That’s really it.
- You probably have everything already. No specialty ingredients, just pantry basics and a jar of mayo.
- It keeps the secret. Nobody will guess what’s in it until you tell them, and their reaction is half the fun.
- It’s a taste of history. This cake got families through the Depression and WWII rationing, and it still holds up nearly a century later.
What Each Ingredient Does

- All-purpose flour: Gives the cake its structure. This is what holds everything else together.
- Unsweetened cocoa powder: Brings the chocolate flavor and that deep, dark color.
- Baking powder: Helps the cake rise and gives it a light texture.
- Baking soda: Reacts with the acid in the mayonnaise to add extra lift, so the cake doesn’t come out dense.
- Salt: Balances the sweetness and makes the chocolate flavor pop a little more.
- Eggs: Add structure and richness, and help bind the batter together.
- Sugar: Sweetens the cake and helps keep it moist as it bakes.
- Pure vanilla extract: Rounds out the flavor and adds warmth to the chocolate.
- Mayonnaise: The star of the show. It’s really just eggs, oil, and a bit of acid, so it adds moisture, richness, and tenderness all at once, without adding any mayo flavor.
- Water: Thins the batter to the right consistency so it bakes up soft instead of dense.
Substitutions and Variations
Mayonnaise: Stick with real mayonnaise for the best texture. Miracle Whip will work in a pinch, but it’s sweeter and tangier, so the flavor will be a little different.
Light or reduced-fat mayo: This works fine if that’s what you have on hand, though the cake may be very slightly less rich.
Cocoa powder: Regular unsweetened cocoa is great, but Dutch-process cocoa will give you an even deeper chocolate flavor and darker color.
Vanilla extract: Swap in almond extract for a different flavor twist, or use half vanilla and half almond.
Add-ins: Fold in a handful of chocolate chips or chopped nuts before baking for extra texture.
Pan options: This recipe works in a 9×13 pan, two 8 or 9-inch round pans for a layer cake, or a muffin tin if you’d rather make cupcakes. Just keep an eye on the bake time since it’ll be shorter for cupcakes.
Frosting: Chocolate buttercream is the classic pairing, but a simple powdered sugar dusting or cream cheese frosting both work well too.



Helpful Tips
- Don’t overmix the batter. Once the dry ingredients are incorporated, stop stirring. Overmixing leads to a denser cake.
- Use room temperature eggs. They blend into the batter more evenly and help the cake rise properly.
- Measure your flour correctly. Spoon it into the measuring cup and level it off instead of scooping straight from the bag, or you’ll end up with too much flour and a dry cake.
- Let the cake cool completely before frosting. If it’s even a little warm, the frosting will melt and slide right off.
- Check for doneness early. Start testing with a toothpick around the 28-minute mark since ovens vary, and you don’t want to overbake it.


Frequently Asked Questions
Can I make this cake ahead of time? Yes. It actually tastes even better the next day once the flavors have had time to settle. Just bake it a day ahead and frost it when you’re ready to serve.
Why did my cake sink in the middle? This usually happens if the cake is underbaked or the oven door was opened too early. Give it the full bake time and test with a toothpick before pulling it out.
Is mayonnaise cake the same thing as Depression cake? Not exactly. Depression cake usually refers to eggless, dairy-free recipes from that era, while mayonnaise cake specifically uses mayo in place of butter, milk, and oil. They come from the same era of resourceful baking, though.
Why is my cake dense instead of light and fluffy? This is usually from overmixing the batter or measuring the flour incorrectly. Mix just until combined and spoon your flour into the measuring cup instead of scooping it.
Can I use olive oil mayonnaise or a specialty mayo brand? You can, but it may slightly change the flavor since olive oil mayo has a stronger taste than regular mayonnaise. A neutral, classic mayo will give you the most reliable result.

Storage Tips
Room temperature: Store the cake covered for up to 2 days if it’s unfrosted or frosted with a shelf-stable frosting like buttercream.
Refrigerator: If it’s frosted with anything dairy-based, like cream cheese frosting, keep it covered in the fridge for up to 5 days.
Bring it back to room temp: Let refrigerated cake sit out for 20-30 minutes before serving so the texture and flavor are at their best.
Freezer: Wrap the cake tightly in plastic wrap, then a layer of foil, and freeze for up to 3 months. It’s best to freeze it unfrosted.
Thawing: Let it thaw at room temperature still wrapped, then frost once it’s fully thawed to avoid condensation on top.
Slices vs. whole cake: If you only need a slice or two at a time, wrap individual pieces separately, so you’re not thawing more than you need.
What to Serve with Mayonnaise Cake
- No-Churn Custard Ice Cream: A scoop of this alongside a warm slice is the ultimate vintage pairing, creamy and classic against the rich chocolate.
- Fresh whipped cream: Light, simple, and classic.
- Fresh berries: Raspberries or strawberries cut through the richness.
- Warm chocolate ganache or caramel sauce: Drizzle it on top if you want to go all in on the decadence.
- A cup of coffee: Coffee is a classic dessert pairing.
- A cold glass of milk: Simple, classic, and perfect with chocolate.
Other Recipes You May Enjoy
If you like this Mayonnaise Cake, you might also like my Wacky Cake or my Dr Pepper Cake. This Chocolate Little Layer Cake is also delicious.

Mayonnaise Cake

Equipment
Ingredients
- 2 Cup All-Purpose Flour
- ⅔ Cup Unsweetened Cocoa Powder
- 1 teaspoon Baking Powder
- 1 teaspoon Baking Soda
- ¼ teaspoon Salt
- 3 Large Eggs room temperature
- 1⅔ Cups Sugar
- 1½ teaspoons Vanilla Extract
- 1 Cup Mayonnaise
- 1⅔ Cups Water
Instructions
- Preheat the oven to 350℉.
- Grease a 9×13 inch baking dish and set aside.
- In a medium bowl, whisk the flour, unsweetened cocoa, baking powder, baking soda, and salt. Set aside.
- In a large bowl, beat the egg and sugar for 2 minutes.
- Add the mayonnaise, vanilla, and water and continue to beat.
- While mixing, slowly add the cocoa mixture a little at a time.
- Pour the batter into the greased 9×13 inch pan.
- Bake at 350℉ for 30-35 minutes or until a toothpick inserted in the center comes out clean.
- Let the cake cool completely on a wire rack.
- After cake is completely cooled, frost with the frosting of your choice.
Notes
- Don’t overmix the batter. Once the dry ingredients are incorporated, stop stirring. Overmixing leads to a denser cake.
- Use room temperature eggs. They blend into the batter more evenly and help the cake rise properly.
- Measure your flour correctly. Spoon it into the measuring cup and level it off instead of scooping straight from the bag, or you’ll end up with too much flour and a dry cake.
- Let the cake cool completely before frosting. If it’s even a little warm, the frosting will melt and slide right off.
- Check for doneness early. Start testing with a toothpick around the 28-minute mark since ovens vary, and you don’t want to overbake it.

Amazon and the Amazon logo are trademarks of Amazon.com, Inc, or its affiliates.
