German chocolate cupcakes are a portable version of the classic layer cake, with a tender chocolate crumb, a coconut-pecan frosting, and a rich chocolate glaze. Baking the batter in a cupcake pan makes them ideal for parties, potlucks, and lunchboxes. The coconut-pecan filling is cooked on the stovetop, so it is safe to eat without baking.
Ingredients
- 1 3/4 cups (220 g) all-purpose flour
- 3/4 cup (65 g) unsweetened cocoa powder
- 1 1/2 tsp baking powder
- 1/2 tsp baking soda
- 1/2 tsp salt
- 1 cup (200 g) granulated sugar
- 1/2 cup (110 g) packed light brown sugar
- 2 large eggs, at room temperature
- 1/2 cup (120 ml) vegetable oil
- 1 cup (240 ml) buttermilk, at room temperature
- 2 tsp vanilla extract
- 1/2 cup (120 ml) hot coffee or hot water
- For the coconut-pecan filling:
- 1 cup (240 ml) evaporated milk
- 3/4 cup (150 g) granulated sugar
- 3 large egg yolks, lightly beaten
- 1/2 cup (115 g) unsalted butter, cut into pieces
- 1 tsp vanilla extract
- 1 1/3 cups (120 g) sweetened shredded coconut
- 1 cup (120 g) chopped pecans, toasted
- For the chocolate glaze:
- 4 oz (115 g) semisweet chocolate, chopped
- 1/2 cup (120 ml) heavy cream
Instructions
- Preheat the oven to 350°F (175°C). Line a 12-cup muffin pan with paper liners.
- In a medium bowl, whisk together the flour, cocoa powder, baking powder, baking soda, and salt. Set aside.
- In a large bowl, whisk the granulated sugar, brown sugar, eggs, oil, buttermilk, and vanilla until smooth. Add the dry ingredients and stir until just combined. Pour in the hot coffee and stir until the batter is smooth (it will be thin).
- Divide the batter evenly among the prepared cups, filling each about 3/4 full. Bake for 18–22 minutes, until a toothpick inserted in the center comes out clean. Cool in the pan for 5 minutes, then transfer to a wire rack to cool completely.
- While the cupcakes cool, make the coconut-pecan filling. In a medium saucepan, combine the evaporated milk, sugar, egg yolks, and butter. Cook over medium heat, stirring constantly, until thickened and bubbly, about 12–15 minutes. The mixture should coat the back of a spoon.
- Remove from heat and stir in the vanilla, coconut, and toasted pecans. Let cool to room temperature, about 30 minutes. The filling will thicken further as it cools.
- Make the glaze: place the chopped chocolate in a heatproof bowl. Heat the cream in a small saucepan until just simmering. Pour the hot cream over the chocolate, let stand for 2 minutes, then stir until smooth. Let cool slightly until it is thick but still pourable.
- To assemble: spoon a generous dollop of the coconut-pecan filling onto the top of each cupcake. Drizzle the chocolate glaze over the filling, letting it run down the sides. Refrigerate for at least 30 minutes to set the glaze before serving.
Make-Ahead Timeline
You can bake the cupcakes and make the filling a day ahead. Store the unfrosted cupcakes in an airtight container at room temperature for up to 2 days. Keep the filling in the refrigerator in a covered container. Assemble the cupcakes the day you plan to serve them, or up to 6 hours ahead if kept refrigerated. The assembled cupcakes hold their shape well for a party.
Serving and Pairing
Serve these cupcakes at room temperature for the softest crumb. They pair well with cold milk, coffee, or a dark stout beer (for adults of legal drinking age, drink responsibly). For a dessert plate, add a few fresh raspberries or a scoop of vanilla ice cream on the side. The sweetness of the coconut-pecan filling balances the bitterness of the chocolate glaze.
Storage and Leftovers
Refrigerate any leftover cupcakes in an airtight container for up to 4 days. Bring them to room temperature before serving, or microwave each for 10 seconds to soften. You can freeze unfrosted cupcakes for up to 3 months; wrap them tightly in plastic wrap and then foil. Thaw overnight in the refrigerator before frosting. The coconut-pecan filling also freezes well for up to 3 months in a freezer-safe container; thaw overnight in the fridge and stir before using.
Swaps and Variations
If you don’t have buttermilk, add 1 tablespoon of lemon juice or white vinegar to 1 cup of milk and let it sit for 5 minutes. For a nut-free version, omit the pecans and increase the coconut to 1 1/2 cups (135 g). Use sweetened coconut, not unsweetened, for the classic flavor; unsweetened will make the filling less sweet and drier. You can replace the coffee with hot water, but the coffee deepens the chocolate flavor without adding a coffee taste.
Safety Notes
The coconut-pecan filling contains egg yolks that are cooked to a safe temperature during the stovetop cooking. The filling must reach 160°F (71°C) to be safe; use a food thermometer to check. Do not taste the raw batter or filling before cooking because it contains raw flour and raw eggs. To make it safe to taste, heat-treat the flour to 160°F (71°C) and cool it, and use pasteurised eggs. Pregnant people, young children, older adults, and anyone with a weakened immune system should avoid raw eggs and raw flour. Refrigerate any cupcakes with the filling within 2 hours of assembly.
Related
- Chocolate Cake Mix and Pumpkin Recipe
- Sheet Pan Lemon Garlic Butter Salmon Recipe
- Honey Garlic Sausage and Sweet Potatoes Sheet Pan Dinner
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).
