Time: 15 min prep, 10 min cook · Serves: about 3 cups (enough for a 9×13-inch cake or 2-layer 9-inch cake) · The key step: cook the frosting until it thickens and darkens slightly, then cool it completely before spreading. This is a cooked, caramel-like frosting with shredded coconut and toasted pecans, often used on German chocolate cake but equally good on yellow, banana, or spice cakes. It is sweet, nutty, and spreadable at room temperature.
What This Frosting Is
Coconut pecan frosting is a cooked frosting, not a buttercream. It starts with evaporated milk, sugar, egg yolks, and butter, cooked until it thickens into a custard-like sauce, then finished with coconut and pecans. It is the classic topping for German chocolate cake, but it also pairs well with chocolate, banana, or carrot cake. The texture is soft and a little gritty from the coconut, and it firms up as it cools.
Ingredients
- 1 cup (240 ml) evaporated milk
- 1 cup (200 g) granulated sugar
- 3 large egg yolks
- 1/2 cup (115 g) unsalted butter, cut into pieces
- 1 teaspoon vanilla extract
- 1 1/3 cups (120 g) sweetened shredded coconut
- 1 cup (120 g) chopped pecans, toasted (see step 1)
Instructions
- Toast the pecans: spread them on a dry skillet over medium heat, stirring often, for 3-5 minutes until fragrant and lightly browned. Set aside to cool.
- In a medium saucepan, whisk together the evaporated milk, sugar, and egg yolks until smooth.
- Add the butter and place over medium heat. Cook, stirring constantly with a wooden spoon or heatproof spatula, until the butter melts and the mixture thickens enough to coat the back of a spoon, about 10-12 minutes. The mixture should reach 160°F (71°C) on a food thermometer (USDA FSIS safe minimum for egg dishes). Do not let it boil hard.
- Remove from heat and stir in the vanilla, coconut, and toasted pecans.
- Let the frosting cool at room temperature for 30-45 minutes, stirring occasionally, until it is spreadable but not runny. It will thicken more as it cools.
- Spread on a completely cooled cake. If the frosting becomes too stiff, warm it gently over low heat, stirring, or add a teaspoon of milk at a time.
How to Use and Store
This frosting is best used the day it is made, but it keeps well. Store frosted cake in the refrigerator for up to 4 days; bring to room temperature before serving for the best texture. The frosting can also be made ahead and refrigerated in an airtight container for up to 3 days. To reuse, warm it gently in a saucepan over low heat, stirring until spreadable, then cool again before frosting the cake.
What Goes Wrong and How to Fix It
Runny Frosting
If the frosting is too thin after cooling, it was not cooked long enough. Return it to the saucepan and cook over medium heat, stirring constantly, for another 2-3 minutes until it visibly thickens. You can also refrigerate it for 15-20 minutes to help it set.
Grainy or Scrambled Texture
If the mixture looks curdled or has lumps, the heat was too high or you stopped stirring. Keep the heat at medium and stir constantly. If it curdles, it is still safe to eat but the texture will be off; you can try blending it briefly with an immersion blender to smooth it out.
Too Sweet or Too Thick
This frosting is quite sweet by design. If you prefer less sweetness, reduce the sugar to 3/4 cup (150 g) and add a pinch of salt. If it becomes too thick to spread, warm it slightly or stir in 1-2 teaspoons of milk.
Variations and Serving Ideas
For a less sweet version, use unsweetened shredded coconut and reduce the sugar to 3/4 cup (150 g). For a deeper flavor, toast the coconut along with the pecans until golden. You can also add a teaspoon of bourbon or rum (for adults) after cooking, but note that alcohol will not cook off completely. This frosting is classic on German chocolate cake, but it also works on yellow cake, banana cake, or as a filling between layers. It pairs well with a dark chocolate cake because the sweetness contrasts with the bitter cocoa.
Food Safety Notes
This frosting contains egg yolks and dairy. Keep it refrigerated if not using immediately, and do not leave it at room temperature for more than 2 hours (1 hour if above 90°F/32°C). The frosting is safe to eat after cooking to 160°F (71°C), but if you are serving pregnant people, young children, older adults, or anyone with a weakened immune system, use pasteurized eggs and cook to the same temperature. Raw flour is not used in this recipe, but if you are making a cake with raw flour, heat-treat the flour before baking.
Related
- Fourth of July Poke Cake With Frosting
- Butter Pecan Cake Mix Muffins
- Butter Pecan Cake Mix Cobbler 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).