Chocolate mayonnaise cake comes out with a tender crumb, deep cocoa flavor, and the kind of moist texture that stays soft for days. The mayonnaise doesn’t make it taste like sandwich filling; it stands in for the eggs and oil, which gives the cake richness without making it heavy. The result is a simple pantry cake that tastes like you worked harder than you did.
What makes this version worth keeping is the balance. Hot water helps the cocoa bloom, so the chocolate tastes darker and less flat, and the mayo gets whisked right into the batter so it disappears completely. If you’ve ever had a chocolate cake turn out dry or a little crumbly, this one fixes that problem without requiring a mixer or a long ingredient list.
Below you’ll find the small details that matter most, including how to keep the crumb tender, which mayonnaise to use, and the easiest way to know when the cake is done without overbaking it.
The cake stayed unbelievably moist for three days, and the cocoa flavor was deeper than any other chocolate cake I’ve made from scratch. I was skeptical about the mayonnaise, but you couldn’t taste it at all.
Save this chocolate mayonnaise cake for the kind of dessert that stays moist for days and needs nothing fancier than a dusting of powdered sugar.
The Reason This Chocolate Cake Stays Soft Instead of Drying Out
Most chocolate cakes dry out because they rely too heavily on cocoa and not enough fat, or they get baked until the center is fully firm. Mayonnaise solves the first problem because it brings both oil and egg into the batter in one ingredient, which keeps the crumb tender without making the cake greasy. The second problem comes down to timing: this cake should come out when the center still has a little spring, not when it looks completely set all the way through.
The batter is thin, and that worries people the first time they make it. It should be thin. That looseness helps the cake bake up evenly and gives you a lighter crumb than a thick batter would. If yours turns thick, the hot water likely wasn’t hot enough to bloom the cocoa, or the flour was packed too tightly.
What the Mayo Is Actually Doing Here

The mayonnaise matters because it replaces the usual mix of eggs and oil with something already emulsified. That means the fat disperses evenly through the batter, which is part of why the cake stays soft instead of baking up patchy or dry around the edges. Use a standard full-fat mayonnaise here; light versions can work in a pinch, but the texture won’t be as rich and the cake may feel a little less plush.
The cocoa powder does the heavy lifting on flavor, so use one that smells fresh and deeply chocolatey. Hot water, not just warm, is what helps it bloom and darken the batter. If you want to swap in coffee, use hot brewed coffee in the same amount. It won’t make the cake taste like coffee; it just sharpens the chocolate.
- Mayonnaise — Full-fat mayo gives the best texture and moisture. Don’t use salad dressing or anything sweetened.
- Unsweetened cocoa powder — This is where the chocolate flavor comes from, so a better cocoa makes a noticeable difference.
- Hot water or coffee — The hot liquid blooms the cocoa and helps the batter stay smooth. Without it, the chocolate tastes flatter.
- All-purpose flour — Standard flour keeps the crumb soft and sturdy enough to slice cleanly once cooled.
Mixing the Batter Without Overworking It
Start With the Dry Ingredients
Whisk the flour, cocoa, sugar, baking soda, and salt together until the cocoa disappears into the flour. That step matters more than it looks like it should because cocoa likes to clump, and those clumps stay behind in the finished cake if you skip the whisk. A quick dry mix also helps the baking soda spread evenly, which keeps the crumb from tasting uneven or rising in odd spots.
Bring in the Mayo and Hot Liquid
Stir in the mayonnaise first so it coats the dry ingredients, then add the water or coffee. The batter will look loose and glossy, and that’s exactly what you want. Don’t beat it hard at this stage; too much mixing can make the cake tougher than it should be. Stop as soon as the batter looks uniform and no dry streaks remain.
Bake Until the Center Springs Back
Scrape the batter into the prepared pan and bake until the edges pull slightly from the sides and the center springs back when pressed lightly. A toothpick should come out with a few moist crumbs, not wet batter. If you wait for the cake to look completely dry in the middle, you’ll overbake it and lose the texture that makes this recipe worth making.
Ways to Adjust This Cake Without Breaking It
Make it dairy-free without changing the crumb
This cake is naturally dairy-free as long as your mayonnaise is made without dairy, which most standard brands are. That means you don’t need a special substitute here. Just check the label if you’re serving someone with an allergy, since a few specialty mayos include extra ingredients you may not expect.
Use coffee for a deeper chocolate flavor
Swap the hot water for hot brewed coffee in the same amount. The cake won’t taste like coffee; it just tastes more chocolate-forward and a little darker. This is the easiest way to make the recipe taste a step more polished without changing the texture.
Turn it into cupcakes
Divide the batter among lined muffin cups and bake until the tops spring back and a tester comes out with a few moist crumbs. Cupcakes bake faster, so start checking early. The smaller size makes the crumb feel even more tender, but it also means they dry out faster if you leave them in too long.
Storage and Reheating
- Refrigerator: Store covered for up to 5 days. The crumb stays moist, and the flavor deepens by the next day.
- Freezer: Freezes well. Wrap individual slices tightly and freeze for up to 2 months. Thaw at room temperature before serving.
- Reheating: If you want a warm slice, microwave it in short bursts for 10 to 15 seconds. Overheating will dry the cake out and make the crumb feel gummy at the edges.
