Rich, chewy layers of chocolate cake meet a sweet coconut-pecan frosting and caramel-like sauce in this classic dessert. It is best served at room temperature on weekend afternoons or as the centerpiece for birthday celebrations. You can make the cake base ahead and frost it just before serving to keep the texture light.
Ingredients
- 2 cups (250 g) all-purpose flour
- 2 cups (400 g) granulated sugar
- 3/4 cup (70 g) unsweetened cocoa powder
- 2 teaspoons baking soda
- 1 teaspoon baking powder
- 1 teaspoon salt
- 2 large eggs, room temperature
- 1 cup (240 ml) whole milk, room temperature
- 1 cup (240 ml) brewed hot coffee
- 1/2 cup (120 ml) vegetable oil
- 2 teaspoons vanilla extract
Frosting Ingredients
- 1 cup (240 ml) evaporated milk
- 1 cup (200 g) granulated sugar
- 3 large egg yolks
- 1/2 cup (115 g) unsalted butter
- 1 1/2 cups (150 g) sweetened shredded coconut
- 1 1/2 cups (150 g) chopped pecans
- 1 teaspoon vanilla extract
Instructions
- Preheat and Prepare: Preheat your oven to 350°F (175°C). Grease an 8×8-inch (20×20 cm) square baking pan with non-stick spray or butter. Dust lightly with cocoa powder to prevent sticking.
- Mix Dry Ingredients: In a large bowl, whisk together the flour, sugar, cocoa powder, baking soda, baking powder, and salt until no lumps remain.
- Add Wet Ingredients: Add the eggs, milk, oil, and vanilla extract to the dry mixture. Beat on medium speed for 2 minutes until smooth and glossy.
- Incorporate Coffee: Stir in the hot coffee by hand. The batter will become thin; this is normal and ensures a moist crumb.
- Bake: Pour the batter into the prepared pan. Bake for 30 to 35 minutes. Test doneness by inserting a wooden skewer into the center; it should come out clean or with a few moist crumbs attached.
- Cool Completely: Let the cake cool in the pan for 10 minutes, then turn it out onto a wire rack. Allow it to cool completely to room temperature before frosting. If you frost a warm cake, the coconut-pecan topping will slide right off.
Making the Frosting
- Combine Base: In a heavy-bottomed saucepan over medium heat, whisk together the evaporated milk, sugar, and egg yolks.
- Thicken: Cook, stirring constantly, until the mixture reaches 160°F (71°C), which is the safe minimum internal temperature for egg dishes per USDA guidelines. The mixture will thicken enough to coat the back of a spoon.
- Add Fat: Remove from heat and stir in the butter until melted. Fold in the vanilla extract.
- Toast Toppings: Stir in the shredded coconut and chopped pecans. Return the pan to low heat and cook for another 3 to 5 minutes, stirring frequently, until the mixture bubbles and thickens further.
- Spread: Pour the hot frosting over the cooled cake immediately. Use a spatula to spread it evenly to the edges.
- Set: Let the cake sit for at least 30 minutes to allow the frosting to set slightly before slicing.
Substitutions and Ratios
If you need to adjust ingredients based on what is in your pantry, use these specific ratios to maintain the structure of the cake.
Flour Swaps
You can substitute cake flour for all-purpose flour to create a softer, more tender crumb. Use a 1:1 ratio by volume, but add 2 tablespoons of cornstarch per cup of flour to mimic the protein content of cake flour.
Liquid Adjustments
The coffee enhances the chocolate flavor without making the cake taste like coffee. If you prefer not to use caffeine, substitute the hot water for the hot coffee. Do not reduce the liquid amount, as the hydration level affects the gluten development.
Dairy Alternatives
For the frosting, full-fat coconut milk can replace evaporated milk. Use the same volume (1 cup), but note that the frosting may be slightly less stable and thinner when warm. The fat content in whole milk provides the necessary emulsion for the sugar syrup.
Serving and Pairing Ideas
This cake is naturally very sweet due to the high sugar content in both the batter and the frosting. To balance the richness, serve slices with unsweetened whipped cream or a dollop of plain Greek yogurt.
A strong black tea or a dark roast coffee pairs well with the bitter notes of the cocoa. For fruit accompaniments, tart berries like raspberries or strawberries cut through the sweetness of the pecan topping.
Storage and Safety
Because the frosting contains eggs and dairy, proper storage is critical to prevent spoilage.
Refrigeration
Store leftovers in an airtight container in the refrigerator for up to 4 days. The cake will firm up significantly when cold. Let slices sit at room temperature for 20 minutes before eating to restore the soft texture.
Freezing
Freeze unfrosted cake layers wrapped tightly in plastic wrap for up to 3 months. Thaw overnight in the refrigerator before frosting. Frosted cakes do not freeze well because the texture of the coconut-pecan frosting changes upon thawing.
Food Safety Warning
Never leave the cake at room temperature for more than 2 hours. The combination of moisture, sugar, and dairy creates an environment where bacteria can grow rapidly. Discard any cake left out longer than this time frame.
Troubleshooting Common Issues
If the cake sinks in the middle, you likely opened the oven door too early during the first 25 minutes of baking. The sudden drop in temperature causes the rising air bubbles to collapse.
If the frosting is runny, you did not cook it long enough to reach the correct temperature. Use a candy thermometer to ensure it hits 160°F (71°C). If it is too thick, add a teaspoon of warm water to loosen it.
German Chocolate Cake for Large Batches
To double this recipe, use two 8×8 pans or one 9×13 inch pan. If using a 9×13 pan, bake at 350°F (175°C) for 35 to 40 minutes. Check for doneness earlier, as larger surface areas bake faster. Ensure your oven rack is centered for even heat distribution.
Related
- Strawberry Shortcake With Custard and German
- Brownies in 8×8 Pan No Chocolate
- Lemon Cake in an 8×8 Pan: Easy Recipe
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).