Forfoodiefriends

  • Quick and Easy Recipes
  • Recipe Roundups
  • Browse Recipes
  • About Sana Umer | Home Cook Behind For Foodie Friends
  • Newsletter
menu icon
go to homepage
  • Quick and Easy Recipes
  • Recipe Roundups
  • Browse Recipes
  • About Sana Umer | Home Cook Behind For Foodie Friends
  • Newsletter
search icon
Homepage link
  • Quick and Easy Recipes
  • Recipe Roundups
  • Browse Recipes
  • About Sana Umer | Home Cook Behind For Foodie Friends
  • Newsletter
×
Home » Quick and Easy Recipes

German Chocolate Cake with Coconut-Pecan Frosting (Moist & Rich)

Updated: May 20, 2026 · Published: Mar 6, 2025 by Sana Umer · This post may contain affiliate links · Leave a Comment

17 shares
  • Facebook
  • X
↓ Jump to Recipe

Zainab asked for chocolate cake on her birthday and I wanted to make something more interesting than plain chocolate layer cake with buttercream. I'd had German chocolate cake once at a friend's house in Karachi years ago — she'd gotten the recipe from an old American cookbook — and I never forgot that frosting. Sticky, coconutty, full of pecans, nothing like any frosting I'd grown up with. So this time, I figured it out myself.

What makes this cake different from other chocolate cakes is that frosting — and I mean genuinely different, not just "a unique twist" different. You cook it on the stovetop with evaporated milk, egg yolks, and butter until it thickens into something almost like caramel, then stir in coconut and pecans. It cools to this glossy, chewy, nutty thing that you spread between the layers and over the top. No piping bags needed. No perfectly smooth sides. It looks rustic and tastes like you spent a lot more time than you did.

My husband is not usually a cake person — he'll take a hot cocoa cookie over a slice of cake any day. But this one he came back for seconds. Zainab was pleased with herself for having picked it. Saad ate the frosting first and left the cake, which is honestly on-brand for him.

One thing to know going in: the cake batter will look very thin after you add the hot water. I panicked the first time and thought I'd done something wrong. I hadn't — that thin batter is exactly what gives you those moist, tender layers. Just trust it and put it in the oven. Also, make sure both layers are completely cool before you frost them. I tried to rush this once and the frosting slid right off the first layer. Lesson learned.

Two-layer German chocolate cake with caramel frosting, topped with pecans and coconut flakes on white plate.

Why You'll Love This Recipe

  • That frosting is unlike anything else: It's not a standard buttercream — it's cooked on the stovetop until thick and glossy, then loaded with sweetened coconut and chopped pecans. The texture is almost jammy, somewhere between caramel and a pecan pie filling. Once you've had it you'll understand why people specifically request this cake.

  • The cake layers stay moist for days: Buttermilk in the batter and a cup of hot water in the mix give you layers that don't dry out overnight. I've made this on a Friday and it was still tender on Sunday. That's rare for a homemade chocolate cake without sour cream or pudding mix.

  • No special equipment needed: I don't have a stand mixer. I mixed this batter with a whisk and a wooden spoon and it came out perfectly fine. The frosting is made in a regular saucepan. You need two 9-inch round cake pans and that's basically it.

  • It actually improves overnight: The coconut in the frosting softens as it sits, and the flavors deepen. I genuinely think day-two slices taste better than day-one slices. If you're making this for a celebration, bake the layers the day before and frost the morning of — you'll be glad you did.

  • It's a recipe you'll actually remember making: I know that sounds vague but there's something about this cake — the smell of the frosting cooking, the way it sets up on the layers — that sticks with you. Zainab already asked if she can have it again next birthday. I said yes before she finished the sentence.

German chocolate cake ingredients arranged on white counter: flour, pecans, butter, milk, eggs, and chocolate.

