This German chocolate cake recipe layers moist homemade chocolate cake with rich coconut-pecan frosting, made completely from scratch, no box mix in sight.
My grandma made this cake for every single birthday in our family, and I swear the coconut-pecan frosting disappeared by the spoonful before anyone even cut a slice. These days I’m the one sneaking spoonfuls, just with worse patience for letting that frosting cool.
There’s something about a homemade german chocolate cake that just feels like an occasion, even if the occasion is “it’s Tuesday and I wanted cake.” Once you taste that coconut-pecan layer next to soft chocolate cake, you’ll get why people fight over the corner pieces.
Table of Contents
What Makes This German Chocolate Cake Recipe So Good
If you’ve never made a german chocolate cake from scratch, here’s the short version: it’s rich, it’s a little extra, and it’s worth every dish you’ll dirty. This recipe keeps things classic while staying totally doable in a regular kitchen.
- A deeply chocolatey cake base that stays moist thanks to buttermilk and boiling water
- That iconic gooey coconut-pecan filling sandwiched between layers and piled on top
- A glossy homemade chocolate frosting that ties the whole chocolate cake together
- Big, nostalgic flavor that works for birthdays, potlucks, or just a random Tuesday
It’s the kind of german cake that disappears fast at a party, so don’t be surprised if people ask for the recipe before they’ve even finished their slice.

