The Feast

Home cooking recipes for everyday dinners and easy entertaining

Hot Cocoa Layer Cake Recipe with Marshmallow Frosting

· 6 min read · Baking and Desserts

This hot cocoa layer cake tastes like a warm mug of cocoa in dessert form—rich, chocolatey, and topped with a fluffy marshmallow frosting that echoes the marshmallows you'd float on top. The cake uses cocoa powder and melted chocolate for deep flavor, plus buttermilk for tenderness, and the frosting is a stable Swiss meringue that pipes beautifully. It's perfect for birthdays, holidays, or any cold-weather gathering.

Ingredients

  • For the cake:
  • 2 cups (240 g) all-purpose flour
  • 1 cup (85 g) unsweetened cocoa powder (natural or Dutch-processed)
  • 1 ½ teaspoons baking powder
  • 1 teaspoon baking soda
  • ½ teaspoon salt
  • 1 cup (2 sticks / 226 g) unsalted butter, softened
  • 1 ½ cups (300 g) granulated sugar
  • 3 large eggs, at room temperature
  • 2 teaspoons vanilla extract
  • 1 cup (240 ml) buttermilk, at room temperature
  • ½ cup (120 ml) hot water
  • 4 oz (113 g) semisweet or bittersweet chocolate, melted and cooled slightly
  • For the marshmallow frosting:
  • 4 large egg whites
  • 1 cup (200 g) granulated sugar
  • ¼ teaspoon cream of tartar
  • 1 teaspoon vanilla extract
  • 1 cup (240 ml) heavy cream, whipped to stiff peaks (optional, for a lighter texture)
  • For garnish (optional):
  • Mini marshmallows, chocolate shavings, or a dusting of cocoa powder

