The Feast

Home cooking recipes for everyday dinners and easy entertaining

Coconut Pecan Filling Recipe (German Chocolate Cake)

· 5 min read · Baking and Desserts

This coconut pecan filling is the classic topping for German chocolate cake, but it's so much more than that. It's a rich, gooey, caramel-like mixture of toasted pecans, sweetened coconut, and a custard base that thickens as it cools. The combination of buttery, nutty, and sweet flavors with a soft, chewy texture makes it irresistible. This recipe is straightforward and reliable, yielding a filling that spreads beautifully and stays moist for days.

Ingredients

  • 1 cup (240 ml) evaporated milk
  • 1 cup (200 g) granulated sugar
  • 3 large egg yolks
  • 1/2 cup (1 stick / 113 g) unsalted butter, cut into pieces
  • 1 teaspoon vanilla extract
  • 1 1/3 cups (115 g) sweetened shredded coconut
  • 1 cup (120 g) chopped pecans, toasted

Instructions

  1. Toast the pecans (if not already toasted): Preheat your oven to 350°F (175°C). Spread the pecans on a baking sheet and toast for 5–7 minutes, stirring once, until fragrant. Set aside to cool.
  2. Whisk the wet ingredients: In a medium saucepan, whisk together the evaporated milk, sugar, egg yolks, and butter pieces until well combined.
  3. Cook the mixture: Place the saucepan over medium heat. Stir constantly with a whisk or wooden spoon. The mixture will start to bubble and thicken. Continue cooking and stirring for about 8–12 minutes, until it thickens to a custard-like consistency. It should coat the back of a spoon and leave a clear trail when you run a finger through it. Do not let it boil vigorously for too long, or the eggs may curdle.
  4. Remove from heat and add flavorings: Take the pan off the heat. Stir in the vanilla extract, shredded coconut, and toasted pecans. Mix until everything is evenly coated.
  5. Cool to thicken: Let the filling cool in the pan for 10–15 minutes. It will continue to thicken as it cools. Stir occasionally to prevent a skin from forming.
  6. Use or store: Once cool enough to spread but still warm, use it to fill and frost your cake. Or transfer to a bowl, cover, and refrigerate until ready to use.

Tips

  • Stir constantly: This filling can scorch easily. Keep stirring the entire time it's on the heat, especially around the edges of the pan.
  • Don't overcook: If you cook it too long, the filling will become too thick and grainy. The moment it coats a spoon thickly, remove it from heat.
  • Toast your pecans: Toasting brings out the nutty flavor and keeps them crunchier in the filling. Don't skip this step.
  • Chop pecans evenly: Aim for uniform pieces, about the size of a pea. Larger chunks can make spreading difficult.

Serving Suggestions

This filling is most famous as the frosting for German chocolate cake, but it's also delicious spread between layers of vanilla or chocolate cake, on top of brownies, or as a topping for cheesecake. You can even swirl it into oatmeal or spread it on toast for a sweet treat. It also makes a wonderful filling for sandwich cookies.

Variations

  • Nut-free: Substitute the pecans with an equal amount of toasted walnuts or omit them entirely for a coconut-only filling.
  • Less sweet: Reduce the sugar to 3/4 cup (150 g) if you prefer a less sweet filling, though the texture may be slightly softer.
  • Add a hint of bourbon: Stir in 1–2 tablespoons of bourbon or rum along with the vanilla for a grown-up twist.
  • Spiced version: Add 1/2 teaspoon of cinnamon and a pinch of nutmeg with the vanilla for a warm, spiced flavor.

Storage and Reheating

Store the filling in an airtight container in the refrigerator for up to 1 week. It will firm up when chilled; let it sit at room temperature for 15–20 minutes before spreading, or gently warm it in the microwave in 10-second bursts, stirring between, until spreadable. You can also freeze the filling for up to 3 months. Thaw overnight in the refrigerator, then reheat gently.

Frequently Asked Questions

Why is my filling runny?

If your filling is runny, it likely wasn't cooked long enough. The mixture needs to reach a thick, custard-like consistency before you remove it from heat. Keep cooking and stirring until it visibly thickens and coats the back of a spoon. Also, note that the filling will thicken further as it cools, so don't judge it while it's hot.

Can I use coconut milk instead of evaporated milk?

No, coconut milk has a different fat and water content, which will alter the texture and sweetness. Evaporated milk is concentrated and slightly caramelized, which gives the filling its classic flavor and helps it thicken properly. Stick with evaporated milk for best results.

Can I make this filling ahead of time?

Yes, you can make it up to 3 days ahead. Store it in the refrigerator in an airtight container. When ready to use, let it come to room temperature or gently warm it to soften. Stir well before spreading.

Why did my filling curdle?

Curdling usually happens if the heat is too high or you stop stirring. The eggs can scramble if the mixture gets too hot. Always cook over medium heat and stir constantly. If it does curdle, you can try blending it briefly with an immersion blender to smooth it out, but the texture may not be perfect.

Can I use sweetened shredded coconut or unsweetened?

This recipe is designed for sweetened shredded coconut. If you use unsweetened, you may need to increase the sugar slightly (by about 1/4 cup) to balance the sweetness. The texture will also be a bit drier.

How long does the filling last at room temperature?

Because it contains eggs and butter, the filling should not sit at room temperature for more than 2 hours. If your cake is out for a party, that's fine, but refrigerate any leftovers promptly.

In this article
  1. Ingredients
  2. Instructions
  3. Tips
  4. Serving Suggestions
  5. Variations
  6. Storage and Reheating
  7. Frequently Asked Questions