German Chocolate Cake with Coconut Frosting

Moist German Chocolate Cake with Pecans featuring dark cocoa layers and a thick, glossy golden-brown sugar glaze.
German Chocolate Cake with Pecans
  • Total3 Hrs
  • Servings12 slices
  • Calories616 kcal
By Nina CalderonUpdated:
The trick to why German chocolate cake works is the contrast between the acidic buttermilk sponge and the rich, cooked custard frosting.
  • Time: 20 min active + 40 min cooking + 2 h resting
  • Taste: Deep cocoa, toasted coconut, and buttery pecans
  • Best for: Family celebrations and dinner parties

Ingredient Deep Dive

  • 2 cups (250g) all-purpose flour
  • 2 cups (400g) granulated sugar
  • 3/4 cup (65g) unsweetened cocoa powder
  • 2 tsp (10g) baking soda
  • 1 tsp (5g) salt
  • 1/2 cup (115g) unsalted butter, softened
  • 2 large eggs
  • 1 cup (240ml) buttermilk, room temperature
  • 1 tsp (5ml) vanilla extract
  • 1 can (12 oz / 354ml) evaporated milk
  • 1 cup (200g) granulated sugar
  • 1/2 cup (115g) unsalted butter
  • 3 large egg yolks, beaten
  • 1 tsp (5ml) vanilla extract
  • 2 cups (200g) sweetened shredded coconut
  • 1 cup (110g) chopped pecans

The cocoa powder provides the foundation, but the buttermilk is the real worker here. Its acidity reacts with the baking soda to create a tender rise. Without it, the cake could feel dense or heavy.

The frosting relies on evaporated milk. Unlike heavy cream, evaporated milk allows you to simmer the mixture into a stable custard. The thickened custard holds the heavy pecans and coconut in place as you spread it.

For the nuts, chopped pecans provide a woody crunch. You can use walnuts as an approximation, but start with slightly less and adjust to taste.

Components and Substitutes

Original IngredientSubstituteWhy It Works
Buttermilk (1 cup)1 cup milk + 1 tbsp lemon juiceMimics the acidity to activate baking soda
Evaporated Milk (12 oz)Full-fat coconut milkSimilar thickness. Note: Adds a strong coconut flavor
Pecans (1 cup)WalnutsSimilar crunch and fat content

Tools You'll Need

You will need two 9-inch round cake pans. Lining the bottoms with parchment paper is a must to avoid the cake sticking. A large mixing bowl and a hand mixer or stand mixer, such as a KitchenAid, will handle the batter.

For the frosting, a medium heavy-bottomed saucepan is essential. This prevents the sugar and milk from scorching during the 10-minute simmer. A wire rack for cooling the layers ensures they don't get soggy on the bottom.

How to Make It

Preparing the Batter

  1. Preheat the oven to 350°F (180°C). Grease two 9-inch round cake pans and line the bottoms with parchment paper.
  2. In a large bowl, sift together the 2 cups (250g) all-purpose flour, 2 cups (400g) granulated sugar, 3/4 cup (65g) unsweetened cocoa powder, 2 tsp (10g) baking soda, and 1 tsp (5g) salt.
  3. Beat the 1/2 cup (115g) softened unsalted butter into the dry mixture until the texture resembles coarse sand.
  4. Add the 2 large eggs one at a time, followed by the 1 cup (240ml) buttermilk and 1 tsp (5ml) vanilla extract. Mix on medium speed until the batter is smooth and glossy, stopping as soon as the flour streaks disappear. Note: Overmixing develops too much gluten, which makes the cake tough.
    A bowl of smooth, dark brown chocolate cake batter.
  5. Pour the batter evenly between the two prepared cake pans.

Baking the Layers

  1. Bake on the center rack for 30-35 minutes. Insert a toothpick into the center; it is done when it comes out clean or with just a few moist crumbs attached.
    Two baked chocolate cakes in round pans.
  2. Let the layers rest in the pans for 10 minutes, then invert them onto a wire rack to cool completely to room temperature.

Simmering the Coconut-Pecan Frosting

  1. In a medium heavy-bottomed saucepan, stir together the 1 can (12 oz / 354ml) evaporated milk, 1 cup (200g) granulated sugar, 1/2 cup (115g) unsalted butter, and 3 beaten large egg yolks.
  2. Bring the mixture to a gentle simmer over medium heat, stirring constantly for 10-12 minutes until it thickens into a custard-like consistency.
    Thickened yellow custard frosting in a saucepan.
  3. Remove from heat and stir in the 1 tsp (5ml) vanilla extract, 2 cups (200g) sweetened shredded coconut, and 1 cup (110g) chopped pecans.
  4. Allow the frosting to cool for at least 30 minutes until spreadable.

Assembling the Masterpiece

  1. Place the first cake layer on a plate and spread a generous layer of the cooled coconut-pecan frosting over the top, leaving a small margin at the edge.
    A chocolate cake layer topped with coconut-pecan frosting.
  2. Place the second cake layer on top and spread the remaining frosting over the top and sides, swirling with a spatula to create peaks.

How It Comes Together

The physics of this cake rely on temperature and acidity. By beating butter into the dry ingredients first, you coat the flour in fat, which limits gluten formation and helps give a velvety crumb.

The frosting is a cooked emulsion. As the egg yolks cook in the simmering milk, their proteins set and thicken the mixture into a custard.

