
This decadent chocolate mud cake has been my secret weapon for potlucks and family gatherings for years. Its fudgy interior and marshmallow-studded frosting create the perfect balance of textures that chocolate lovers simply cannot resist.
I first made this mud cake for my daughter's birthday party when time was running short. What started as a last minute dessert has become our most requested family treat, appearing at nearly every celebration since.
Ingredients
- Melted butter: Creates the moist, rich base of the cake. Using half margarine gives a slightly softer texture
- Sugar: Provides sweetness and helps create that characteristic fudgy texture
- Unsweetened cocoa: Gives deep chocolate flavor without added sweetness. Dutch process works best
- Large eggs: Provide structure and richness. Room temperature eggs incorporate better
- Vanilla extract: Enhances the chocolate flavor. Use pure extract not imitation for best results
- Salt: Balances sweetness and intensifies flavors. Even a small amount makes a difference
- All purpose flour: Creates structure while keeping the texture tender. Do not overmix
- Chopped pecans: Add wonderful texture contrast and nutty flavor. Toast them first for extra flavor
- Miniature marshmallows: Create that distinctive gooey layer that makes this cake special
- Powdered sugar: Forms the base of the smooth frosting. Sift to prevent lumps
- Milk: Thins the frosting to spreading consistency. Whole milk works best
- Softened butter: Gives the frosting richness and shine. Must be room temperature
- Additional cocoa: For the frosting to create that double chocolate experience
Step-by-Step Instructions
- Prepare the Pan:
- Preheat your oven to 350°F and thoroughly grease and flour a 15 x 10 inch jellyroll pan. Be meticulous about covering all corners and sides to prevent sticking later. The shallow pan is crucial for the correct texture.
- Mix the Batter:
- In a large bowl, whisk the melted butter, sugar, and cocoa together until smooth and glossy. This mixture should be completely uniform before proceeding. Add the lightly beaten eggs, vanilla extract, and salt, whisking until fully incorporated. The batter will be shiny and somewhat thick.
- Add Dry Ingredients:
- Gently stir in the flour using a rubber spatula or wooden spoon, mixing just until no dry streaks remain. Overmixing at this stage will develop gluten and make your cake tough. Fold in the toasted chopped pecans, distributing them evenly throughout the batter.
- Bake the Base:
- Pour the batter into your prepared pan, using a spatula to spread it evenly into all corners. The layer will be relatively thin. Bake for 20 to 25 minutes, checking at the 20 minute mark by inserting a wooden pick in the center. It should come out with a few moist crumbs but not wet batter.
- Add Marshmallow Layer:
- While the cake is still hot, evenly sprinkle the miniature marshmallows across the entire surface. Work quickly to get an even distribution. Return the pan to the oven for exactly 5 minutes. The marshmallows will puff up and begin to melt but should maintain some of their shape.
- Prepare the Frosting:
- While the cake bakes with marshmallows, beat together the sifted powdered sugar, milk, softened butter, and cocoa using an electric mixer. Start on low speed to prevent a sugar cloud, then increase to medium until smooth and pourable. The consistency should be like thick chocolate syrup.
- Finish and Cool:
- Remove the cake from the oven and immediately drizzle the warm chocolate frosting over the marshmallow layer. The heat will help the frosting spread. Let the cake cool completely at room temperature before cutting into squares, which takes about two hours for the layers to set properly.

The toasted pecans are truly what elevate this cake from good to exceptional. I learned this trick from my grandmother who insisted that taking the extra five minutes to toast nuts before adding them to any recipe intensifies their flavor tenfold. The aroma that fills the kitchen when they hit the warm cake brings back memories of Sunday baking sessions where she taught me that patience often yields the most delicious results.
Storage Tips
This mud cake stays fresh at room temperature in an airtight container for up to 3 days. The texture actually improves after the first day as the flavors meld together and the marshmallow layer softens slightly into the cake. For longer storage, refrigerate for up to a week, though bring to room temperature before serving for the best texture and flavor experience.
Perfect Substitutions
If pecans arent your preference, walnuts make an excellent substitute with their similar buttery flavor and texture. For a nut free version, try using toffee bits or even chocolate chips in place of the nuts. The marshmallows are essential for the authentic mud cake experience, but if you prefer a less sweet option, you can omit them and simply top with the chocolate frosting for a more traditional brownie experience.

Serving Suggestions
While this mud cake is absolute perfection on its own, pairing it with a scoop of vanilla ice cream creates a hot and cold contrast that is simply divine. For an extra special presentation, warm individual servings for 10 seconds in the microwave and dust with a little extra cocoa powder. I often serve this at birthday celebrations with a small candle in each square, creating a memorable dessert experience that feels individually crafted.
Frequently Asked Questions
- → Can I make this mud cake in advance?
Yes, you can make this cake 1-2 days in advance. Store it in an airtight container at room temperature. The marshmallow layer will remain slightly gooey, which is part of its charm.
- → Can I substitute the pecans with another type of nut?
Absolutely! Walnuts would be the closest substitute, but almonds or hazelnuts would also work well. You can also omit the nuts entirely if you prefer or have allergies.
- → Why do my marshmallows need to be baked on top of the cake?
Baking the marshmallows for 5 minutes allows them to melt slightly and bond with the cake beneath. This creates the signature gooey middle layer that makes this mud cake special.
- → What's the best way to cut this cake neatly?
Allow the cake to cool completely before cutting. Use a sharp knife dipped in hot water and wiped clean between cuts. For extra neat squares, refrigerate for 30 minutes before cutting.
- → Can I freeze this mud cake?
Yes, this cake freezes well. Cut into squares, place in an airtight container with parchment between layers, and freeze for up to 3 months. Thaw at room temperature before serving.
- → How do I know when the cake layer is properly baked?
Insert a wooden toothpick into the center of the cake. It should come out clean or with a few moist crumbs, but no wet batter. Don't overbake or the cake will become dry.