My grandmother used to say the best cakes are born from a little practicality and a lot of love, and this chocolate mayonnaise cake is proof. It’s an old-fashioned, Depression-era recipe that leans on a surprising pantry staple to make a moist chocolate cake with a tender crumb that stays soft for days.
In my kitchen, I keep coming back to it when I want scratch baking that feels effortless but tastes like you fussed. And when you finish it with a nutty, toasty brown butter chocolate frosting, no one will ever guess the “secret,” but everyone will ask for the recipe.
Why You’ll Love This Recipe
The ultimate frosting twist: Instead of a standard chocolate frosting, I go for brown butter chocolate frosting, and those toasted, caramel-like notes make the whole cake taste bakery-level without extra work.
Incredibly moist, never dry: Mayonnaise sounds quirky, but it bakes up into the most velvety, plush crumb, the kind of Chocolate Mayonnaise Cake that stays tender even the next day.
Deep, rich chocolate flavor: Good cocoa powder does the heavy lifting here, and the espresso powder, optional, quietly boosts the chocolate without screaming “coffee.”
One-bowl ease: This is the definition of a one-bowl recipe, quick, forgiving, and friendly for any baker. If you love low-effort sweets, this another easy dessert has the same cozy payoff.
Ingredients and Substitutions
These are simple pantry ingredients, but the balance is what makes the cake so plush. Measure with care, sift when asked, and you’ll get that rich, tender crumb every time.
Ingredients
Cake:
- 1 1/2 cups (340g) mayonnaise
- 1 1/2 cups (340g) water, lukewarm
- 2 teaspoons King Arthur Pure Vanilla Extract
- 3 cups (360g) King Arthur Unbleached All-Purpose Flour or King Arthur Gluten-Free Measure for Measure Flour
- 1 1/2 cups (297g) granulated sugar
- 3/4 cup (63g) King Arthur Triple Cocoa Blend
- 2 1/2 teaspoons baking soda
- 2 teaspoons espresso powder, optional
- 1/2 teaspoon table salt
Frosting:
- 1 batch Super-Simple Chocolate Frosting, prepared
Ingredient Notes & Substitutions
Mayonnaise: Go with full-fat, real mayonnaise for the best texture and flavor. Light mayo and salad dressings have less oil and different stabilizers, and you’ll notice it in a drier, less tender crumb.
Cocoa powder: Dutch-processed cocoa gives a darker color and a smoother, rounder chocolate profile, while natural cocoa tastes a bit sharper and lighter in color. Either works in a chocolate mayonnaise cake, but I tend to reach for Dutch-style when I want that deep, classic “bakery chocolate” vibe.
Espresso powder, optional: This is my favorite quiet trick because it doesn’t make the cake taste like coffee. It simply makes the chocolate taste more like itself, fuller and more complex.
Flour: This was tested with all-purpose flour, but the measure-for-measure gluten-free option listed can work nicely too. If you want a naturally gluten-free showstopper, that rich flourless chocolate cake is another great direction.
Vegan mayonnaise: A quality vegan mayonnaise can work as a swap if that’s how you bake. The goal is still an emulsion that brings fat and moisture to the batter.
How to make chocolate mayonnaise cake
Prep the Pan and Make the Mayonnaise Base
- Heat the oven to 350°F and keep your rack centered so the cake bakes evenly. Lightly grease a 9″ x 13″ pan, and take a second to get into the corners, that’s where sticking loves to happen.
- In a large bowl, whisk together the mayonnaise, 1 1/2 cups (340g) water, lukewarm, and vanilla until the mixture looks completely smooth. You’re looking for a thin, uniform liquid with no mayo streaks, it should smell lightly tangy and sweet from the vanilla.
Sift, Then Whisk Into a Glossy Batter
- Sift in the flour, sugar, cocoa powder, baking soda, espresso powder, optional, and salt. This matters because cocoa likes to clump, and sifting helps you avoid overmixing later.
- Whisk just until the dry ingredients disappear and the batter turns thick and glossy, like chocolate pudding that can still pour. A few tiny lumps are fine, but scrape the bottom of the bowl to make sure no flour hides down there.
Bake, Cool Completely, Then Frost
- Pour the batter into the prepared pan and nudge it into an even layer with a spatula. The surface should look smooth and shiny, with no dry patches.
- Bake for 30 to 35 minutes, until the top looks set and the edges just begin to pull from the pan. A toothpick or thin knife in the center should come out clean or with a few moist crumbs, not wet batter.
- Cool the cake in the pan on a wire rack until fully cooled. Once it’s completely cool, finish with your frosting of choice, then keep leftovers well covered at room temperature for several days, or freeze for longer storage.
The Baker’s Secrets to a Perfect Crumb
The science of mayonnaise: Mayonnaise is an emulsion, and that’s the magic. The oil spreads through the batter in an ultra-fine way for moisture, the egg adds richness and structure, and the acidity (vinegar or lemon) gently tenderizes gluten for that signature tender crumb.
Why room temperature and lukewarm matter: When your mayonnaise isn’t fridge-cold and your water is lukewarm, everything blends smoothly without fighting you. It helps the batter emulsify properly for a more even, velvety texture.
Doneness you can feel: Beyond the toothpick, look for edges that slightly pull away and a top that springs back when lightly pressed. Pulling it at “moist crumbs” is how you avoid the number one heartbreak, over-baking a moist chocolate cake into something dry.
Pro Tips & Troubleshooting
Pro Tips
- Sift, sift, sift: Sifting the dry ingredients keeps cocoa lumps out and helps the cake rise evenly without extra whisking.
- Espresso powder, optional, is a baker’s trick: It deepens chocolate flavor without making the cake taste like coffee.
- Whisk by hand for control: Once flour goes in, gentle mixing keeps the crumb tender instead of chewy.
Common Mistakes to Avoid
- Overmixing after the flour: Too much whisking develops gluten and can make the cake feel tough or gummy.
- Frosting while warm: Warm cake tears easily, and frosting turns greasy and slides right off, patience pays here.
- Wrong flour measuring: Spoon flour into the cup and level it off, scooping compacts it and can dry out the crumb.
Troubleshooting Common Issues
- Why is my cake dry? It’s almost always over-baking, start checking a few minutes early and pull it when you see moist crumbs.
- Why did my cake sink in the middle? Opening the oven too early can drop the temperature, and under-baking leaves the center without structure.
Serving & Storage
Serving Suggestions
- Classic pairing: A thick slice with a tall, cold glass of milk never misses.
- Easy garnish: Chocolate sprinkles, shavings, or a light dusting of cocoa makes it look party-ready.
- A la mode: A slightly warmed slice with vanilla bean ice cream turns it into a full-on dessert moment.
- Fruit on the side: Raspberries or strawberries add a bright, tart bite against the deep chocolate.
- Leftover transformation: Cubed cake layers beautifully into a stunning chocolate trifle with cream and berries for an effortless second dessert.
Storage and Freezing Instructions
- Room temperature: Keep the cake airtight or tightly covered at room temperature for up to 4 days, the fridge tends to dry it out.
- Make-ahead: Bake the unfrosted cake a day early, cool fully, then wrap tightly and keep at room temperature.
- Freezing: Freeze well-wrapped cake for longer storage. For frosted cake, let the frosting firm up first, then wrap tightly; it keeps up to 3 months and thaws nicely at room temperature.
A Sweet Final Note
This chocolate mayonnaise cake is the kind of old-fashioned cake that quietly earns a permanent spot in your back pocket, unbelievably moist, deeply chocolatey, and easy enough for a weeknight. If you feel like playing, fold in chocolate chips or chopped walnuts, or lean into that nutty brown-butter style when you frost.
And if you’re building your personal chocolate cake lineup, a dependable classic chocolate cake is always worth having nearby for side-by-side baking moods.
Moist Chocolate Mayonnaise Cake
Equipment
- 9×13 inch baking pan
- large bowl
- Whisk
- Spatula
- Wire rack
Ingredients
Cake:
- 1 1/2 cups mayonnaise (340g)
- 1 1/2 cups water, lukewarm (340g)
- 2 teaspoons King Arthur Pure Vanilla Extract
- 3 cups King Arthur Unbleached All-Purpose Flour or King Arthur Gluten-Free Measure for Measure Flour (360g)
- 1 1/2 cups granulated sugar (297g)
- 3/4 cup King Arthur Triple Cocoa Blend (63g)
- 2 1/2 teaspoons baking soda
- 2 teaspoons espresso powder optional
- 1/2 teaspoon table salt
Frosting:
- 1 batch Super-Simple Chocolate Frosting, prepared
Instructions
Prep the Pan and Make the Mayonnaise Base
- Preheat the oven to 350°F with the rack in the center. Lightly grease a 9″ x 13″ pan, ensuring you get into the corners.
- In a large bowl, whisk together the mayonnaise, lukewarm water, and vanilla extract until completely smooth and uniform.
Sift, Then Whisk Into a Glossy Batter
- Sift the all-purpose flour, granulated sugar, cocoa powder, baking soda, espresso powder (if using), and salt directly into the wet ingredients.
- Whisk just until the dry ingredients are incorporated and the batter is thick and glossy. Avoid overmixing; a few small lumps are okay. Scrape the bottom of the bowl to ensure no dry flour remains.
Bake, Cool Completely, Then Frost
- Pour the batter into the prepared pan and use a spatula to spread it into an even layer.
- Bake for 30 to 35 minutes. The cake is done when the top is set, the edges pull away from the pan, and a toothpick inserted into the center comes out clean or with a few moist crumbs attached.
- Let the cake cool completely in the pan on a wire rack before frosting. Once cool, apply frosting of your choice.







