This chocolate cake uses mayonnaise to create a moist, dense crumb and is topped with a salty-sweet peanut butter frosting. It is a reliable dessert for potlucks or weekend family gatherings due to its stability and rich flavor profile.
Ingredients
- 2 cups (250 g) all-purpose flour, heat-treated to 160°F (71°C)
- 2 cups (400 g) granulated sugar
- 3/4 cup (75 g) unsweetened cocoa powder
- 2 tsp (10 g) baking soda
- 1 tsp (5 g) baking powder
- 1 tsp (5 g) salt
- 1 cup (240 ml) water
- 1/2 cup (120 ml) vegetable oil
- 1 cup (240 g) full-fat mayonnaise
- 2 large (100 g) pasteurised eggs
- 1 tsp (5 ml) vanilla extract
- 1 cup (255 g) unsalted butter, softened to 65°F (18°C)
- 1 cup (250 g) creamy peanut butter
- 3-4 cups (360-480 g) powdered sugar, sifted
- 3-4 tbsp (45-60 ml) heavy cream or whole milk
- 1 tsp (5 ml) vanilla extract
Instructions
- Preheat the oven to 350°F (175°C). Grease and flour two 9-inch (23 cm) round cake pans or line the bottoms with parchment paper.
- Heat-treat the flour: Spread the flour on a baking sheet and bake at 350°F (175°C) for 5-7 minutes or microwave in 30-second intervals, stirring frequently, until a thermometer reads 160°F (71°C). Let the flour cool completely before using. This step is necessary because raw flour can contain bacteria.
- In a large mixing bowl, whisk together the heat-treated flour, granulated sugar, cocoa powder, baking soda, baking powder, and salt until no lumps remain.
- Add the water, vegetable oil, mayonnaise, pasteurised eggs, and vanilla extract to the dry ingredients. Mix on medium speed with an electric mixer for 2 minutes until the batter is smooth. Use pasteurised eggs to reduce the risk of salmonella, as this is a dense cake.
- Divide the batter evenly between the two prepared 9-inch (23 cm) pans.
- Bake at 350°F (175°C) for 30-35 minutes. The cakes are done when a toothpick inserted into the center comes out clean or with just a few moist crumbs. Ensure the internal temperature reaches 160°F (71°C) to satisfy USDA FSIS safe minimums for egg dishes.
- Remove pans from the oven and cool in the pans for 10 minutes. Invert the cakes onto wire racks to cool completely for about 1 hour before frosting.
- Prepare the icing by beating the softened butter and peanut butter together in a bowl until creamy, about 3 minutes.
- Gradually add powdered sugar one cup at a time, beating on low speed until incorporated, then increasing to medium for 1 minute.
- Stir in the vanilla extract and add heavy cream one tablespoon at a time until the icing reaches a spreadable consistency.
- Place one cake layer on a plate. Spread a thick layer of peanut butter icing over the top. Top with the second cake layer.
- Frost the top and sides of the cake with the remaining icing.
- Refrigerate the cake for at least 1 hour to allow the icing to set before slicing.
How to Tell the Chocolate Mayonnaise Cake is Done
Visual cues are the first indicator; the edges of the cake will begin to pull away slightly from the sides of the pan. The center should no longer jiggle when the pan is gently shaken. The most accurate method is using a digital food thermometer to ensure the center has reached 160°F (71°C), which is the USDA FSIS safe minimum for cakes containing eggs.
If using the toothpick method, insert it into the center of the cake. If wet batter clings to the toothpick, bake for another 3-5 minutes. If the toothpick comes out with a few moist crumbs, the cake is done. Overbaking will lead to a dry crumb, while underbaking will cause the center to sink after it is removed from the oven.
How Long Does the Cake Keep?
This cake must be refrigerated because of the mayonnaise in the batter and the dairy in the icing. Transfer the cake to an airtight container or cover it tightly with plastic wrap. Refrigerate within 2 hours of baking and frosting to prevent bacterial growth.
The cake typically keeps for 3-4 days in the refrigerator. To serve, let a slice sit at room temperature for 15-20 minutes to allow the butter-based icing to soften. For longer storage, the cake can be frozen. Wrap individual slices in plastic wrap and then place them in a freezer-safe bag. Frozen slices keep for about 2-3 months. Thaw overnight in the refrigerator before serving.
When reheating a slice in the microwave, use a low power setting for 10-15 seconds. If reheating leftovers that were stored in the fridge, ensure they reach an internal temperature of 165°F (74°C) if they have been stored for several days, though this is rarely necessary for a frosted cake.
What to Change for Different Flavors
For a chocolate-orange variation, replace the 1 cup (240 ml) of water with 1 cup (240 ml) of fresh orange juice and add 1 tablespoon (6 g) of orange zest to the dry ingredients. This adds a citrus note that cuts through the richness of the peanut butter.
To create a chocolate-coffee version, dissolve 2 tablespoons (12 g) of instant espresso powder into the 1 cup (240 ml) of water before adding it to the batter. The coffee enhances the cocoa flavor without making the cake taste like coffee.
If peanut butter is unavailable, you can substitute it with 1 cup (250 g) of almond butter or cashew butter. Almond butter results in a slightly milder, nuttier taste, while cashew butter creates a creamier, smoother icing texture. Maintain all other icing proportions.
Serving and Pairing Ideas
Because the peanut butter icing is very rich and sweet, this cake pairs well with acidic or bitter accompaniments. Serve a slice with a side of fresh raspberries or sliced strawberries to provide a tart contrast. A dollop of unsweetened whipped cream can also lighten the overall palate of the dish.
For beverage pairings, a cup of black coffee or a strong Earl Grey tea balances the sugar content. For a cold drink, a glass of cold skim milk or an unsweetened almond milk complements the peanut butter and chocolate combination. If serving at a party, cut the cake into small 2-inch (5 cm) squares rather than large wedges, as the density of the mayonnaise-based crumb and the peanut butter frosting makes small portions more manageable.
Chocolate Mayonnaise Cake Safety for Vulnerable Groups
Related
- Vegan Peanut Butter Cake Recipe
- Classic No Bake Chocolate Peanut Butter Cookies
- Buttercream Icing With Salted Butter
Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.
Spotted an error? Tell us and we will correct it (corrections policy).