Instructions

  1. Preheat and prepare pans: Preheat your oven to 350°F (175°C). Grease and flour two 9-inch round cake pans, or line the bottoms with parchment paper.
  2. Mix dry ingredients: In a medium bowl, whisk together the flour, cocoa powder, baking powder, baking soda, and salt. Set aside.
  3. Cream butter and sugar: In a large bowl, beat the softened butter and sugar with an electric mixer on medium speed until light and fluffy, about 3 minutes. Scrape down the sides as needed.
  4. Add eggs and vanilla: Add the eggs one at a time, beating well after each addition. Beat in the vanilla extract.
  5. Add melted chocolate: Pour in the melted (but not hot) chocolate and mix until fully combined.
  6. Alternate dry and wet: With the mixer on low, add the dry ingredients in three additions, alternating with the buttermilk in two additions, starting and ending with the dry. Mix just until no streaks of flour remain—do not overmix.
  7. Add hot water: Carefully pour in the hot water and fold it in with a spatula until the batter is smooth and glossy. The batter will be thin.
  8. Bake: Divide the batter evenly between the prepared pans. Bake for 25–30 minutes, or until a toothpick inserted into the center comes out clean (a few moist crumbs are fine). The cakes should pull away from the sides slightly.
  9. Cool: Let the cakes cool in the pans on a wire rack for 15 minutes, then turn them out onto the rack to cool completely. Wrap in plastic wrap and refrigerate for at least 1 hour before frosting—this makes them easier to handle.
  10. Make the frosting: While the cakes cool, prepare the Swiss meringue. Place the egg whites, sugar, and cream of tartar in a heatproof bowl set over a pot of simmering water (make sure the bowl doesn't touch the water). Whisk constantly until the sugar dissolves and the mixture reaches 160°F (71°C) on an instant-read thermometer.
  11. Whip the meringue: Remove the bowl from the heat and beat with an electric mixer on high speed until stiff, glossy peaks form and the mixture is completely cool, about 8–10 minutes. Beat in the vanilla.
  12. Optional lighten: If you want a lighter frosting, fold in the whipped cream gently. Otherwise, use the meringue as is.
  13. Assemble the cake: Place one cake layer on a serving plate. Spread a generous layer of frosting on top. Place the second layer on top and frost the top and sides. Use a spatula to create swirls or a smooth finish.
  14. Garnish and serve: Top with mini marshmallows, chocolate shavings, or a dusting of cocoa powder. Slice and serve.

Tips

  • Use room-temperature ingredients: Cold eggs and buttermilk can cause the batter to curdle. Let them sit out for 30 minutes before starting.
  • Don't skip the hot water: The hot water helps bloom the cocoa powder, intensifying the chocolate flavor and making the crumb moist. It also thins the batter, which is normal.
  • Chill the cakes before frosting: A cold cake is less likely to crumble and makes frosting much easier. You can even freeze the layers for up to 2 months.
  • If you don't have buttermilk: Add 1 tablespoon of lemon juice or white vinegar to 1 cup of milk, let sit for 5 minutes, and use that.

Serving Suggestions

Serve this cake at room temperature with a glass of cold milk or a warm mug of coffee. For an extra indulgent touch, drizzle each slice with a little warm chocolate sauce or sprinkle with crushed candy canes (if you're not avoiding peppermint). It also pairs nicely with a scoop of vanilla ice cream.

Variations

  • Peppermint hot cocoa: Add ½ teaspoon peppermint extract to the cake batter and crush candy canes over the frosting.
  • Mocha twist: Replace the hot water with hot brewed coffee for a deeper, mocha-like flavor.
  • Spiced cocoa: Add 1 teaspoon ground cinnamon and a pinch of cayenne to the dry ingredients for a Mexican hot chocolate vibe.
  • Different frostings: If you prefer a classic buttercream, use a chocolate buttercream or a simple vanilla buttercream instead of the marshmallow frosting.

Storage and Reheating

Store the frosted cake in an airtight container in the refrigerator for up to 4 days. Bring slices to room temperature before serving for the best flavor and texture. The unfrosted cake layers can be wrapped tightly in plastic wrap and frozen for up to 2 months; thaw overnight in the refrigerator before frosting. The marshmallow frosting does not reheat well—it's meant to be served at room temperature or chilled. If you have leftover frosting, keep it in the fridge for up to 3 days and use it as a topping for cupcakes or cookies.

Frequently Asked Questions

Can I use Dutch-processed cocoa instead of natural cocoa?

Yes, but note that Dutch-processed cocoa is less acidic. The baking soda in this recipe is balanced for natural cocoa, so if you use Dutch-processed, you may need to reduce the baking soda to ½ teaspoon and add an extra ½ teaspoon of baking powder. The texture may be slightly different, but it will still work.

Why did my cake sink in the middle?

This can happen if the oven door is opened too early, or if the batter is overmixed, which develops too much gluten and traps air that then collapses. Also, make sure your baking powder and baking soda are fresh—they lose potency over time.

Can I make this cake gluten-free?

You can substitute a 1:1 gluten-free flour blend that contains xanthan gum. The texture may be slightly more crumbly, but it should work. Be sure to check the blend's instructions for any adjustments in liquid or baking time.

Is the marshmallow frosting safe to eat?

Yes, because the egg whites are heated to 160°F (71°C) in the double boiler, which kills any potential bacteria. If you are concerned about raw eggs for people with compromised immune systems, use pasteurized egg whites from a carton.

Can I make this cake in a 9x13 pan instead of layers?

Absolutely. Pour the batter into a greased 9x13-inch pan and bake at 350°F for 35–40 minutes, or until a toothpick comes out clean. You can frost it right in the pan or serve it unfrosted with a dusting of powdered sugar.

How do I prevent the cake from sticking to the pan?

Grease the pans thoroughly with butter or nonstick spray, then dust with flour, tapping out the excess. Alternatively, line the bottoms with parchment paper circles—this is the most reliable method.

In this article
  1. Ingredients
  2. Instructions
  3. Tips
  4. Serving Suggestions
  5. Variations
  6. Storage and Reheating
  7. Frequently Asked Questions