Skip to main content
Zimt

Home baking recipes and cinnamon favourites

German Chocolate Layer Cake Recipe from Scratch

German chocolate layer cake is a classic American dessert that combines tender, moist chocolate cake layers with a rich, caramel-like coconut-pecan frosting. Despite its name, the cake does not come from Germany—it was named after Samuel German, who developed a dark chocolate bar for Baker's in 1852. What makes this cake truly special is the frosting: a gooey, custard-based mixture of evaporated milk, sugar, egg yolks, butter, coconut, and toasted pecans that is spread between the layers and on top, leaving the sides often bare for a rustic, irresistible look. This recipe delivers a perfectly balanced cake—not too sweet, with deep chocolate flavor and a luscious, nutty filling that is worth every step.

Ingredients

  • For the chocolate cake layers:
  • 2 cups (250 g) all-purpose flour
  • 1 teaspoon baking soda
  • 1 teaspoon baking powder
  • 1/2 teaspoon salt
  • 1 cup (200 g) granulated sugar
  • 1 cup (200 g) packed light brown sugar
  • 3/4 cup (60 g) unsweetened cocoa powder (natural or Dutch-processed)
  • 1/2 cup (120 ml) vegetable oil
  • 1/2 cup (120 g) unsalted butter, softened
  • 3 large eggs, at room temperature
  • 1 cup (240 ml) buttermilk, at room temperature
  • 1/2 cup (120 ml) hot coffee or hot water
  • 2 teaspoons vanilla extract
  • For the coconut-pecan frosting:
  • 1 cup (240 ml) evaporated milk (one 12-ounce can is about 1.5 cups, so measure 1 cup)
  • 1 cup (200 g) granulated sugar
  • 3 large egg yolks
  • 1/2 cup (120 g) unsalted butter, cut into pieces
  • 1 teaspoon vanilla extract
  • 1 1/3 cups (120 g) sweetened shredded coconut
  • 1 cup (120 g) pecans, toasted and finely chopped

Instructions

  1. Preheat and prepare pans: Preheat your oven to 350°F (175°C). Grease and flour three 9-inch round cake pans, or line the bottoms with parchment paper rounds.
  2. Mix dry ingredients: In a medium bowl, whisk together the flour, baking soda, baking powder, salt, and cocoa powder. Set aside.
  3. Cream butter and sugars: In a large bowl, beat the softened butter, granulated sugar, and brown sugar together until light and fluffy, about 2-3 minutes. Add the oil and beat until combined (the mixture may look a bit grainy, that's fine).
  4. Add eggs and vanilla: Beat in the eggs one at a time, then add the vanilla extract. Scrape down the sides of the bowl as needed.
  5. Alternate dry and wet: With the mixer on low, add the dry ingredients in three additions, alternating with the buttermilk in two additions, starting and ending with the dry ingredients. Mix until just combined—do not overmix.
  6. Add hot liquid: Carefully stir in the hot coffee or hot water. The batter will be thin, but that's normal. Stir until the batter is smooth.
  7. Bake the layers: Divide the batter evenly among the prepared pans. Bake for 25-30 minutes, or until a toothpick inserted in the center comes out with a few moist crumbs. Let cool in the pans for 10 minutes, then turn out onto wire racks to cool completely.
  8. Make the frosting: In a medium saucepan, combine the evaporated milk, sugar, egg yolks, and butter. Cook over medium heat, stirring constantly with a whisk or wooden spoon, until the mixture thickens and turns a light caramel color. This will take about 10-12 minutes. The mixture should coat the back of a spoon and reach 220°F (104°C) on a candy thermometer.
  9. Finish the frosting: Remove from heat and stir in the vanilla, coconut, and toasted pecans. Let the frosting cool to room temperature, stirring occasionally. It will thicken further as it cools.
  10. Assemble the cake: Place one cake layer on a serving plate. Spread about 1 cup of the frosting evenly over the top. Repeat with the second layer and more frosting. Top with the third layer and spread the remaining frosting over the top only, leaving the sides bare for a classic look.
  11. Serve and enjoy: Let the cake sit for at least 30 minutes before slicing to allow the layers to set. Use a sharp knife to cut clean slices.

Tips

  • Toast the pecans first: Spread the pecans on a baking sheet and toast at 350°F for 5-7 minutes until fragrant. This deepens their flavor and keeps them crunchy in the frosting.
  • Don't rush the frosting: The frosting needs to cook long enough to thicken. If it's still runny after 10 minutes, keep cooking, but watch carefully—it can burn quickly once it starts to thicken. Use a candy thermometer for accuracy.
  • Room temperature ingredients matter: Cold eggs or buttermilk can make the batter curdle. Let them sit out for 30 minutes before starting.
  • Level your cake layers: If your layers have domed tops, use a serrated knife to slice off the domes so the cake sits flat. This makes the layers even and easier to assemble.

Serving Suggestions

Serve this cake at room temperature so the frosting is soft and the cake is tender. It pairs beautifully with a cup of black coffee or a glass of cold milk. For a special occasion, dust the top with a little cocoa powder or garnish with extra toasted coconut and pecan halves. The cake is rich, so small slices are plenty—it easily serves 12 to 16 people.

Variations

  • Chocolate ganache drizzle: For extra indulgence, drizzle a simple ganache (melted chocolate and cream) over the top after frosting.
  • Different nuts: Swap the pecans for walnuts or macadamia nuts for a different flavor.
  • Add a chocolate buttercream: If you prefer a more traditional layer cake, use a chocolate buttercream for the sides and keep the coconut-pecan frosting for the filling and top.
  • Make it a sheet cake: Bake the batter in two 9x13-inch pans and spread the frosting over the top—no stacking required.

Storage and Reheating

Store the assembled cake in an airtight container at room temperature for up to 2 days. The frosting contains eggs and butter, so if you need to keep it longer, refrigerate it for up to 5 days. Bring the cake to room temperature before serving—the frosting will harden when cold, so let it sit out for 30-60 minutes. You can also freeze unfrosted cake layers for up to 3 months: wrap each layer tightly in plastic wrap and then foil. Thaw at room temperature before frosting. The frosted cake can be frozen for up to 1 month, but the coconut may soften slightly.

Frequently Asked Questions

Why is my frosting runny?

The frosting needs to reach 220°F (104°C) to thicken properly. If you didn't cook it long enough, it will be too thin. You can try cooking it a bit longer, but once it's off the heat, it won't thicken much more. Make sure to stir constantly to prevent burning.

Can I use sweetened or unsweetened coconut?

Sweetened shredded coconut is traditional and adds sweetness. If you use unsweetened, you may need to add a few extra tablespoons of sugar to the frosting to balance the flavor. The texture will be a bit chewier.

Can I make this cake ahead of time?

Yes! You can bake the cake layers a day ahead and wrap them tightly in plastic wrap. The frosting can also be made a day ahead and stored in the refrigerator—just let it come to room temperature and stir before using.

Why did my cake layers sink in the middle?

This can happen if the batter is overmixed, which develops gluten and makes the cake tough, or if the oven door is opened too early. Also, make sure your baking powder and baking soda are fresh—old leaveners can cause sinking.

Can I use a different type of cocoa powder?

Yes, natural or Dutch-processed cocoa both work. Natural cocoa is more acidic and reacts with baking soda, while Dutch-processed is milder. If you use Dutch-processed, you may want to add 1/4 teaspoon more baking soda to ensure proper rising.

What if I don't have buttermilk?

You can make a quick substitute by adding 1 tablespoon of lemon juice or white vinegar to 1 cup of milk and letting it sit for 5 minutes. This will give the same tangy, tenderizing effect.

Read next