Ingredients

  • For the Chocolate Cake:
  • 2 cups all-purpose flour
  • 1 ¾ cups granulated sugar
  • ¾ cup unsweetened cocoa powder
  • 2 teaspoons baking soda
  • 1 teaspoon baking powder
  • ½ teaspoon salt
  • 1 cup buttermilk (or 1 cup whole milk + 1 tablespoon white vinegar, let sit 5 minutes)
  • ½ cup vegetable oil
  • 2 large eggs
  • 2 teaspoons vanilla extract
  • 1 cup hot water
  • For the Coconut-Pecan Frosting:
  • 1 cup evaporated milk
  • 1 cup granulated sugar
  • 3 egg yolks
  • ½ cup unsalted butter
  • 1 teaspoon vanilla extract
  • 1 cup shredded sweetened coconut
  • 1 cup chopped pecans
  • For the Chocolate Frosting (Optional — for layering between tiers):
  • ½ cup unsalted butter, softened
  • 2 cups powdered sugar
  • ¼ cup unsweetened cocoa powder
  • 1 teaspoon vanilla extract
  • 2–3 tablespoons milk

Directions

  1. Preheat and prep your pans: Heat your oven to 350°F (175°C). Grease two 9-inch round cake pans and line the bottoms with parchment paper. The parchment is not optional — I've had layers stick without it and it's not a fun situation.
  2. Mix the dry ingredients: In a large bowl, whisk together the flour, sugar, cocoa powder, baking soda, baking powder, and salt. Make sure it's well combined before you add anything wet — you don't want pockets of baking soda in the finished cake.
  3. Combine the wet ingredients: In a separate bowl or large measuring jug, whisk together the buttermilk, vegetable oil, eggs, and vanilla. Pour the wet mixture into the dry ingredients and mix until just combined. Then slowly pour in the hot water while stirring. The batter will look thin and almost watery — that's correct, don't add more flour.
  4. Bake the layers: Divide the batter evenly between the two prepared pans. Bake for 30–35 minutes, until a toothpick inserted in the center comes out clean or with just a couple of dry crumbs. Let the cakes cool in the pans for 10 minutes, then turn them out onto a wire rack to cool completely. Do not frost them warm — I know it's tempting but the frosting will just run off.
  5. Make the coconut-pecan frosting: In a medium saucepan over medium heat, combine the evaporated milk, sugar, egg yolks, and butter. Whisk everything together before you turn on the heat so the yolks don't scramble. Cook, stirring constantly, for about 10 minutes until the mixture noticeably thickens and coats the back of a spoon. Take it off the heat and stir in the vanilla, coconut, and pecans. Let this cool to room temperature — it'll thicken up more as it cools.
  6. Make the optional chocolate frosting: If you want a chocolate layer between the cake tiers, beat together the softened butter, powdered sugar, cocoa powder, vanilla, and 2 tablespoons of milk until smooth and spreadable. Add the third tablespoon of milk if it feels too stiff. This is completely optional but it adds a nice contrast.
  7. Assemble: Place the first cake layer on your serving plate or cake stand. If using the chocolate frosting, spread a thin layer on the first tier first, then add half the coconut-pecan frosting on top. Set the second layer on top and spread the remaining coconut-pecan frosting over it. The sides stay bare — that's traditional for this cake and honestly it looks intentional, not unfinished.
  8. Rest before slicing: Let the cake sit for at least 15–20 minutes after assembly so the frosting can settle. Use a sharp knife and wipe it clean between cuts for cleaner slices.
German chocolate cake with cream frosting, topped with pecans and coconut flakes on white plate.