German Chocolate Cake Recipe
Equipment
- Oven
- Two 8 or 9-inch round cake pans
- wax paper
- Large bowl
- Separate mixing bowl
- Whisk
- Saucepan
- spatula
- Wire racks
- Serving plate
- Microwave
Ingredients
Chocolate Cake
- 2 cups granulated sugar 400 g
- 1 ¾ cups all-purpose flour 210 g
- ¾ cup unsweetened cocoa powder 75 g
- 1 ½ teaspoons baking powder 6 g
- 1 ½ teaspoons baking soda 7.5 g
- 1 teaspoon salt 5 g
- 2 large eggs room temperature recommended
- 1 cup buttermilk 240 ml; room temperature recommended
- ½ cup oil 120 ml; vegetable or canola
- 2 teaspoons vanilla extract 10 ml
- 1 cup boiling water 240 ml
Coconut Pecan Frosting
- ½ cup light brown sugar 100 g
- ½ cup granulated sugar 100 g
- ½ cup butter 115 g
- 3 large egg yolks
- ¾ cup evaporated milk 180 ml
- 1 tablespoon vanilla extract 15 ml
- 1 cup chopped pecans 120 g; toast before chopping for richer flavor if desired
- 1 cup shredded sweetened coconut 80 g
Chocolate Frosting
- ½ cup butter 115 g
- ⅔ cup unsweetened cocoa powder 65 g
- 3 cups powdered sugar 360 g; add more if frosting is too thin
- ⅓ cup evaporated milk 80 ml; add a little extra if frosting is too thick
- 1 teaspoon vanilla extract 5 ml
Optional Variations
- chocolate ganache optional thin layer between cake and coconut filling for extra fudginess
- walnuts optional substitute for pecans
- 1 pinch espresso powder optional, add to chocolate frosting for deeper flavor
Instructions
- Heat the oven to 375°F. Grease two 8 or 9-inch round pans and line the bottoms with wax paper circles.
- In a large bowl, stir together the granulated sugar, all-purpose flour, cocoa powder, baking powder, baking soda, and salt.
- In a separate bowl, whisk the eggs, buttermilk, oil, and vanilla extract until smooth.
- Pour the wet ingredients into the dry ingredients and mix to combine.
- Stir in the boiling water last. The batter will look thin, which helps create a soft, moist crumb.
- Divide the batter between the prepared pans.
- Bake for 25 to 35 minutes, depending on pan size. 9-inch pans bake faster. The cakes are done when a toothpick comes out clean or with just a few crumbs.
- Let the cake layers cool in the pans for 5 minutes, then turn them out onto wire racks and cool completely before frosting.
- For the coconut pecan frosting, combine the brown sugar, granulated sugar, butter, egg yolks, and evaporated milk in a saucepan.
- Bring the mixture to a low boil over medium heat, stirring constantly so the eggs do not scramble.
- Keep stirring for several minutes, until the mixture thickens and turns a deep caramel color.
- Remove from the heat and stir in the vanilla extract, chopped pecans, and shredded sweetened coconut.
- Let the coconut pecan frosting cool completely before using so it does not slide off the cake layers.
- For the chocolate frosting, melt the butter, then stir in the cocoa powder until smooth.
- Add the powdered sugar and evaporated milk alternately, beating as you go until the frosting reaches a spreadable consistency.
- If the chocolate frosting is too thick, add a little extra milk. If it is too thin, add a spoonful more powdered sugar.
- Finish the chocolate frosting by mixing in the vanilla extract.
- Set one cake round on a serving plate. Spread a thin layer of chocolate frosting over the top.
- Spoon half of the coconut-pecan frosting over the chocolate frosting, leaving about 1/2 inch of bare space near the edge.
- Stack the second cake layer on top.
- Cover the whole cake with chocolate frosting.
- Spoon the remaining coconut-pecan frosting over the top, letting it spill toward the edges slightly.
- Let the assembled cake set for at least 10 minutes before slicing, or refrigerate overnight for cleaner slices.
Notes
Ingredients You’ll Need for German Chocolate Cake
Nothing fancy here, just real ingredients doing real work. Grouped below by component so you can see exactly what goes where.
For the Chocolate Cake
| Ingredient | Amount |
|---|---|
| Granulated sugar | 2 cups (400 g) |
| All-purpose flour | 1 3/4 cups (210 g) |
| Unsweetened cocoa powder | 3/4 cup (75 g) |
| Baking powder | 1 1/2 teaspoons (6 g) |
| Baking soda | 1 1/2 teaspoons (7.5 g) |
| Salt | 1 teaspoon (5 g) |
| Large eggs | 2 |
| Buttermilk | 1 cup (240 ml) |
| Oil (vegetable or canola) | 1/2 cup (120 ml) |
| Vanilla extract | 2 teaspoons (10 ml) |
| Boiling water | 1 cup (240 ml) |
For the Coconut Pecan Frosting
| Ingredient | Amount |
|---|---|
| Light brown sugar | 1/2 cup (100 g) |
| Granulated sugar | 1/2 cup (100 g) |
| Butter | 1/2 cup (115 g) |
| Large egg yolks | 3 |
| Evaporated milk | 3/4 cup (180 ml) |
| Vanilla extract | 1 tablespoon (15 ml) |
| Chopped pecans | 1 cup (120 g) |
| Shredded sweetened coconut | 1 cup (80 g) |
For the Chocolate Frosting
| Ingredient | Amount |
|---|---|
| Butter | 1/2 cup (115 g) |
| Unsweetened cocoa powder | 2/3 cup (65 g) |
| Powdered sugar | 3 cups (360 g) |
| Evaporated milk | 1/3 cup (80 ml) |
| Vanilla extract | 1 teaspoon (5 ml) |
How to Make This German Chocolate Cake Recipe
Heat your oven to 375°F and grease two 8 or 9-inch round pans. I always cut a little wax paper circle for the bottom too, because nobody has time for a cake that won’t release.
Bake the Chocolate Cake Layers
Stir the sugar, flour, cocoa, baking powder, baking soda, and salt together in a large bowl. In a separate bowl, whisk the eggs, buttermilk, oil, and vanilla until smooth.
Pour the wet ingredients into the dry and mix to combine. Stir in the boiling water last, the batter will look thin and a little alarming, but that’s exactly what gives this chocolate cake its soft, moist crumb.
Divide the batter between your pans and bake for 25 to 35 minutes, depending on pan size (9-inch pans bake faster). You’ll know it’s ready when a toothpick comes out clean or with just a few crumbs clinging on.
Let the layers cool in the pan for 5 minutes, then turn them out onto wire racks. Be patient here, warm cake plus frosting equals a sad, sliding mess.
Make the Coconut Pecan Frosting
In a saucepan, combine the brown sugar, granulated sugar, butter, egg yolks, and evaporated milk. Bring it to a low boil over medium heat, stirring constantly so the eggs don’t scramble on you.
Keep stirring for several minutes until the mixture thickens and turns a deep caramel color. Your kitchen should smell like a candy shop right about now.
Pull it off the heat and stir in the vanilla, pecans, and coconut. Tip: let this frosting cool completely before it touches the cake, warm frosting just slides right off the layers.
Whip Up the Chocolate Frosting
Melt the butter, then stir in the cocoa powder until smooth. Add the powdered sugar and evaporated milk alternately, beating as you go until it reaches a spreadable consistency.
If it’s too thick, splash in a little extra milk. Too thin? A spoonful more powdered sugar fixes it right up. Finish with the vanilla and you’re done.
Assemble Your German Chocolate Cake
Set one cake round on your serving plate. Spread a thin layer of chocolate frosting over the top, then spoon half the coconut-pecan frosting over that, leaving about half an inch of bare space near the edge.
Stack the second layer on top and cover the whole cake in chocolate frosting. Finish by spooning the remaining coconut-pecan frosting over the top, letting it spill toward the edges just a little.
Step back, admire it, and try to wait at least ten minutes before cutting in. I never manage it either, but the layers do hold together better once everything sets for a bit.
One more thing worth knowing: this chocolate cake actually slices cleaner the next day, once the frostings have had time to firm up overnight in the fridge. If you can plan ahead, your slices will look a lot tidier on the plate.
Tips, Variations, and Troubleshooting
Tips for the Best German Chocolate Cake
Let your eggs and buttermilk come to room temperature before mixing, it helps the chocolate cake batter come together smoother. Toast your pecans for a few minutes before chopping; it makes the coconut frosting taste noticeably richer.
Don’t rush the coconut-pecan frosting cooling step. A warm filling is the number one reason layers slide around during assembly.
Fun Variations to Try
Want a different shape? This batter works in a 9×13 pan if you’re not up for layering, just spread the frostings over the top instead. Some people add a thin layer of chocolate ganache between the chocolate cake and coconut filling for extra fudginess, which honestly isn’t a bad idea.
If you’re hosting a bigger dessert table, this german cake pairs beautifully next to something fruity and bright, like a chilled strawberry taho for contrast. The cold, milky sweetness balances out the richness of all that coconut and pecan.
You can also swap the pecans for walnuts if that’s what’s in your pantry, or add a pinch of espresso powder to the chocolate frosting for a deeper, more grown-up flavor. Small tweaks like these don’t change the heart of the recipe, they just make it your own.
Troubleshooting Common Problems
If your cake domed too much in the middle, your oven was likely running hot, an oven thermometer fixes that for next time. If the coconut frosting turned out grainy, it probably cooked too fast, keep the heat at medium and stir patiently.
Cake sinking after baking usually means it came out a touch underbaked. When in doubt, give it another few minutes and retest with a toothpick.
How to Store, Reheat, and Use Up Leftover German Chocolate Cake
This cake actually gets better after a day in the fridge, the frostings settle in and the flavors deepen. Here’s how to keep it fresh.
| Storage Method | How Long It Lasts |
|---|---|
| Room temperature, covered | Up to 2 days |
| Refrigerated, covered | Up to 5 days |
| Frozen, wrapped tightly | Up to 3 months |
For more general guidance on safely storing baked goods, the FoodSafety.gov storage guidelines are a solid reference.
To reheat, microwave a slice for about 10 to 15 seconds, just enough to take the chill off without melting the frosting. Frozen slices thaw nicely overnight in the fridge.
Got extra coconut-pecan frosting? Spoon it over vanilla ice cream or swirl it into oatmeal. Leftover crumbs make a great topping for a quick trifle, or stir them into a batch of double chocolate strawberry banana bread batter for an extra chocolatey twist.
Frequently Asked Questions
Is German chocolate cake actually from Germany?
Not at all. It’s named after Sam German, who created a type of dark baking chocolate in the 1850s. The cake itself was popularized in the United States after a 1957 newspaper recipe used his chocolate.
Can I make this German chocolate cake recipe ahead of time?
Yes. Bake the cake layers a day ahead and store them wrapped at room temperature, then make the frostings and assemble the next day for the freshest results.
Why is my coconut pecan frosting too thin or too thick?
Thin frosting usually means it needs another minute or two over medium heat to thicken properly. If it’s too thick, stir in a splash of evaporated milk to loosen it up.
Can I freeze German chocolate cake?
Yes, this chocolate cake freezes well for up to 3 months when wrapped tightly. Thaw it overnight in the refrigerator before serving for the best texture.
What’s the difference between German chocolate cake and regular chocolate cake?
A regular chocolate cake usually comes with chocolate or vanilla buttercream. A german chocolate cake specifically features that signature coconut-pecan filling, which is what makes it stand out.
Final Thoughts
This German chocolate cake recipe is the kind of bake that turns a regular afternoon into something worth remembering, frosting smudges and all. Give it a try, and don’t stress over making it look perfect, mine never does either.
If you loved it, pin this recipe to your dessert board on Pinterest so you can find it again next time the craving hits. And if you make it, I’d genuinely love to hear how it turned out, drop a comment below.
Want something refreshing to serve alongside your slice? This cake pairs surprisingly well with a cold strawberry syrup matcha drink, the bright, fruity sip cuts right through all that rich frosting.
Curious where this classic dessert actually comes from? Check out the history of German chocolate cake for the full backstory behind the name.