• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Halloween
  • Recipes
  • Free Tutorials
  • Cake Classes
  • Cake Commissions
  • About Liz

Sugar Geek Show logo

menu icon
go to homepage
  • Halloween
  • Recipes
  • Free Tutorials
  • Cake Classes
  • Cake Commissions
  • About Liz
subscribe
search icon
Homepage link
  • Halloween
  • Recipes
  • Free Tutorials
  • Cake Classes
  • Cake Commissions
  • About Liz
×
Home › Recipes › Cake

Published on October 6, 2026 by Liz Marek · This post may contain affiliate links · 127 Comments

Chocolate Mayonnaise Cake

5228 shares
  • Facebook
  • Flipboard
Jump to Recipe
Whole chocolate mayonnaise cake covered in swirled chocolate buttercream.
Slice of chocolate mayonnaise cake with chocolate buttercream on a green plate.

This chocolate mayonnaise cake is the first chocolate cake I ever developed, and it's been popular with cake decorators and my clients alike ever since. It's super moist, bakes up with a soft, tight crumb, and has a BIG chocolate flavor thanks to Dutched cocoa powder and my secret ingredient, mayonnaise. If you love the texture of my vanilla cake recipe, this is the chocolate version of that.

Slice of chocolate mayonnaise cake with chocolate buttercream on a green plate.

Quick Glance at the Recipe: Chocolate Mayonnaise Cake

  • Recipe Name: Chocolate Mayonnaise Cake
  • Why You'll Love It: Rich, moist, and sturdy enough to stack, carve, or cover in fondant.
  • Time and Difficulty: 20 minutes prep + 30 to 40 minutes bake. Intermediate.
  • Main Ingredients: Cake flour, Dutched cocoa powder, mayonnaise, butter, sugar, and eggs.
  • Method: Bloom the cocoa in boiling water, then mix with the reverse mixing method and bake in three 8"x2" pans at 335º F.
  • Texture and Flavor: Soft, tight crumb with a deep, dark chocolate flavor.
  • Quick Tip: Let the cocoa and water cool until warm, not hot, before you add the mayo and eggs.
ChatGPT
Google AI
Perplexity
Grok
Add us as a trusted site on Google
Jump to:
  • Quick Glance at the Recipe: Chocolate Mayonnaise Cake
  • What Makes This Chocolate Mayonnaise Cake So Good⭐⭐⭐⭐⭐
  • ⭐️⭐️⭐️⭐️⭐️ Reader Review
  • Chocolate Mayonnaise Cake Ingredients
  • How To Make Chocolate Mayonnaise Cake Step-By-Step
  • Cake Batter and Frosting Calculator
  • Cake Batter and Frosting Calculator
  • Cups of Batter Needed
  • Cups of Frosting Needed
  • Make This Chocolate Mayonnaise Cake Your Own
  • Common Chocolate Mayonnaise Cake Problems To Avoid
  • Final Thoughts
  • Chocolate Mayonnaise Cake FAQs
  • More Chocolate Cake Recipes To Try
  • Ready To Master Cake Decorating?
  • Leave Me A Review⭐️⭐️⭐️⭐️⭐️
  • Recipe

What Makes This Chocolate Mayonnaise Cake So Good
⭐⭐⭐⭐⭐

I know mayonnaise sounds a bit odd in a cake, but if you think about it, mayo is just eggs and oil in fluffy form. Two things that go great in cake.

  • Mayonnaise. It adds moisture and richness, and I updated my original recipe to use it because it gives the cake a better taste and texture.
  • Dutched cocoa powder. It's smoother, darker, and more chocolatey than natural cocoa. That's where the deep, almost reddish color comes from.
  • Boiling water. Whisking the cocoa into boiling water first gets it nice and smooth before it goes into the batter.
  • The reverse mixing method. Mixing the butter into the dry ingredients first gives you that nice tight crumb that's still soft and moist.
  • Butter AND mayo. The butter makes the cake stable enough for stacking and sculpted cakes, so I use this same recipe for wedding cakes and carved cakes.

