This hot chocolate layer cake bakes up moist and tender, with a deep cocoa flavor and a marshmallow-like frosting that echoes the drink. The method uses hot coffee and buttermilk to bloom the cocoa and keep the crumb soft, so the finished cake tastes rich but not heavy.
Ingredients for the Cake
- 2 cups (240 g) all-purpose flour
- 1 ¾ cups (350 g) granulated sugar
- ¾ cup (75 g) unsweetened cocoa powder (natural or Dutch-process)
- 1 ½ teaspoons baking powder
- 1 ½ teaspoons baking soda
- 1 teaspoon salt
- 2 large eggs, at room temperature
- 1 cup (240 ml) buttermilk, at room temperature
- ½ cup (120 ml) vegetable oil
- 2 teaspoons vanilla extract
- 1 cup (240 ml) hot brewed coffee (or hot water)
Ingredients for the Frosting
- 1 cup (226 g) unsalted butter, softened
- 3 cups (360 g) powdered sugar, sifted
- ¾ cup (75 g) unsweetened cocoa powder, sifted
- ½ cup (120 ml) heavy cream, plus more as needed
- 2 teaspoons vanilla extract
- ¼ teaspoon salt
- 1 cup (about 50 g) mini marshmallows (for topping, optional)
Bake the Cake Layers
- Preheat the oven to 350°F (175°C). Grease and flour two 9-inch round cake pans, or line the bottoms with parchment paper.
- In a large bowl, whisk together the flour, sugar, cocoa powder, baking powder, baking soda, and salt until no lumps remain.
- Add the eggs, buttermilk, oil, and vanilla. Beat on medium speed for 2 minutes, scraping the sides as needed. The batter will be thick.
- With the mixer on low, slowly pour in the hot coffee. Mix until just combined—the batter will be thin. That is correct.
- Divide the batter evenly between the prepared pans. Bake for 28–35 minutes, until a toothpick inserted in the center comes out with only a few moist crumbs (no wet batter). The cakes should feel springy when pressed lightly.
- Cool in the pans on a wire rack for 15 minutes, then turn out onto the rack and cool completely. The layers must be fully cool before frosting, or the frosting will melt.
Make the Frosting and Assemble
- In a large bowl, beat the softened butter on medium speed until smooth and creamy, about 1 minute.
- Add the sifted powdered sugar and cocoa powder, then add the heavy cream, vanilla, and salt. Beat on low until combined, then increase to medium-high and beat for 2–3 minutes until light and fluffy. If the frosting is too thick, add more cream 1 tablespoon at a time; if too thin, add more powdered sugar.
- Place one cake layer on a serving plate. Spread about 1 cup of frosting over the top. Place the second layer on top.
- Frost the top and sides with the remaining frosting. If you like, press mini marshmallows onto the top and sides for a s'mores-like finish.
- Slice and serve. For clean cuts, use a long serrated knife and wipe it between slices.
Substitutions and Swaps
- Buttermilk: Mix 1 cup whole milk with 1 tablespoon lemon juice or white vinegar; let sit 5 minutes before using.
- Hot coffee: Use hot water if you prefer no coffee flavor; the coffee only deepens the chocolate, not adds a coffee taste.
- Oil: Melted coconut oil or canola oil work in equal measure.
- Eggs: For a flax egg (1 tablespoon ground flax + 3 tablespoons water per egg), the cake will be slightly denser.
- Heavy cream: Use whole milk or half-and-half, but add it gradually—the frosting may need less liquid.
Storing and Keeping
Store the frosted cake in an airtight container at room temperature for up to 2 days, or in the refrigerator for up to 5 days. If refrigerated, let it sit at room temperature for 30 minutes before serving to soften the frosting. The unfrosted cake layers can be wrapped tightly in plastic wrap and frozen for up to 3 months; thaw overnight in the refrigerator before frosting. Frosted cake can also be frozen (unwrapped first, then wrapped after it firms) for up to 2 months—thaw in the fridge overnight.
Equipment and Serving
Two 9-inch round pans are ideal; if using 8-inch pans, increase baking time by 5–8 minutes and check doneness. A stand mixer or hand mixer makes the frosting easier, but a sturdy whisk and some elbow grease work too. Serve with a scoop of vanilla ice cream or a dusting of cocoa powder. This cake pairs well with cold milk or a hot cup of coffee—the same drink that inspired it.