Chocolate Mayonnaise Cake
This moist, scrumptious Chocolate Mayonnaise Cake was popular when I was growing up. It’s tender and out of this world! It’s seriously one amazing Homemade Chocolate Cake!
It could be the Best Chocolate Cake Recipe you’ll ever taste, making it perfect for all the chocoholics in your life. The unusual ingredient can be our little secret!

Reader Testimonial:
Hands down the most delicious chocolate cake! I made it for someone’s birthday, everyone there agreed it was the best.
Why You Must Make
- The magic “mayo” helps add the moisture that many chocolate cakes are lacking.
- Even though I thought overbaked it by a couple of minutes, it was moist and delicious!
- The frosting is just as yummy as the cake!
This cake was declared a hit by the whole family, and the neighborhood chocoholic relayed that it was the Best Chocolate Cake Recipe he had ever had (via his wife, who left me a glowing review via voice mail). Not a single soul thought it was dry, despite the fact that it could have come out of the oven at the 28-minute mark.

Ingredient Notes:
- Kitchen Staples – All-Purpose Flour, Granulated Sugar, Butter (salted is OK)
- Cocoa powder (affiliate link)- I use the Ghirardelli brand.
- Baking Soda and Baking Powder (affiliate link) – PRO-Tip: Check expiration dates as baking powder often expires in your pantry before you can put a dent in it!
- Real Vanilla Extract (affiliate link)- Never use imitation vanilla. The taste of real vanilla is so much better.
- Full Fat Hellmann’s Mayonnaise (affiliate link) or Best Foods, do not use a salad dressing, like Miracle Whip
- Eggs – I always use large eggs unless otherwise specified. Have them at room temperature for easier incorporation. You can put them in a bowl of very warm, not boiling water, to help take the chill off.
- Brewed Coffee – Coffee helps accentuate the chocolate flavor without adding a coffee taste, so don’t worry about adding this ingredient if you don’t like coffee. You will not taste it.
- Semisweet Chocolate (affiliate link) – I prefer Ghirardelli bars over chocolate chips for better qua
- Powdered Sugar (affiliate link) – Sift whenever using powdered sugar for frosting so there won’t be lumps.
How to Make












Expert Tips:
- Read through the recipe first to see if you have all the ingredients needed before starting.
- PRO-Tip: Get your eggs out of the refrigerator an hour or two before you plan to start mixing, to take the chill off. Room-temperature eggs incorporate into the batter more easily than cold ones.
- PRO-Tip: Measure properly. Using Dry Measuring Cups (affiliate link) for flour and sugar, and Liquid Measuring Cups (affiliate link) for liquids. They’re not interchangeable, so it’s worth mentioning.
- Scoop up the flour from your bin, bag, or container with your measuring cup, then use an Offset Spatula (affiliate link) to cleanly sweep the excess from the top. The scoop and swipe method is used universally by bakers for consistency.
- Though measuring by weight is definitely the most accurate method, many home cooks do not own a Kitchen Scale (affiliate link).
- The mayonnaise can be measured in a dry measuring cup.
- If you want a level cake tops, use Cake Strips for Baking (affiliate link), soaked in water, around the perimeter of each cake pan. PRO-Tip: You can also make your own using an old terry cloth towel and safety pins.