Tips for Success

  • Don't skip the buttermilk: I know it feels like an extra ingredient to buy but it genuinely makes a difference. The slight acidity reacts with the baking soda and gives you a lighter crumb. If you don't have any, the milk-plus-vinegar substitute I listed in the ingredients works well — I've used it plenty of times when I ran out.

  • Stir the frosting constantly: The egg yolks in the coconut-pecan frosting will curdle if you walk away from the stove. I made this mistake the first time — turned around to check on the kids and came back to scrambled eggs in my frosting. Medium heat, constant stirring, the whole 10 minutes. It's worth standing there.

  • Let the frosting cool fully before spreading: Warm frosting looks thick in the pan but it's still fluid enough to slide off a cake. I spread mine when it's cooled to room temperature and is about the consistency of thick jam. If you're in a hurry, you can put it in the fridge for 20 minutes to speed things up.

  • Measure your cocoa powder correctly: Spoon it into the measuring cup and level it off — don't scoop directly from the container. Packed cocoa can make the batter too thick and the cake can turn out dry. I learned this after wondering why my second attempt was denser than the first.

  • Toast your pecans first if you have time: This isn't in the original recipe but I do it — about 5 minutes in a dry skillet over medium heat until they're fragrant. It takes the pecans from just-crunchy to actually-toasty and adds real depth to the frosting. It's a small step that makes a noticeable difference.

German chocolate cake slice with cream frosting and pecan garnish on white plate.

Variations

  • Sheet cake version: Pour all the batter into a greased 9×13-inch pan and bake at 350°F for 35–40 minutes. Spread the coconut-pecan frosting over the top once it's cooled. This is what I make when I need to feed a lot of people quickly — no layering, no assembly stress, just a big pan of cake that travels well to gatherings.

  • Cupcake version: Same batter, divide into lined muffin tins. Bake at 350°F for 18–20 minutes. Top each one with a spoonful of the coconut-pecan frosting. These are great for Zainab's school events when I don't want to deal with slicing a full cake — easier to pack, easier to hand out, and the kids love them.

  • Nut-free version: Just leave out the pecans. The coconut frosting on its own is still great — it has enough texture and sweetness to carry the cake. Useful if you're baking for anyone with a nut allergy, which comes up more often than you'd expect at kids' parties.

  • Extra chocolate version: Fold ½ cup of chocolate chips into the batter right before pouring it into the pans. It makes the layers even more intensely chocolatey, and you get little pockets of melted chocolate in each slice. My husband prefers the cake this way.

  • Espresso-enhanced: Add 1 teaspoon of instant espresso powder to the dry ingredients. It doesn't make the cake taste like coffee — it just deepens and intensifies the chocolate flavor. This is not authentic to the original recipe at all, but I love what it does. If you want a slightly fancier version for a dinner party, this is the move.

Serving and Storage

Serving

Serve this cake at room temperature — the frosting firms up in the fridge and loses some of its glossy, sticky texture when cold. If you've refrigerated it, pull it out about 30 minutes before serving and let it come back to room temp. A cold glass of milk is genuinely the best thing alongside it, though my husband always has his with coffee. If you want to dress it up a little, a scoop of vanilla ice cream on the side works well — the coconut frosting and vanilla together are a good combination. If you're looking for something lighter to serve alongside for a full spread, these no-bake mini banana cream pies make a nice contrast.

Storage

At room temperature in an airtight container or under a cake dome: 2 days. In the refrigerator: up to 5 days — just remember to bring it back to room temp before serving. To freeze: wrap individual slices tightly in plastic wrap, then place in a freezer bag. They'll keep for up to 3 months. Thaw at room temperature for about an hour. I've done this with leftover birthday cake and the slices come back perfectly.

Two-layer German chocolate cake with caramel frosting and pecans on white plate.

Frequently Asked Questions

Can I make this cake a day ahead?

Yes, and honestly I'd recommend it. Bake the layers the day before, wrap them tightly in plastic wrap once they've cooled, and leave them at room temperature overnight. Make the frosting and assemble on the day you're serving. The layers stay moist and the whole cake is actually easier to handle once the layers have fully set.

Why is my coconut-pecan frosting too thin?

It didn't cook long enough, or the heat was too low. You need a full 10 minutes at medium heat, stirring the whole time, until the mixture visibly thickens and coats the back of a spoon. It will also thicken more as it cools — if it seems slightly loose when hot, give it 30–40 minutes at room temperature before you decide it needs more cooking.

Can I substitute something for buttermilk?

