Devil's Food Chocolate Cake with Black Walnut Recipe
In this article
Time 35 min · Serves 12 · The key step bloom cocoa in hot coffee, then fold in chopped black walnuts at the end. This deep, moist chocolate cake has a rich, slightly bitter cocoa flavor balanced by the earthy crunch of black walnuts. It's a classic Southern-style dessert that works for birthdays, holidays or Sunday dinner.
Serves 12 · Prep 35 min · Cook 35 min · Total 1 hr 10 min
Origin
Devil's food cake emerged in the early 20th century as a richer, darker alternative to standard chocolate cakes. It relies on cocoa powder, not melted chocolate, and uses baking soda to lift the batter while reacting with acidic ingredients like buttermilk or coffee. Black walnuts, native to eastern North America, add a bold, tannic crunch that stands up to the intense chocolate. This version combines both traditions into a single-layer cake with a fudgy crumb and pronounced nuttiness.
Ingredients
- 2 cups (250 g) all-purpose flour
- 2 cups (400 g) granulated sugar
- 3/4 cup (65 g) unsweetened cocoa powder (natural, not Dutch-processed)
- 2 tsp (10 g) baking soda
- 1 tsp (5 g) salt
- 2 large eggs, at room temperature
- 1 cup (240 ml) buttermilk, well-shaken
- 1/2 cup (120 ml) neutral oil (canola or vegetable)
- 2 tsp (10 ml) vanilla extract
- 1 cup (240 ml) hot brewed coffee (not instant)
- 1 cup (100 g) coarsely chopped black walnuts
Frosting
- 1/2 cup (115 g) unsalted butter, softened
- 3 cups (360 g) confectioners’ sugar
- 1/4 cup (25 g) unsweetened cocoa powder
- 1/4 cup (60 ml) heavy cream
- 1 tsp (5 ml) vanilla extract
- Pinch of salt
- 1/2 cup (50 g) finely chopped black walnuts (optional, for topping)
Mixing
Preheat oven to 350°F (175°C). Grease and flour a 9x13-inch (23x33 cm) metal or glass baking pan. In a large bowl, sift together flour, sugar, cocoa powder, baking soda and salt. In a separate bowl, whisk eggs, buttermilk, oil and vanilla until smooth. Pour wet ingredients into dry and mix on low speed or by hand just until combined. The batter will be thick.
Bloom the cocoa by pouring hot coffee over the batter. Stir gently until the cocoa dissolves and the batter smooths out. This step deepens the chocolate flavor and thins the batter to the right consistency. Let the batter rest 5 minutes. Fold in the coarsely chopped black walnuts just before pouring into the pan. Do not overmix after adding the coffee or walnuts, or the cake may become dense.
Baking
- Pour batter into the prepared 9x13-inch pan, spreading evenly with a spatula.
- Bake at 350°F (175°C) for 30–35 minutes.
- Check doneness at 30 minutes: the cake should spring back lightly when touched in the center, and a toothpick inserted into the middle should come out with moist crumbs, not wet batter.
- Do not overbake; the cake continues to set as it cools. Overbaking leads to dryness, especially with the absorbent black walnuts.
- Cool in the pan on a wire rack for 20 minutes before frosting.
The internal temperature of the cake is not required to reach a USDA minimum because it contains no meat, poultry, fish or egg dishes that require heat treatment beyond basic cooking. However, eggs are fully cooked when the cake passes the toothpick test. This cake relies on structure from flour and eggs, so underbaking causes collapse, while overbaking draws out moisture.
Frosting and assembly
Beat softened butter in a medium bowl until smooth. Gradually add confectioners’ sugar, cocoa powder and salt, mixing on low speed to avoid clouds of sugar. Add heavy cream and vanilla, then beat on medium-high until fluffy, about 2 minutes. If frosting is too thick, add cream 1 tsp at a time; if too thin, add more confectioners’ sugar.
After the cake has cooled in the pan for 20 minutes, spread frosting evenly over the warm cake. Warming the cake slightly helps the frosting melt into a smooth layer. Sprinkle finely chopped black walnuts on top if desired. Let the frosted cake cool completely before slicing, about 1 hour.
Storage
Store the cake covered at room temperature for up to 2 days or in the refrigerator for up to 5 days. Refrigeration firms the frosting and extends shelf life, but may dry the crumb slightly. For longer storage, freeze unfrosted cake layers wrapped in plastic and foil for up to 3 months. Thaw overnight in the refrigerator before frosting.
Black walnuts are more perishable than English walnuts due to higher oil content. Rancidity shows as a bitter, paint-like smell. Use fresh nuts, or toast them at 350°F (175°C) for 5–7 minutes to refresh flavor. Stale nuts dull the cake’s richness and leave a greasy aftertaste.
Dry cake
Dry cake results from overbaking or too much flour. Measure flour by spooning into the cup and leveling—do not scoop directly from the bag. Overmixing after adding the hot coffee can also toughen the crumb. The coffee must be hot enough to bloom the cocoa; weak or lukewarm coffee leads to flat chocolate flavor.
Uneven rise
Uneven rise happens when the oven temperature is inconsistent or the pan is warped. Use an oven thermometer to verify 350°F (175°C). Rotate the pan halfway through baking if your oven has hot spots. Do not open the oven door during the first 25 minutes, as sudden temperature drops can cause collapse.
Substitutions
Replace buttermilk with 1 cup (240 ml) milk plus 1 tbsp (15 ml) vinegar, left to sit 5 minutes. Use regular walnuts if black walnuts are unavailable—they are milder and less tannic. For a dairy-free version, use plant-based butter and milk in the frosting. Coffee can be replaced with hot water, but the chocolate depth will be less pronounced.
Serving
Cut slices with a sharp knife dipped in hot water for clean edges. This cake pairs well with vanilla ice cream or cold milk. The bitterness of the cocoa and nuts balances sweetness, making it suitable for adult palates. Serve within 5 days for best flavor and texture.