This german chocolate cake recipe gives you three soft, buttermilk-rich chocolate layers filled and topped with a cooked coconut-pecan frosting. The frosting is custardy and caramel-like, and it is the signature of the cake. Despite the name, the cake is American. It is named after Samuel German, who created a mild baking chocolate in the 1850s, and it became a national favorite in the 1950s.
The method is simple. Melt chocolate in hot water, beat the batter, fold in whipped egg whites for lift, and cook the frosting on the stove. Everything can be made ahead, and the result looks impressive on a dessert table.

Quick Recipe Overview
- Yield: 12 slices (one 3-layer, 9-inch cake)
- Prep time: 45 minutes
- Cook time: 40 minutes (baking and frosting)
- Cooling time: 2 hours
- Total time: 3 hours 25 minutes
- Difficulty: Intermediate
- Best for: Birthdays, Eid gatherings, holiday dessert tables, potlucks
Why You’ll Love This Recipe
- The cake layers stay moist because of buttermilk and melted chocolate.
- Whipped egg whites keep the crumb light instead of dense.
- The frosting is cooked on the stove, so it sets into a thick, spreadable filling that holds up between layers.
- It uses regular pantry ingredients, and every one has an easy halal-friendly option.
- Both the layers and the frosting can be made a day ahead.
Ingredients
For the Chocolate Cake Layers
- 4 oz (113 g) semi-sweet or sweet baking chocolate, finely chopped
- 1/2 cup (120 ml) boiling water
- 2 1/2 cups (280 g) cake flour, spooned and leveled
- 1 teaspoon baking soda
- 1/2 teaspoon fine salt
- 1 cup (227 g) unsalted butter, softened
- 2 cups (400 g) granulated sugar
- 4 large eggs, separated, at room temperature
- 1 teaspoon halal vanilla extract
- 1 cup (240 ml) buttermilk, at room temperature
For the Coconut-Pecan Frosting
- 1 cup (240 ml) evaporated milk
- 1 cup (200 g) granulated sugar
- 3 large egg yolks
- 1/2 cup (113 g) unsalted butter, cut into pieces
- 1 teaspoon halal vanilla extract
- 1 1/3 cups (120 g) sweetened flaked coconut
- 1 cup (115 g) chopped pecans, toasted
Ingredient Notes & Substitutions
Chocolate
Use halal-certified or ingredient-checked chocolate. Some baking chocolates contain non-halal flavorings or non-halal emulsifiers, so read the label. Semi-sweet chocolate works well. If you use unsweetened chocolate, add 2 tablespoons of sugar to the batter.
Vanilla
Standard vanilla extract is not halal-friendly. Use a halal vanilla extract, halal vanilla bean paste, or vanilla powder. Check the label either way.
Cake Flour
If you do not have cake flour, measure 1 cup of all-purpose flour, remove 2 tablespoons, and add 2 tablespoons of cornstarch. Sift it twice. Repeat for each cup needed.
Buttermilk
If you have no buttermilk, stir 1 tablespoon of white vinegar or lemon juice into 1 cup of milk and let it sit for 5 to 10 minutes. Plain yogurt thinned with a little milk also works.
Evaporated Milk
Evaporated milk gives the frosting its rich, caramelized flavor. Do not swap in sweetened condensed milk, which would make the frosting far too sweet and runny.
Pecans and Coconut
Walnuts can replace pecans. Unsweetened coconut works if you add 2 extra tablespoons of sugar to the frosting. Toast the pecans for 6 to 8 minutes at 350°F (175°C) for deeper flavor.
Eggs
Use large eggs at room temperature. Cold eggs do not whip as well and can make the batter curdle.
Step-by-Step Instructions
Prepare the Pans and Oven
- Heat the oven to 350°F (175°C). Grease three 9-inch round cake pans, line the bottoms with parchment paper, and lightly grease the parchment.
Melt the Chocolate
- Place the chopped chocolate in a small bowl. Pour the boiling water over it, wait one minute, then stir until smooth. Let it cool for 10 minutes.
Make the Batter
- Whisk the cake flour, baking soda, and salt together in a medium bowl.
- In a large bowl, beat the butter and sugar on medium speed for 3 to 4 minutes until pale and fluffy.
- Add the 4 egg yolks one at a time, beating well after each. Mix in the vanilla and the cooled chocolate until combined.
- Add the flour mixture in three parts, alternating with the buttermilk in two parts. Begin and end with flour, and mix on low speed only until just combined.

Fold In the Egg Whites
- In a clean, dry bowl, beat the 4 egg whites until stiff peaks form. Fold them into the batter in two additions, gently, until no white streaks remain. Do not stir hard, or you will lose the air.
Bake the Layers
- Divide the batter evenly among the pans. A kitchen scale makes this easy.
- Bake for 28 to 32 minutes, until a toothpick inserted in the center comes out clean and the tops spring back lightly.
- Cool in the pans for 10 minutes, then turn out onto wire racks and cool completely.
Cook the Frosting
- In a medium saucepan, whisk the evaporated milk, sugar, egg yolks, and butter together.
- Cook over medium heat, stirring constantly, for 10 to 12 minutes until the mixture thickens and turns light golden. It should coat the back of a spoon.
- Remove from the heat. Stir in the vanilla, coconut, and toasted pecans.
- Cool for about 30 minutes, stirring occasionally, until thick and spreadable.