Yes. Mix 1 cup of whole milk with 1 tablespoon of white vinegar or lemon juice, stir it briefly, and let it sit for 5 minutes until it looks slightly curdled. That's your buttermilk substitute. I've used this many times and the cake comes out just as moist. Avoid low-fat milk if you can — whole milk gives a better result.

Can I freeze this cake?

Yes. Freeze individual slices wrapped in plastic wrap and stored in a freezer bag for up to 3 months. Thaw at room temperature for about an hour before eating. I'd avoid freezing the whole assembled cake — it's harder to thaw evenly and the frosting texture can suffer. Slices work much better.

Is German chocolate cake actually from Germany?

No — and I had no idea about this until I looked it up after making it. It's named after Sam German, an American baker who developed a sweet baking chocolate for Baker's Chocolate Company back in the 1850s. The cake itself is American through and through. I think a lot of people assume the coconut-pecan frosting is some European thing, but it's not — it's classic American baking.

Two-layer German chocolate cake with caramel frosting, topped with pecans and coconut flakes on white plate.

GERMAN CHOCOLATE CAKE

Sana Umer
This German Chocolate Cake is a rich, moist chocolate cake layered with a sweet, nutty coconut-pecan frosting. The combination of deep chocolate flavor and caramelized topping makes it an irresistible classic.
Print Recipe Pin Recipe
Prep Time 20 minutes mins
Cook Time 35 minutes mins
Total Time 1 hour hr 15 minutes mins
Course Dessert
Cuisine American
Servings 12 people
Calories 450 kcal

Ingredients
  

For the Chocolate Cake:

  • 2 cups all-purpose flour
  • 1 ¾ cups granulated sugar
  • ¾ cup unsweetened cocoa powder
  • 2 teaspoons baking soda
  • 1 teaspoon baking powder
  • ½ teaspoon salt
  • 1 cup buttermilk
  • ½ cup vegetable oil
  • 2 eggs
  • 2 teaspoons vanilla extract
  • 1 cup hot water

For the Coconut-Pecan Frosting:

  • 1 cup evaporated milk
  • 1 cup granulated sugar
  • 3 egg yolks
  • ½ cup unsalted butter
  • 1 teaspoon vanilla extract
  • 1 cup shredded sweetened coconut
  • 1 cup chopped pecans

For the Chocolate Frosting (Optional, for layering):

  • ½ cup unsalted butter softened
  • 2 cups powdered sugar
  • ¼ cup cocoa powder
  • 1 teaspoon vanilla extract
  • 2-3 tablespoons milk

Instructions
 

Step No.1: Preheat and Prepare the Cake Pans

  • Preheat oven to 350°F (175°C). Grease and line two 9-inch cake pans with parchment paper.

Step No.2: Mix Dry Ingredients

  • In a large bowl, whisk together flour, sugar, cocoa powder, baking soda, baking powder, and salt.

Step No.3: Combine Wet Ingredients

  • Add buttermilk, vegetable oil, eggs, and vanilla to the dry ingredients. Mix well. Slowly stir in hot water, mixing until smooth.

Step No.4: Bake the Cakes

  • Divide batter evenly between the prepared pans. Bake for 30-35 minutes, or until a toothpick inserted in the center comes out clean. Let cakes cool completely before frosting.

Step No.5: Make the Coconut-Pecan Frosting

  • In a saucepan over medium heat, combine evaporated milk, sugar, egg yolks, and butter. Stir constantly for 10 minutes until thickened. Remove from heat, add vanilla, coconut, and pecans, then let cool.

Step No.6: Make the Chocolate Frosting (Optional)

  • Beat butter, powdered sugar, cocoa powder, vanilla, and milk until smooth.

Step No.7: Assemble the Cake

  • Place one cake layer on a serving plate. Spread a layer of chocolate frosting (if using), followed by coconut-pecan frosting. Add the second cake layer and top with more coconut-pecan frosting.

Step No.8: Serve and Enjoy

  • Slice and serve this decadent German Chocolate Cake with a glass of milk or coffee.

