A classic gluten-free German chocolate cake with layers of decadently rich chocolate cake, toasted coconut pecan custard frosting, and a swirl of chocolate buttercream.

Why You'll Love this Gluten-Free German Chocolate Cake
This deep dark chocolate cake and butterscotch-like coconut pecan frosting make this the perfect dessert. Its gluten-free chocolate cake layers are rich and moist, the perfect backdrop for the star of the show: a caramel-y toasted coconut pecan custard frosting. A swirl of chocolate buttercream on top adds a sweet creamy chocolate that ties it all together.
The quintessential element of a German chocolate cake is the coconut pecan frosting. Shredded coconut and pecans get folded into a custard made of evaporated milk, sugar, butter, and egg yolks.
While most recipes call for sweetened coconut, my version uses unsweetened coconut. The texture of unsweetened shredded coconut is fine and not at all stringy or chewy like sweetened coconut, but instead seems to melt when you eat it. It also creates a less cloyingly sweet frosting with more depth of flavor.
For the same reason, I prefer to use dark brown sugar rather than granulated sugar, giving the frosting a deeper, more butterscotch-like flavor. For best results, look for organic dark brown sugar which has a higher molasses content.
A Key Ingredient to this Recipe
While the original German's Chocolate Cake uses butter, more modern chocolate cakes call for oil, which lends itself to a moister crumb. Rather than melted baking chocolate, my gluten-free version uses dutch-processed cocoa powder to create a rich chocolate cake with a moist tender crumb.
The base for this cake is adapted from my favorite gluten-free chocolate cake. Rather than granulated sugar and milk, this version instead uses dark brown sugar and sour cream to add more moisture and structure to the cake, allowing it to withstand the weight of the coconut pecan custard filling and topping.
GLUTEN-FREE FLOURS USED
Gluten-Free oat flour adds the lightness and structure for the fluffy crumb. It keeps the cake sponge super moist, but not dense.
- Option: grind up gluten-free rolled oats in a food processor or blender, then sift out any big pieces. Make sure to measure this by weight as homemade gluten-free oat flour is less finely ground so the volume per weight will be different.
- Sub in by weight: Bob's Red Mill 1-to-1 all-purpose gluten-free flour blend.
SWEET RICE FLOUR
Made from sticky rice, sweet rice flour is distinctively different than white rice flour or brown rice flour, and despite its name, it's not sweet. Sweet rice flour is the same flour used to make mochi, and as such, its stickiness helps to bind the cake together, creating chewiness like a classic cake recipe. Make sure the rice flour your grab says "sweet rice flour" and not "white rice flour," which will have drastically different baking results.
MILLET FLOUR
Millet flour is a neutral flour here to balance the others out so the cake isn't too moist or gummy.
- Sub in by weight: teff flour, brown or white rice flour, or Bob's Red Mill 1-to-1 all-purpose gluten-free flour blend.
- Sub in 32g coconut flour: I tested a version with coconut flour to play up the coconut flavor in the filling. The results are almost indistinguishable. When subbing coconut flour, you need less coconut flour because it is much more absorbent.
Does this cake need xanthan gum?
Nope! The combination of flours along with the soft cakiness of the cocoa powder adds enough structure to create a cake crumb that's light with the classic chew of traditional gluten-filled cake.
Adding the Chocolate Buttercream
Different recipes will vary on whether they call for a layer of chocolate buttercream in addition to the coconut pecan custard. I find the buttercream to be the key to balancing the flavors and texture of the deep dark chocolate cake with the sweet coconut pecan custard.
Just a creamy buttercream layer on top will do the trick! Topped with more coconut pecan custard of course.
Recipe
Moist & Rich Gluten-Free German Chocolate Cake
Ingredients
- ½ cup + 3 tablespoons (110 g) Bob's Red Mill sweet rice flour, different from "white rice flour" or "brown rice flour"
- ½ cup (54 g) Bob's Red Mill gluten-free oat flour
- ¼ cup + 2 tablespoons (56 g) Bob's Red Mill millet flour
- ¾ cups + 1 tablespoon (86 g) unsweetened Dutch-processed cocoa powder
- 1½ cups (300 g) dark brown sugar, preferably organic
- 1½ teaspoons baking powder
- 1 teaspoon baking soda
- 1 teaspoon kosher salt
- 2 large eggs, room temperature
- 3 tablespoons coconut oil, melted and cooled
- 1½ teaspoon pure vanilla extract
- ⅔ cup (160 g) sour cream, room temperature (see option below for dairy-free variation)
- ⅔ cup hot water
- ⅔ cup (133 g) dark brown sugar, preferably organic
- 5 oz evaporated milk
- 5 tablespoons unsalted butter, melted
- 2 large egg yolks
- ⅔ cups (62 g) Bob's Red Mill unsweetened shredded coconut
- ¾ cups (94 g) chopped pecans, toasted
- ¾ teaspoon pure vanilla extract
- ¼ teaspoon kosher salt
- ½ cup unsalted butter, room temperature
- 1½ cups (180 g) powdered sugar, sifted
- ¼ cup (27 g) unsweetened Dutch-processed cocoa powder
- 1 teaspoon pure vanilla extract
- 1-2 tablespoons whole milk or heavy cream
- Pinch kosher salt
INSTRUCTIONS
- Prepare the cake layers. Preheat the oven to 350°F. Lightly oil two 8-inch cake pans or 3 6-inch cake pans and line them with a round of parchment paper.
- Whisk the dark brown sugar, cocoa powder, sweet rice flour, oat flour, millet flour, cocoa powder, baking powder, baking soda, and salt together in a medium bowl.
- In a measuring cup, whisk two eggs into the oil along with vanilla extract until smooth. Pour this mixture into the dry ingredients followed by the sour cream and stir lightly.
- Pour the hot water into the dry ingredients and mix until the batter is completely smooth, scraping up the sides and bottom to completely incorporate. Divide the batter among the prepared cake pans.
- Bake for about 28-30 minutes, or until a toothpick inserted in the center comes out clean or with just a few moist crumbs and the center bounces back when gently poked. It's best to err on the side of an extra minute or two to be sure - this cake is very moist so it won't overbake very easily!
- Let cool in the pans for 5-10 minutes, then overturn the cakes onto wire racks to cool completely.
- Meanwhile, prepare the coconut pecan custard. Toast the unsweetened shredded coconut in a dry pan, stirring constantly, until golden brown, about 3-5 minutes. Transfer to a bowl. Unsweetened coconut will darken quickly, so take care not to burn it.
- In a small saucepan, whisk together dark brown sugar, evaporated milk, melted butter, and egg yolks. Bring it to a boil, and cook over medium heat, whisking constantly, until it thickens to coat the back of a spoon, about 5 minutes.
- Remove from heat and stir in the toasted pecans, toasted coconut, vanilla extract, and salt. Transfer to a bowl and cool completely before using. The custard will thicken as it cools. You can speed up the cooling by placing it in the fridge.
- Meanwhile, prepare the chocolate buttercream. In the bowl of a stand mixer fitted with the paddle attachment, cream the butter over medium speed.
- Sift together the powdered sugar, cocoa powder, and salt. Slowly add this to the butter, in 2 batches, beating until incorporated. Add the vanilla extract and mix until smooth. Add the milk or cream, starting with just 1 tablespoon and adding additional milk or cream as needed until the frosting is smooth and spreadable. It should be somewhat glossy, but still hold swirls.
- Once the cake layers and custard is cool, assemble the cake. Place one cake layer on a cake stand or plate. Spread ⅔ of the cooled coconut pecan custard in an even layer all the way to the edges. Top with the second cake layer. Swirl chocolate buttercream over the top, leaving a thicker edge of frosting around the outside. Top the cake with the remaining ⅓ of the cooled coconut pecan custard. Enjoy! To make the cake easier to cut, chill the cake for 20-30 minutes before slicing.
- Store any leftovers in an airtight container at room temperature for up to 3 days.
Christina -
Wow. This looks amazing. I’m going to make it for Christmas dinner. Would it be ok made the day before? Thanks!
Diana -
Outstanding! And I don’t normally eat GF cake.
Lily Diamond -
The coconut pecan custard is EPIC!! I cannot wait to make this again.
todd -
Ooey Gooey Chocolate Goodness!! Gonna try to bake this with Fiona soon :)