MethodTimeTextureBest For
Traditional Layer2h 55mTall and structuredCelebrations
Sheet Cake1h 45mFlat and easy to sliceCasual gatherings

If Something Goes Wrong

Fixing a Runny Frosting

If the frosting doesn't hold its shape, return the saucepan to low heat. Simmer for another 3-5 minutes, stirring constantly, until the mixture reduces. It will thicken significantly more as it cools to room temperature.

Preventing Sunk Centers

Sinking usually happens if the oven door is opened too often or if the baking soda is expired. Ensure your soda is fresh and avoid peaking until the 30-minute mark.

Avoiding Sticky Pans

Even with grease, cocoa-based cakes can cling to the pan. Always use parchment paper circles at the bottom. If a piece sticks, run a thin knife around the edge and gently shake the pan before inverting.

Freezing and Reheating Guide

Place the finished cake in a sealed container and refrigerate for up to 4 days.

To freeze, wrap slices individually in plastic wrap and tuck them into a freezer-safe bag for up to 3 months. Defrost portions in the fridge overnight. For a warm treat, microwave a slice for 10-15 seconds.

Serving SizeCake CutRecommended Portion
12 SlicesWedgeStandard party slice
24 SlicesThin WedgeTasting or dessert buffet
12 SquaresGridCasual coffee break

Dietary Adaptations

If you want to make a German chocolate cake recipe from scratch but prefer a different format, try a sheet cake. Bake the batter in a 9x13 inch pan for 25-30 minutes. This is much faster and easier for transporting to potlucks.

For a gluten-free version, replace the all-purpose flour with a 1:1 gluten-free baking blend. You may need an extra egg to help with the structure, as gluten-free flours can sometimes lead to a more fragile sponge. If you are looking for a different flavor profile entirely, an Easy Chocolate Fudge Cake is a great alternative.

What to Serve This With

A slice of dark cocoa cake on a white plate, drizzled with a smooth, shimmering golden-brown butter glaze.

The richness of this dessert pairs well with something acidic or bitter. A handful of fresh raspberries or a tart raspberry coulis cuts through the buttery coconut.

A strong cup of black coffee or an espresso is the traditional choice, as the bitterness balances the sweetness of the frosting. If you are planning a larger dessert spread, an Italian Love Cake offers a lighter, ricotta-based contrast to the heavy cocoa of the classic German chocolate cake frosting.

Before You Start Cooking

What makes German chocolate cake different?

It features a contrast between an acidic buttermilk cocoa sponge and a rich cooked custard frosting.

Tip: Use a heavy-bottomed pan for the frosting to avoid scorching the milk.

Why did the cake sink?

This usually occurs if the oven door is opened too early or the baking soda has lost its potency.

Tip: Check the expiration date of your baking soda before starting.

Could regular milk replace buttermilk?

Regular milk lacks the acidity required to activate the baking soda for a proper rise.

Tip: Combine one cup of milk with one tablespoon of lemon juice to mimic buttermilk.

How to store leftover frosting?

Place the frosting in an airtight container and keep it in the refrigerator.

Tip: Stir the custard gently before using to restore its smooth consistency.

Does the filling contain custard?

The frosting is a cooked custard made from evaporated milk, butter, and egg yolks.

Tip: Stir the mixture constantly for 10-12 minutes to achieve the correct thickness.

German Chocolate Cake with Coconut Frosting

German Chocolate Cake with Pecans Recipe Card
German Chocolate Cake with Pecans Recipe Card
4.3 / 5 (6 Reviews)
Preparation time:20 Mins
Cooking time:40 Mins
Resting time:2 Hrs
Total time:3 Hrs
Servings:12 slices
Category: DessertCuisine: American
print Pin

Ingredients:

Instructions:

Nutrition Facts
Per serving
Calories
616 kcal
% Daily Value*
Total Fat 33g
   Saturated Fat 18g
Sodium 553mg
Total Carbohydrate 79g
   Dietary Fiber 4g
   Total Sugars 59g
Protein 9g
* Percent Daily Values are based on a 2,000 calorie diet.
Rate This Recipe
How many stars?
Rate, Share, Comment:
Submit Review:
Rating Breakdown
5
(2)
4
(4)
3
(0)
2
(0)
1
(0)
Recipe Comments:
CozyApple3368

So good!
Foster163

I added an extra teaspoon of espresso powder and it gave the cake such a rich flavor, loved it!
Emily77

This cake is a total blast from the past! It tastes just like my mom used to make when I was a kid, but so much easier to make! I'm obsessed with how moist it is and the perfect balance of chocolate flavor. I'm making it for every family gathering from now on!
PurpleSauce5889

I made this cake for my family's Sunday dinner and it was a total hit! My kids loved it and my husband asked for seconds! I followed the recipe to the letter and it turned out perfect, moist and delicious. The best part is it only took 10 minutes to prep, I can
Aubrey

Made this for my book club meeting tonight and it was a HUGE hit! Everyone raved about how moist and chocolatey it was. I was a bit skeptical about the simplicity of the recipe, but it really delivers. Perfect for holidays or any time you need a crowd-pleaser!
Adriana B.

This cake is EXACTLY how my mom used to make it when I was a kid! I was skeptical at first trying this new recipe, but trust me it's a GAME CHANGER! So easy to make and it's ridiculously moist and chocolatey. My whole family devoured it in minutes
Jump to Recipe