I never put much thought into cocoa powder until I started testing chocolate cake recipes for my wedding cake clients. Everyone raved about the recipe on the back of the Hershey's can, but when I tried it, it tasted bitter to me and not at all what I was looking for. This is the cake I came up with instead. Looking for a quick one-bowl option? Try my easy chocolate cake.

⭐️⭐️⭐️⭐️⭐️ Reader Review

My go-to chocolate cake recipe! Yummy and moist, but sturdy enough for stacking or carving!!
Catherine F.

Chocolate Mayonnaise Cake Ingredients

I always weigh my ingredients with a digital kitchen scale because measuring in cups is not exact, and who wants to waste butter and vanilla at today's prices?

Chocolate mayonnaise cake ingredients in glass bowls with labels.
  • Mayonnaise. I use Best Foods (it's called Hellmann's in some parts of the country). Go with a nice neutral mayonnaise. You can replace it with other mayos too. Most mayo has salt in it, so you don't need to adjust the salt. Mayo is made with eggs, so this cake is not egg free unless you're using an egg free mayo, and the recipe has whole eggs in it too.
  • Dutched cocoa powder. I like Cacao Barry Extra Brute because it has a fantastic flavor and it's easy to find online. Here's my guide to Dutch processed cocoa powder if you're not sure what you have. Only have natural cocoa? Reduce the baking powder to 1 ¼ teaspoons and increase the baking soda to 2 ¾ teaspoons.
  • Water. Boiling, to whisk with the cocoa powder.
  • Cake flour. Gives this cake its soft, tight crumb. Bleached or unbleached both work. Don't have any? You can use my cake flour substitute. The texture will just be slightly different.
  • Granulated sugar. For sweetness and moisture.
  • Unsalted butter. At room temperature, for the cake and the buttercream. Forgot to set it out? Use my room temperature ingredient hacks.
  • Eggs. Large, at room temperature.
  • Baking powder and baking soda. You need both for the right rise.
  • Vanilla extract and salt. In both the cake and the buttercream.
  • Pasteurized egg whites and powdered sugar. These make my chocolate buttercream light and creamy without cooking anything.

See the recipe card for the full list of ingredients with quantities.

How To Make Chocolate Mayonnaise Cake Step-By-Step

Before you start, preheat your oven to 335º F and prep three 8"x2" cake pans with cake goop or your favorite pan release. Make sure your butter and eggs are at room temperature, and grab your stand mixer.

Dutched cocoa powder whisked into boiling water in a glass bowl.
  1. Bring your water to a boil and whisk in the cocoa powder until smooth. Let it cool until it's warm, not hot.
Mayonnaise added to the cocoa mixture in a glass bowl.
  1. Whisk in the mayonnaise, vanilla, and eggs to break up the eggs.
Flour and dry ingredients in a stand mixer bowl for chocolate mayonnaise cake.
  1. Place your flour, sugar, baking powder, baking soda, and salt in the bowl of your stand mixer with the paddle attachment.
  2. Add the butter in small chunks with the mixer on low and mix until it looks like coarse sand.
Liquid ingredients being poured into chocolate mayonnaise cake batter in a stand mixer.
  1. Add half of the liquid and mix on medium for 2 minutes. This builds the cake's structure.
  2. Turn the mixer to low and slowly add the rest of the liquid, scraping the bowl once or twice, then mix on medium for 30 more seconds.

PRO TIP: Don't skip the full 2 minutes of mixing. If you do, your cake could collapse.

Chocolate mayonnaise cake batter in round cake pans.
  1. Divide the batter between your three pans.
  2. Bake for 30 to 40 minutes, until the center is set and a toothpick comes out with a few sticky crumbs.
Baked chocolate mayonnaise cake layer cooling on a wire rack.
  1. Cool the cakes in the pans for about 10 minutes, then flip them out onto a cooling rack and cover them in plastic wrap so they don't dry out.

PRO TIP: For carving or stacking, wrap the cooled layers in plastic wrap and give them a short chill in the freezer before carving. Chilled cakes are SO much easier to handle.