Assemble the Cake
- Level the layers if they have domed. Place the first layer on a serving plate and spread about one-third of the frosting over it, leaving a small border.
- Add the second layer and another third of the frosting, then the final layer.
- Spread the remaining frosting on top only. Traditionally, the sides stay uncovered so the chocolate layers show.

Expert Tips & Common Mistakes
Measure Flour Carefully
Spoon cake flour into the cup and level it off. Scooping directly from the bag packs in too much flour and dries out the cake. A scale (280 g) is more reliable.
Do Not Overmix
Once the flour goes in, mix only until the streaks disappear. Overmixing builds gluten and makes the layers tough.
Keep the Frosting Moving
Stir constantly while cooking the frosting so the egg yolks do not scramble. Lower the heat if you see tiny lumps forming. If it does form lumps, strain it before adding the coconut.
Cool Everything Before Assembling
Warm cake or warm frosting will slide and soak into the layers. Wait until both are fully cooled.
Do Not Skip the Parchment
The cake is tender, and parchment helps the layers release cleanly.
Use a Toothpick, Not Time Alone
Ovens vary. Start checking at 26 minutes.
Variations
Two-Layer Version
Bake in two 9-inch pans for 35 to 40 minutes. The layers will be thicker, and you may have extra frosting to serve on the side.
Sheet Cake
Pour the batter into a greased 9×13-inch pan and bake for 35 to 40 minutes. Spread the frosting over the cooled cake.
Cupcakes
Bake in lined muffin tins for 18 to 22 minutes, then top each one with a spoonful of frosting.
Nut-Free Version
Leave out the pecans and increase the coconut to 1 3/4 cups. Check that your chocolate is also nut-free.
Chocolate Drizzle
Melt 2 ounces of halal-certified chocolate with 1 tablespoon of butter and drizzle it over the top for extra chocolate flavor.
Serving Suggestions
Serve slices at room temperature, since the frosting is softer and the cake is more tender than when cold. A cup of hot tea, coffee, or cold milk goes well with it. For a dinner party, add fresh raspberries or sliced strawberries to the plate.

Storage & Reheating
Room Temperature
Because the frosting contains milk and eggs, do not leave the cake out for more than 2 hours.
Refrigerator
Cover and refrigerate for up to 4 days. Let slices sit at room temperature for 30 minutes before serving.
Freezer
Freeze unfrosted layers, wrapped tightly, for up to 2 months. Thaw them in the refrigerator overnight. The frosting can be frozen separately for up to 1 month. Thaw it, then stir well before using.
Make-Ahead Plan
Bake the layers a day ahead and wrap them well. Make the frosting the same day or the day before and refrigerate it. Let it come to room temperature and stir before spreading.
FAQs
Why is it called German chocolate cake?
The name comes from Samuel German, who developed a sweet baking chocolate. The cake itself is American, not from Germany.
What is the difference between German chocolate cake and regular chocolate cake?
German chocolate cake uses a milder, sweeter chocolate flavor and a cooked coconut-pecan frosting made with evaporated milk and egg yolks. Regular chocolate cake usually has a chocolate buttercream or ganache.
Can I use all-purpose flour instead of cake flour?
Yes. Use 2 1/4 cups (270 g) of all-purpose flour, though the crumb will be slightly less tender. The cake flour substitution in the notes above gives closer results.
Why did my frosting turn out runny?
It likely needed more cooking time. Cook until it coats the spoon, and allow it to cool completely, because it thickens as it sits.
Is this recipe halal?
Yes. This recipe is fully halal-friendly. It uses halal vanilla, and you should confirm that your chocolate and other packaged ingredients are halal-certified and free from non-halal additives.
Can I make it without eggs?
Eggs give the cake and frosting their structure, so this recipe does not work well without them. An egg-free version would need a different recipe.

Classic German Chocolate Cake
Ingredients
Equipment
Method
- Heat the oven to 350°F (175°C). Grease three 9-inch round pans and line the bottoms with parchment.
- Pour the boiling water over the chopped chocolate, wait one minute, stir until smooth, and cool for 10 minutes.
- Whisk the cake flour, baking soda, and salt together.
- Beat the butter and sugar for 3 to 4 minutes until pale and fluffy.
- Beat in the egg yolks one at a time, then mix in the vanilla and cooled chocolate.
- Add the flour mixture in three parts, alternating with the buttermilk in two parts, mixing until just combined.
- Beat the egg whites to stiff peaks and fold them into the batter in two additions.
- Divide the batter among the pans and bake for 28 to 32 minutes, until a toothpick comes out clean.
- Cool in the pans for 10 minutes, then turn out onto wire racks and cool completely.
- Whisk the evaporated milk, sugar, egg yolks, and butter in a saucepan. Cook over medium heat, stirring constantly, for 10 to 12 minutes until thick and light golden.
- Remove from the heat and stir in the vanilla, coconut, and pecans. Cool for about 30 minutes until spreadable.
- Spread one-third of the frosting on the first layer, add the second layer and another third, then top with the last layer and the remaining frosting. Leave the sides uncovered.
- Slice and serve at room temperature.