Notes

  • Moist Cake Tip: Buttermilk and hot water ensure a super soft and tender crumb.
  • Cooling Time: Allow the frosting to fully cool before spreading.
  • Storage: Store at room temperature for 2 days or refrigerate for up to 5 days.
  • Extra Chocolatey: Add chocolate chips to the batter for more richness.
  • Nut-Free Version: Skip the pecans for a coconut-only frosting.
  • Cupcakes: Make cupcakes instead—adjust the bake time to 18-20 minutes.
Keyword coconut pecan cake, German chocolate cake, homemade chocolate cake, layered chocolate cake

  • DAIRY-FREE MAC AND CHEESE (CREAMY, CHEESY, PLANT-BASED)
  • BBQ GRILLED PORK CHOPS WITH SMOKY BROWN SUGAR RUB (JUICY EVERY TIME)
  • HIDDEN ZUCCHINI MAC AND CHEESE PICKY EATERS BEG FOR
  • SOFT TENDER SLOW-COOKER PULLED BBQ PORK FOR SENIORS
17 shares
  • Facebook
  • X

About Sana Umer

I'm Sana Umer — the home cook behind every recipe on For Foodie Friends. I'm a Pakistani-American mom of two based in the US, and I've been cooking seriously for about a decade now, mostly because feeding a family every day is the fastest way to learn how to actually cook.

I'm completely self-taught. I learned by watching my mother in Pakistan, by burning a lot of food in my early years, and by paying attention to which recipes worked and which ones needed fixing. I don't specialize in just one cuisine — I cook the Pakistani dishes I grew up with, the American desserts my kids request, weeknight dinners, holiday roasts, and everything in between.

Every recipe is personally tested in my own kitchen, every word is written by me, and every photo is taken of food I actually made.

Comments

No Comments

Cancel reply

Your email address will not be published. Required fields are marked *

Recipe Rating




for-foodie-frends-logo-1

Hi, I'm Sana Umer — the home cook, recipe tester, and writer behind For Foodie Friends.

I'm a Pakistani-American mom based in the US. I learned to cook in two kitchens — my mother's in Pakistan, where I grew up watching whole spices bloom in oil, and my own kitchen now, where I cook for my husband and kids.

Every recipe on this site has been tested in my own kitchen, often more times than I'd like to admit, before it ever made it here. I cook a little bit of everything: the Pakistani comfort food I grew up with, the American desserts my kids beg for, weeknight dinners that need to come together fast, and the holiday spreads that take all day.

If a recipe is on this site, it earned its place. No ghostwriters, no AI shortcuts, no copy-paste from somewhere else — just real recipes from a real kitchen, written to actually work the first time you make them.

Welcome to my corner of the internet.

— Sana

More about me →

Popular

  • 23 BUDGET CHICKEN RECIPES FOR THE WHOLE WEEK
  • 25 PANTRY STAPLE RECIPES WHEN THE FRIDGE IS EMPTY
  • 31 CHEAP FAMILY DINNERS THAT FEED 4 FOR UNDER $15
  • 27 BUDGET-FRIENDLY MEAL PREP RECIPES FOR THE WHOLE WEEK
  • 29 DINNERS UNDER $5 PER SERVING (REAL RECIPES, REAL MATH)
  • 19 EASY TILAPIA RECIPES THAT DON'T TASTE BLAND
  • 23 SEAFOOD PASTA DISHES FOR COASTAL-INSPIRED DINNERS
  • 21 HEALTHY WHITE FISH RECIPES THE FAMILY WILL LOVE

Footer

↑ back to top

About

  • Privacy Policy
  • Disclaimer
  • Terms & Conditions
  • Editorial Principles
  • Corrections Policy
  • Affiliate Disclosure

Newsletter

  • Sign Up! for emails and updates

Contact

  • Contact

Resources

  • Kitchen Essentials
  • Pantry Essentials

As an Amazon Associate I earn from qualifying purchases.

Copyright © 2024 For Foodie Friends

  • Facebook
  • Pinterest