easy buttercream in a stand mixer with whisk attachment
  1. Whip the egg whites and powdered sugar with the whisk attachment on high for 5 minutes.
  2. Melt 8 ounces of the butter and stir in the cocoa powder until smooth.
  3. Add the rest of the butter in small chunks and keep whipping until the buttercream is light, white, and creamy.
smooth chocolate buttercream frosting
  1. Add the chocolate mixture, vanilla, and salt and whip until combined.
  2. Switch to the paddle and mix on low until the buttercream is smooth with no bubbles. This can take up to 20 minutes.
Chocolate buttercream being spread on a chocolate mayonnaise cake layer.
  1. Trim your cooled cakes with a serrated knife, then fill and frost with the chocolate buttercream using an offset spatula.
Whole chocolate mayonnaise cake frosted with swirled chocolate buttercream.

Want to really please the chocolate lover in your life? Swap the buttercream for dark chocolate ganache. New to layer cakes? Here's how to decorate a cake step by step.

Cake Batter and Frosting Calculator

This recipe makes three 8"x2" cake layers. Use the calculator below to adjust the batter for other pan sizes.

Cake Batter and Frosting Calculator

Select an option below to calculate how much batter or frosting you need. Adjust the servings slider on the recipe card to change the amounts the recipe makes.

Choose a pan type

