Go Back
German Chocolate Cake Bars Recipe

German Chocolate Cake Bars

Steven
These German Chocolate Cake Bars capture all the decadent flavors of the classic layer cake in a convenient, portable bar form. A rich, fudgy cocoa-based base is topped with the signature gooey coconut-pecan mixture, then baked together until golden and irresistible. Perfect for potlucks, parties, and bake sales, these bars require no complicated layering or frosting, yet deliver every bit of that beloved German chocolate cake experience in every single bite.
Prep Time 20 minutes
Cook Time 50 minutes
Total Time 1 hour 10 minutes
Course Dessert
Cuisine American
Servings 24 bars
Calories 245 kcal

Equipment

  • 9x13 inch baking pan - Use a heavy-duty pan for even heat distribution
  • Parchment paper - Or aluminum foil; leave overhang on two sides for easy removal
  • Large mixing bowl - For the chocolate base dry and wet ingredients
  • Medium mixing bowl - For combining wet ingredients
  • Whisk
  • Electric mixer - Hand or stand mixer; can also mix by hand
  • Medium saucepan - For cooking the coconut-pecan topping
  • Wooden spoon or silicone spatula - For stirring topping constantly while cooking
  • Offset spatula - For spreading topping evenly over the baked base
  • Wire cooling rack
  • Sharp knife - Thin-bladed; wipe clean between each cut for neat squares

Ingredients
  

For the Chocolate Base

  • cups all-purpose flour - 220g
  • ¾ cup unsweetened cocoa powder - 90g; Dutch-process recommended for best flavor
  • cups granulated sugar - 300g
  • 1 tsp baking soda
  • ½ tsp salt
  • 2 large eggs - room temperature
  • 1 cup buttermilk - 240ml; room temperature
  • ½ cup vegetable oil - 120ml
  • 2 tsp vanilla extract
  • ¾ cup boiling water - 180ml; activates cocoa for moist texture

For the Coconut-Pecan Topping

  • 14 oz sweetened condensed milk - 1 can, 397g
  • 2 large egg yolks
  • ½ cup unsalted butter - 113g; 1 stick
  • 1 tsp vanilla extract
  • cups sweetened shredded coconut - 120g
  • cups chopped pecans - 170g; toasted for best flavor

Optional Garnish

  • ½ cup chocolate chips - 85g; semi-sweet recommended

Instructions
 

  • Preheat oven to 350°F (175°C) and position the rack in the center. Line a 9x13-inch baking pan with parchment paper leaving an overhang on two sides, then lightly grease the parchment.
  • In a large bowl, whisk together the flour, cocoa powder, sugar, baking soda, and salt, breaking up any lumps in the cocoa. Create a well in the center for the wet ingredients.
  • In a medium bowl, whisk together the eggs, buttermilk, vegetable oil, and vanilla extract until smooth and well emulsified.
  • Pour the wet ingredients into the well of the dry ingredients and mix on low speed, then carefully stream in the boiling water while stirring continuously. Mix just until no streaks of flour remain — the batter will be thin.
  • Pour batter into the prepared pan, spread evenly, and tap on the counter to release air bubbles. Bake for 25–30 minutes until edges are set and a toothpick inserted in the center comes out with just a few moist crumbs.
  • In a medium saucepan over medium heat, combine sweetened condensed milk, egg yolks, butter, and vanilla, stirring constantly for 8–10 minutes until thickened and light caramel in color. Remove from heat and stir in coconut and pecans.
  • Immediately pour and spread the coconut-pecan topping evenly over the hot base using an offset spatula, sprinkle with chocolate chips if using, then return to the oven and bake 15–20 minutes until the topping is golden and set.
  • Cool on a wire rack for at least 1 hour, then refrigerate for 2–3 hours until fully chilled. Lift out using the parchment overhang, transfer to a cutting board, and cut into 24 bars, wiping the knife clean between cuts.

Notes

  • Use room temperature eggs and buttermilk for a smooth, properly emulsified batter that bakes evenly.
  • Do not skip the boiling water — it blooms the cocoa powder and is essential for the moist, fudgy texture of the base.
  • Stir the topping constantly while cooking to prevent the egg yolks from scrambling; the mixture should coat the back of a spoon.
  • Apply the topping immediately while the base is hot so the two layers bond together properly during the second bake.
  • Toast pecans at 350°F (175°C) for 5–7 minutes before adding to the topping to intensify their flavor and add extra crunch.
  • Refrigerate bars before cutting for clean, neat squares; a sharp knife wiped between cuts gives professional-looking results.
  • Make ahead: Bars taste even better the next day as flavors meld. Prepare up to 2 days in advance and refrigerate in an airtight container.
  • Storage: Keep refrigerated in an airtight container for up to 5 days, or freeze individually wrapped bars for up to 3 months.
  • Substitutions: Walnuts can replace pecans, and a boxed German chocolate cake mix can be used for the base — simply add the coconut-pecan topping during the last 15–20 minutes of baking.
  • For extra indulgence, drizzle melted dark chocolate or salted caramel sauce over the cooled bars before serving.
Keyword chocolate dessert bars, coconut pecan bars, easy german chocolate cake, german chocolate cake bars, potluck dessert bars