Tips for Cutting the Perfect Slice of Cake
I’m frequently asked how to cut a perfect slice of cake. Today, I’ll reveal all my secrets for cutting this Chocolate Cake Recipe!
- I popped this layer cake into the refrigerator for a few hours to help the frosting firm up. When I was ready to cut a wedge, I grabbed a wide serrated knife and ran it under very hot water.
- PRO-Tip: Cut chilled and serve at room temperature.
- Next, I wiped the knife dry with a clean cloth or paper towel and cut the cake with a sawing motion. I reheated and dried the knife for the second cut, making sure both cuts met at the center.
- I used a Metal Spatula AKA a Cake Server (affiliate links) to remove the first slice. Voila! Note that the cake will taste better served at room temperature, but slices more cleanly when cold.
Frequently Asked Questions
You must remember that mayonnaise is made of oil, vinegar, and egg. Each of these components offers its own benefits to the texture of a cake. No wonder this chocolate mayonnaise cake recipe is so incredible!!
The oil makes the cake moist and tender. Check. We want that! The vinegar helps accentuate the chocolate flavor. Check. Who wouldn’t want that in a chocolate cake??? And, finally, the egg helps the batter retain moisture. Yes, no dry cakes are wanted!
PRO-Tip: Plus, all of the above (moisture, tenderness, and intensified chocolate flavor!) can be obtained with just a measuring cup full of mayo. Please use a good name brand, like Hellmann’s, for the best results when making this homemade chocolate cake! Do not use reduced-fat mayonnaise as the results will not be the same.
Well, if you’ve read this far, you know the answer is yes. Though I have never tried it, I’ve read that you can substitute 3 tablespoons of mayonnaise for every egg in a cake recipe. A great tip if you’re out of eggs and desperately need to bake a cake!
Though real mayonnaise contains eggs, the eggs and mayonnaise are cooked in this cake. Therefore, there is no need to refrigerate this cake. If you live in a hot climate or make this cake in the middle of the summer, the frosting will do better if it is kept cool. Just make sure to cover well as there’s less moisture/humidity in your fridge, which will dry out your cake faster, then bring the cake to room temperature before serving.
Yes, this cake freezes well. Cool and wrap the unfrosted layers in plastic wrap, then foil, and freeze for up to 3 months. If you’d like to freeze the frosted cake, first freeze the cake uncovered to allow the frosting to firm up. Then wrap well in plastic wrap. Remove the plastic while the cake is frozen and let the cake defrost overnight in the refrigerator.
This cake recipe came about during the Great Depression. With the shortage of many items, using mayonnaise instead of eggs and oil for cake became popular. In fact, the recipe started appearing on mayonnaise jars!
No. You’d never guess there was mayonnaise in this cake recipe unless someone tells you!
You May Also Like:
- Salted Caramel Chocolate Cheesecake Cake from Aimee at Shugary Sweets
- Flourless Double Chocolate Cake
- La Bete Noire
- Chocolate Bundt Cake Recipe
- Flourless Chocolate Cake with Marshmallow Frosting
- Frozen Chocolate Mousse Cake
- More Chocolate Desserts
- More Best Cake Recipes
Chocolate Mayonnaise Cake Recipe
A retro chocolate layer cake that has stood the test of time!
Ingredients
Cake:
- 2 cups flour
- ⅔ cup unsweetened cocoa powder
- 1 ¼ teaspoons baking soda
- ¼ teaspoon baking powder
- 3 eggs
- 1 ⅔ cups sugar
- 2 teaspoons vanilla
- 1 cup mayonnaise (I recommend using Hellmann's or Best Foods and not Miracle Whip)
- 1 ⅓ cups cold coffee
Frosting:
- 10 ounces semisweet chocolate, chopped
- 1 ½ cups (3 sticks) butter, room temperature
- 3 cups powdered sugar
- 1 tablespoon vanilla
Instructions
- Preheat oven to 350°. Grease two 9-inch cake pans, line them with rounds of parchment, and grease the parchment; set aside.
- In a medium bowl, whisk together the flour, cocoa, baking soda, and baking powder; set aside.
- In a large bowl or mixer, beat eggs, sugar, and vanilla on high for 3 minutes or until light and fluffy. Beat in mayonnaise at low speed until blended.
- Alternately beat in flour mixture with coffee, beginning and ending with flour mixture. Divide evenly between prepared pans.
- Bake for 26-30 minutes or until a toothpick inserted into the center of the cakes comes out clean.
- Let cakes cool for about 20 minutes, then remove to cooling racks (remove parchment if it's stuck to the cakes) to cool completely.
- Place chopped chocolate into a microwave-safe bowl. Microwave, stopping to stir frequently until the chocolate is melted and smooth.
- Let the chocolate cool until lukewarm, stirring occasionally.
- Beat butter in a large bowl until smooth and creamy (I used my stand mixer with the paddle attachment). Sift powdered sugar over the butter and beat until well blended, about 2 minutes. Beat in vanilla.
- Add melted chocolate and beat until well blended, scraping down the sides of the bowl as needed.
- Frost as desired.
Notes
Make sure your baking powder hasn't expired or your cakes won't rise properly. Baking soda has a much longer shelf life.
Recommended Products
As an Amazon Associate and member of other affiliate programs, I earn from qualifying purchases.
Nutrition Information:
Yield:
12Serving Size:
1Amount Per Serving: Calories: 571Total Fat: 23gSaturated Fat: 7gTrans Fat: 0gUnsaturated Fat: 15gCholesterol: 54mgSodium: 569mgCarbohydrates: 89gFiber: 3gSugar: 68gProtein: 6g

81 Comments on “Chocolate Mayonnaise Cake”
So perfectly moist!
Reminds me of my mom, hers wasnt anywhere near as pretty would she make this mayo cake and is on the top 2 of my all time favorites this is picture perfect!
reminds me of my mom,, she made many cakes growing up like this one. Yours really put a smile on my face with awesome memories.. Happy Sunday!
We have never-ever tried adding mayo in any dessert. But thinking this over, there’s no reason not to. Of course we trust your taste and your baking expertise and we’ll give it a try!
Thank you for the yummy chocolate idea Liz! xoxo
Seriously chocolate. You don’t have to be the neighborhood chocoholic to enjoy this cake! P.s. Not surprised about the mayo, apparently mayo also makes super-duper Japanese pancakes extra yummy =)
Your method of slicing cakes and bars make for the most beautiful presentations! I’ve come across several mayo cake recipes but this is the one I’d most like to try.
This is one of those heirloom recipes that has stood the test of time!
What a gorgeous cake!!! I also liked your instructions on how to get a good looking slice of cake.
I adore chocolate cake and I remember this one! What a winner. And so is that slicing technique!
Awesome sharing, dear! Happy weekend! xoxo
So much chocolaty temptation, thanks for the shout out ~ pinning and sharing!
This is absolutely gorgeous!!
This cake is a chocolate lover’s dream and your slice is truly perfect!
You and I both know a good chocolate cake Liz, and this one looks EXCELLENT!!! I’d love to share a slice with you. (Translation: we would both get our own slice.) Thanks for the great cutting tips, I’m always wondering how to get the perfect slices I see here. It was kind of you to share this cake with your neighbors too!!!! I might be a little selfish with this cake. XO
This cake looks amazing!! I’m a big fan of mayo in cakes, and that slice looks divine!
That is a perfect slice Liz, I must try your tips next time. I alway make a mess of slicing cakes. I must try a mayo cake, it definetly intrigues me.
Mayo!?!? Mind blown! Can’t wait to try!
OMG it is awesome.. What a perfection!! Love it!!
I saw that slice on instagram, looks phenomeal slice and photo. Oh I made a cake with mayo years ago, was very good so sure this is wonderful. Great tips to cut a slice of cake!
This cake!! Want now!!