Choose a cake pan size
(based on 2" tall cake pan)

Choose a cake pan size
(based on 2" tall cake pan)

Choose a cake pan size
(based on 2" tall cake pan)

Cupcake Tin Size

Choose number of pans

Cups of Batter Needed

8 cups

Cups of Frosting Needed

5 cups

Note: measurements are estimated based off the vanilla cake recipe using standard US cake pans and sizes. Measurements used are for 2" tall cake pans only. Your results may vary. Do not overfill cake pans above manufacturer's recommended guidelines.

Make This Chocolate Mayonnaise Cake Your Own

  • Cupcakes. This batter bakes up beautifully as cupcakes and makes about 36.
  • Gluten free. I've made this cake gluten free successfully using Bob's Red Mill 1:1 flour.
  • Dairy free. Replace the butter with Earth Balance and leave out the salt, otherwise it can taste really salty.
  • Marble cake. Make a batch of this batter and a batch of vanilla batter and marble them together.
  • Sculpted and tiered cakes. It's strong enough for a bottom tier (with supports) and can be covered in fondant. It's a soft cake, so chill it well before you handle it. Here's how to stack cakes.
  • Doctored box mix. Not into baking from scratch? Try my chocolate WASC.

Common Chocolate Mayonnaise Cake Problems To Avoid

  • Sunken middle. If your cake sinks in the center, it wasn't baked all the way. Some ovens run cooler than others, so next time leave the oven closed until the 40 to 45 minute mark before you check it.
  • Dry cake. It was baked too long. Start checking at 30 minutes and pull it when the toothpick has a few sticky crumbs.
  • Bitter flavor. You have to use Dutched cocoa powder for this recipe. Natural cocoa tastes sharper.
  • Cake too soft to handle. Give the wrapped layers a short chill in the freezer before you trim, carve, or stack.

Final Thoughts

This is the first chocolate cake recipe I ever developed, and it's still one of my favorites. People are always impressed with the flavor because it's so rich, and nobody ever guesses the secret is mayonnaise.

Slice of chocolate mayonnaise cake with chocolate buttercream on a green plate.

Chocolate Mayonnaise Cake FAQs

Can you taste the mayonnaise in chocolate mayonnaise cake?

No. Mayonnaise is just eggs and oil, so it adds moisture and richness, not mayo flavor.

Does it matter what kind of mayonnaise I use?

I use Best Foods, which is the same as Hellmann's, but you can replace it with other mayos. Most mayonnaise has salt in it, and you don't need to adjust the recipe for that.

Can I substitute the mayonnaise with sour cream, yogurt, or buttermilk?

No. Mayonnaise is eggs and oil, so it's not the same as yogurt or buttermilk, and the recipe may not turn out.

Can I use all-purpose flour instead of cake flour?

Cake flour gives the best result, but if you don't have any you can make a cake flour substitute with all-purpose flour. It's fine, the texture will just be slightly different.

How do I store chocolate mayonnaise cake?

Wrap unfrosted layers in plastic wrap to prevent drying out and keep them at room temperature for up to 24 hours. Never store plain, unfrosted cake in the fridge because it dries it out. Once the cake is frosted, it keeps for up to a week in the fridge or 2 months in the freezer.

More Chocolate Cake Recipes To Try

  • Easy chocolate cake recipe slice on a white plate with cake in the background.
    Easy Chocolate Cake Recipe
  • slice of chocolate cake on grey plate with cake in background
    Death By Chocolate Cake
  • close up of german chocolate cake on a blue patterned plate with cake in the background
    German Chocolate Cake
  • close up of a slice of black velvet cake
    Black Velvet Cake

Ready To Master Cake Decorating?

Join Sugar Geek University and learn professional techniques through detailed cake decorating courses, tutorials, and real kitchen demonstrations by
award-winning cake decorator, Liz Marek.

Start Learning Now
Sugar Geek University cake decorating courses

Leave Me A Review
⭐️⭐️⭐️⭐️⭐️

If you tried this Chocolate Mayonnaise Cake or any other recipe on my blog, please leave a 🌟 star rating and let me know how it goes in the comments. I love hearing from you!

Recipe

Slice of chocolate mayonnaise cake with chocolate buttercream on a green plate.

Chocolate Mayonnaise Cake

This chocolate mayonnaise cake has a moist, delicate crumb and a big chocolate flavor thanks to Dutched cocoa powder and my secret ingredient, mayonnaise! Makes three 8"x2" cake layers.
Print Recipe Pin Recipe Rate Recipe
Prep Time: 20 minutes minutes
Cook Time: 40 minutes minutes
Total Time: 1 hour hour
Course: Dessert
Cuisine: American
Servings: 24 servings
Calories: 770kcal
Author: Liz Marek

Equipment

  • 3 8" x 2" cake pans
  • 1 Electric Stand Mixer with paddle and whisk attachments
  • 1 Digital Kitchen Scale

Ingredients

For the cake

  • 3 oz Dutched cocoa powder
  • 11 oz water
  • 5 oz mayonnaise
  • 1 tablespoon vanilla extract
  • 4 large eggs room temperature
  • 19 oz cake flour
  • 20 oz granulated sugar
  • 2 ¾ teaspoon baking powder
  • 1 ¼ teaspoon baking soda
  • 1 ¼ teaspoon salt
  • 8 oz unsalted butter room temperature

For the chocolate buttercream

  • 8 oz pasteurized egg whites room temperature
  • 32 oz powdered sugar
  • 36 oz unsalted butter room temperature
  • 1 tablespoon vanilla extract
  • 1 teaspoon salt
  • 4 oz cocoa powder
US Customary - Metric

Instructions

  • Before you begin: Preheat your oven to 335º F and prepare three 8"x2" cake pans with cake goop or your preferred pan release. Make sure your butter and eggs are at room temperature.

For the cake

  • Bring the water to a boil, then whisk in the cocoa powder until smooth. Let the mixture cool until it's warm, not hot.
  • Add the mayonnaise, vanilla, and eggs to the cooled cocoa mixture and whisk to break up the eggs.
  • Place the flour, sugar, baking powder, baking soda, and salt in the bowl of a stand mixer with the paddle attachment.
  • Turn the mixer on low (setting 1 on a KitchenAid) and add the room temperature butter in small chunks. Mix on low until the mixture looks like coarse sand.
  • Add half of the liquid ingredients to the dry ingredients and mix on medium for 2 minutes. Don't skip this step or your cake could collapse.
  • Turn the mixer back down to low and slowly add the rest of the liquids, stopping once or twice to scrape the bowl. Once combined, turn the mixer up to medium for another 30 seconds.
  • Divide the batter evenly between the three prepared pans.
  • Bake for 30 to 40 minutes, or until the center is set and a toothpick comes out with a few sticky crumbs. Start checking at 30 minutes.
  • Let the cakes cool in the pans for about 10 minutes, or until the pans are cool enough to touch, then flip them out onto a cooling rack. Cover with plastic wrap so they don't dry out and let them cool completely.

For the chocolate buttercream

  • Place the egg whites and powdered sugar in the bowl of a stand mixer with the whisk attachment. Combine on low, then whip on high for 5 minutes.
  • Set aside 8 oz of the butter and melt it in the microwave until JUST melted. Don't overheat it. Mix the melted butter with the cocoa powder until smooth.
  • With the mixer running, add the remaining butter in small chunks and keep whipping until the buttercream is light, white, and creamy. Give it a taste. If it still tastes buttery, keep whipping.
  • Add the chocolate mixture, vanilla, and salt and whip until combined, scraping the bowl if needed.
  • Switch to the paddle attachment and mix on low until smooth and creamy with no bubbles. This can take up to 20 minutes.

To assemble

  • Once the cakes are completely cool, trim them, then fill and frost with the chocolate buttercream.

Video

Notes

Mayonnaise: I use Best Foods (also sold as Hellmann's), but you can replace it with other mayos. Most mayo has salt in it, so there's no need to adjust the salt. Mayonnaise is made with eggs, so this cake is not egg free.
Cocoa powder: This recipe is made with Dutched cocoa powder. If you only have natural cocoa powder, reduce the baking powder to 1 ¼ teaspoons and increase the baking soda to 2 ¾ teaspoons.
Cake flour: You can use a cake flour substitute if you need to. The texture will just be slightly different.
Cupcakes: This recipe makes about 36 cupcakes.
Carving: This recipe works great for carving sculpted cakes! I use the same recipe for wedding and sculpted cakes. I always bake them, de-pan them, wrap them in plastic wrap, and then give them a short chill in the freezer before carving. Chilled cakes make carving or stacking SO much easier!
Storage: Wrap unfrosted layers in plastic wrap to prevent drying out and keep them at room temperature for up to 24 hours. Don't refrigerate unfrosted cake because it dries it out. Once frosted, the cake keeps for up to a week in the fridge or 2 months in the freezer.
If your cake sinks in the center: It wasn't baked all the way. Some ovens run cooler than others, so next time leave the oven closed until the 40 to 45 minute mark before you check it.
Nutrition: Calculated for 1 of 24 slices of the three-layer cake, including the chocolate buttercream.

Nutrition

Serving: 1serving | Calories: 770kcal | Carbohydrates: 83g | Protein: 7g | Fat: 49g | Saturated Fat: 28g | Polyunsaturated Fat: 5g | Monounsaturated Fat: 13g | Trans Fat: 2g | Cholesterol: 142mg | Sodium: 351mg | Potassium: 221mg | Fiber: 4g | Sugar: 61g | Vitamin A: 1425IU | Calcium: 52mg | Iron: 2mg
Made this?Share it with the Sugar Geek Show Community!

More Cake Recipes for Holidays

  • close up of pink champagne cake with raspberry filling on a white plate.
    Pink Champagne Cake Recipe
  • closeup of fresh apple cake recipe with brown butter buttercream on grey plate
    Fresh Apple Cake Recipe
  • close up slice of pumpkin spice cake
    Pumpkin Spice Cake
  • closeup of cake slice on a white plate
    Eggless Chocolate Cake

About Liz Marek

Liz Marek is a professional cake artist and recipe developer who has been teaching baking and cake decorating since 2008. She founded Artisan Cake Company in Portland, Oregon in 2009 and now runs Sugar Geek Show, where she publishes kitchen-tested recipes, food science explanations, and step-by-step tutorials.

Liz is best known for sculpted and hyperrealistic cakes. She won Netflix's Is It Cake? Holiday 2 in 2025 with a hyperrealistic Santa cake, and has competed on and won Food Network cake competitions. Cake Masters Magazine named her one of the top 10 cake artists in 2017. She is the author of Artisan Cake Company's Visual Guide to Cake Decorating and a graduate of the Oregon Culinary Institute.

Her focus is on explaining not just how a recipe works but why it works, so bakers can troubleshoot instead of guess. Every recipe on this site is tested before it's published.

Liz teaches full-length cake tutorials, including sculpted and hyperrealistic cakes, at Sugar Geek University.

Reader Interactions

Comments

  1. AT says

    May 23, 2026 at 11:42 am

    I tried your red velvet, and it was absolutely amazing! Can I substitute the boiling water for coffee?

    Reply
    • Liz Marek says

      October 06, 2026 at 3:07 pm

      Yes you can! Just make sure the coffee is cool or warm, not hot.

      Reply
  2. Andrea Homan says

    December 10, 2025 at 7:58 pm

    5 stars
    Hi Liz, thank you for sharing these amazing recipes! Your vanilla cake quickly became a highly requested birthday cake for my family. I’m going to make this chocolate cake at Christmas and prefer three layers (as in a couple of the pictures), but the recipe is for two layers. How do I correctly adjust the recipe?
    Thank you in advance!

    Reply
    • Elizabeth Marek says

      December 11, 2025 at 12:35 pm

      You can adjust the recipe to make a 1.5 batch

      Reply
  3. sanja says

    October 15, 2025 at 7:32 am

    would i be able to do this for airplane mold

    Reply
    • Liz Marek says

      October 06, 2026 at 3:07 pm

      Yes, this should work in any kind of cake mold.

      Reply
  4. Amanda says

    October 11, 2025 at 2:23 pm

    4 stars
    The video says oven temp of 335 for 30-40 mins and the recipe itself says 350 for 30 mins. Which is correct? Mine turned out slightly dry.

    Reply
    • Liz Marek says

      October 06, 2026 at 3:07 pm

      Good catch Amanda! The video is correct. Bake at 335º F for 30 to 40 minutes and start checking at 30. I've updated the recipe card so they match now.

      Reply
« Older Comments
4.93 from 89 votes (55 ratings without comment)

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recipe Rating




All comments are subject to our Terms of Use

Primary Sidebar

Hi, I'm Liz! I'm a cake artist and recipe developer, and I won Netflix's Is It Cake? Holiday 2 with a hyperrealistic Santa. I write foolproof recipes that explain why things work, not just how.

I also teach full-length cake tutorials, including sculpted cakes, at Sugar Geek University.

More about me →

Our Cake Greatest Hits

Check out our best cake recipes

Celebrate Halloween 🎃

  • black and white striped cake with pink drip, gummy eyeball with ice cream cone on top
    Gummy Eyeball Cake
    Cook Time1 Hours 30 Minutes
  • close up of a slice of black velvet cake
    Black Velvet Cake
    Cook Time50 Minutes
  • monster mash cheesecake brownies cut into squares on a white background. Sprinkles, pumpkins and plates around the brownies
    Monster Mash Halloween Brownies
    Cook Time45 Minutes
  • close up of candy apples
    The Best Candy Apple Recipe
    Cook Time50 Minutes
  • pumpkin pie recipe
    Pumpkin Pie Recipe
    Cook Time2 Hours
  • close up of pumpkin cheesecake bars on a plate
    Pumpkin Cheesecake Bars
    Cook Time4 Hours

Popular Recipes

  • Close up of smooth and shiny chocolate ganache with a silver spoon in a glass bowl.
    Chocolate Ganache Recipe
    Cook Time20 Minutes
  • Piping easy buttercream rosettes onto a cake using a 1M star piping tip
    Easy Buttercream Frosting
    Cook Time25 Minutes
  • close up slice of marble cake
    Moist and Fluffy Marble Cake Recipe
    Cook Time50 Minutes
  • Slice of red velvet cake with cream cheese frosting on a white plate.
    Red Velvet Cake Recipe
    Cook Time1 Hours 40 Minutes

Footer

↑ back to top

About

  • Privacy Policy
  • Terms of Service

Newsletter

  • Sign Up! for emails and updates

Contact

  • Contact
  • About Us

Copyright © 2026 Sugar Geek Show, Inc. All Rights Reserved.

5228 shares

Rate This Recipe

Your vote:




A rating is required
A name is required
An email is required

Recipe Ratings without Comment

Something went wrong. Please try again.