Chocolate Coconut Cake

This post may contain affiliate links. Read the full disclosure here.

Featuring a made-from-scratch chocolate cake layered with coconut pastry cream and covered in coconut buttercream frosting, this Chocolate Coconut Cake is a true show stopper.

Chocolate coconut cake with dripping ganache and coconut flakes on top sitting on a cake stand.

A Decadent Chocolate Coconut Cake

This decadent dessert features chocolate cake layers that are thick, dense, light, and super moist, all at the same time. In between the cake layers is a simple coconut pastry cream. Then, the entire cake is covered in my popular coconut buttercream frosting. It’s a lusciously silky texture that glides across the tongue.

This cake is no more complicated than a regular layered cake. The ingredients and instructions may look intimidating but it really isn’t that difficult to prepare.

The chocolate cake layer is my favorite chocolate cake to date. The flavor is intense! With melted baking chocolate and cocoa powder, it has a dark, rich color and taste – very similar to a brownie.

If all of this sounds like too much chocolate (is that possible?!), don’t worry – the chocolate overload is all balanced out by the coconut filling and silky coconut buttercream.

If you’re searching for a dessert to impress the guests, or you just love the combo of chocolate and coconut, this Chocolate Coconut Cake is for you.

If you love coconut, you might want to try my German Chocolate Cake, coconut cream pie and pineapple coconut cake.

If you’re not a fan of chocolate, give my plain coconut cake a try. It’s decadent and full of coconut flavor.

A slice of three layer coconut cake on a white plate with a fork taking out a bite.

What You’ll Need

Don’t let this long ingredient list intimidate you – the majority of the ingredients appear on more than one list.

  • All-purpose flour
  • Baking soda – Only a small amount of baking soda is needed for this cake to rise.
  • Salt – Enhances the other sweet flavors in this chocolate cake.
  • Semisweet chocolate – You can also use bittersweet chocolate but I don’t recommend unsweetened. Be sure to use baking chocolate and not chocolate chips.
  • Unsalted butter
  • Granulated sugar
  • Eggs – Whole eggs and yolks are needed for various layers of the cake.
  • Unsweetened cocoa powder – Gives the rich chocolate taste throughout the cake. You’ll want natural cocoa powder, not Dutch-processed cocoa.
  • Unsweetened coconut milk – I love the flavor this adds to the cake. However, you can also use whole milk.
  • Cornstarch – Helps thicken the filling.
  • Coconut extract – Ensures there’s coconut flavor in every bite.
  • Shredded coconut – Sweetened coconut is the best option for the filling and garnish.
  • Coconut buttercream frosting – The frosting has just enough coconut flavor to enhance the flavors in the filling.
  • Light corn syrup – This makes the glaze shiny but is completely optional.

How to Make Chocolate Coconut Cake

Read through the instructions before you begin so you are prepared for what’s to come. I recommend this with any recipe to avoid errors while in the middle of baking.

Make the cake batter. Whisk together the flour, baking soda, and salt. Melt the chocolate in a bowl over a pot of simmering water, stirring until melting and smooth.

In another bowl, beat the butter and sugar together until light and fluffy. Beat in the eggs one at a time, followed by the vanilla. Mix in the cocoa powder and melted chocolate.

Add half of the flour, then the coconut milk, and the remaining flour. Beat just until combined.

Bake. Divide the batter between 3 prepared cake pans, taking care to ensure the batter spreads all the way to the edges of the pan. Bake for 28 to 30 minutes. A toothpick inserted into the center should come out clean. Cool completely.

Make the coconut filling. Simmer the coconut milk. In another bowl, whisk the egg yolks, sugar, cornstarch, and extract. Slowly pour in the hot milk, whisking constantly.

Return to heat until thickened, then pour through a fine-mesh sieve. Stir in the butter. Place plastic wrap on top of the cream, making sure it is touching. Cool completely in the fridge, then stir in the shredded coconut.

Layer the cake. Place a cake layer on a serving plate. Spread half of the pastry cream on top. Top with another cake layer, then the remaining pastry cream and the final cake layer.

Add the frosting. Prepare the coconut buttercream according to the direction in the recipe, then spread over the top and sides of the cake.

A layered chocolate coconut cake on a serving plate

Make the chocolate glaze. Melt the chocolate, butter, and corn syrup in a bowl over simmering water, stirring until smooth. Remove from heat and let cool for 5 minutes.

Spoon ¼ cup of the chocolate glaze over the top of the cake then drizzle the remaining glaze along the edge so it drips down the sides. Sprinkle shredded coconut over the top.

If you love the look of drip cakes, you should see my chocolate peppermint cake. It’s a showstopper!

Up close view of chocolate coconut cake.

Tips for Success:

Before you jump into making this chocolate layer cake, here are a few things to keep in mind.

  • Make sure all cake ingredients are at room temperature. The batter will blend together easier when all ingredients are at the same temperature.
  • Let the cake layers cool completely before you assemble the cake. The cake will crumble if you try to handle it before it’s completely cooled.
  • In a pinch, freeze the cake layers.If you are in a hurry, carefully wrap the warm cake layers in plastic wrap and freeze them for 30 minutes to an hour to speed up the cooling process and make the layers easier to work with.
  • Chill the frosted cake. I like to pop my frosted cake in the refrigerator for a few hours before adding the glaze. The warm glaze will set quicker when it comes into contact with the cold cake. This ensures those drips down the sides don’t run all the way to the bottom of the cake.

Serving Suggestions

This chocolate coconut cake is perfect for a party or friendly gathering. It can easily serve 10 to 12 people, maybe more. I like to display it on a nice serving plate, to impress the guests just a bit.

Since this cake is so rich and has so many layers, you can cut the slices thinner than you would normally.


Can I Make This in Advance?

With recipes that have several parts that require cooling, I like to prepare as much in advance as possible, so I’m not spending hours just waiting for things to cool. Luckily, several parts of this chocolate layer cake can be prepared ahead of time.

  • The cake layers will last in the fridge for up to 2 days before assembling the cake. Wrap tightly in plastic wrap.
  • The cake layers can also be frozen for up to 2 weeks. Triple wrap in plastic wrap to avoid freezer burn. Thaw on the counter slightly before use.
  • Both the frosting and filling can be prepared and refrigerated a day before use.

How to Store Extras

  • How to store leftover cake. The fully assembled cake will last for up to 3 days in the fridge. Bring to room temperature just before serving.
  • Can I freeze this cake? Yes, the frosted cake (without the glaze) cake be frozen for 2 months. Thaw in the fridge then allow it to come to room temperature before serving.

More Chocolate Recipes

  1. Chocolate Easter Cake
  2. The Best Chocolate Cupcakes
  3. Double Chocolate Muffins with Raspberries

Chocolate Coconut Cake

4.49 from 278 votes
Chocolate coconut cake with dripping ganache and coconut flakes on top sitting on a cake stand.
Featuring a made-from-scratch chocolate cake layered with coconut pastry cream and covered in coconut buttercream frosting, this Chocolate Coconut Cake is a true show stopper.
Jen Sobjack
Prep Time 1 hour 5 minutes
Cook Time 45 minutes
Total Time 1 hour 50 minutes
Serving Size 24

Ingredients

For the cake

  • 2 ½ cups (325 g) all-purpose flour
  • 1 teaspoon baking soda
  • ½ teaspoon salt
  • 4 ounces (113 g) semisweet chocolate, finely chopped
  • 1 cup (226 g) unsalted butter, softened
  • 2 cups (400 g) granulated sugar
  • 4 large eggs, room temperature
  • 1 teaspoon vanilla extract
  • cup (56 g) unsweetened cocoa powder, plus more for dusting the pan
  • 1 ½ cups (360 ml) canned unsweetened coconut milk, room temperature

For the filling

  • 1 cup (240 ml) canned unsweetened coconut milk
  • 4 large egg yolks
  • cup (67 g) granulated sugar
  • 2 ½ tablespoons cornstarch
  • 1 teaspoon coconut extract
  • 2 tablespoons unsalted butter, cut into pieces
  • ¾ cup (90 g) shredded sweetened coconut

For the glaze

  • 4 ounces (113 g) semisweet chocolate, coarsely chopped
  • 4 tablespoons (113 g) unsalted butter, cut into pieces
  • 2 tablespoons light corn syrup
  • ½ – 1 cup (43 – 85 g) shredded sweetened coconut

Instructions

Make the cake

  • Heat the oven to 325°F. Spray 3 8-inch round pans with nonstick spray. Line the bottoms with parchment paper cut into a circle to fit the pan. Spray the parchment paper with nonstick spray and dust the pan lightly with cocoa powder. Tap out any excess and set aside.
  • In a medium bowl, combine the flour, baking soda, and salt. Stir with a whisk and set aside.
  • Add the chocolate to a small heatproof bowl and set it over a pot of barely simmering water. Stir continuously until melted and smooth. Remove from heat. Set aside to cool.
  • Using a stand mixer fitted with a paddle attachment or a handheld electric mixer, beat the butter and sugar together at medium-low speed until light and fluffy. Beat in the eggs, one at a time, mixing well after each addition. Scrape down the sides of the bowl as needed. Beat in the vanilla. (The mixture may look curdled, this is normal and will come together once the rest of the ingredients are added.)
  • Add the cocoa powder and melted chocolate and mix until well incorporated. With the mixer set to low speed. gradually add half the flour mixture, followed by the coconut milk, and then the remaining flour mixture. Beat just until combined. The batter will be thick.
  • Divide the batter evenly between the 3 prepared pans. Use an offset spatula to spread the batter all the way to the edges of the pan and smooth out the surface. Bake for 28 to 30 minutes, or until a toothpick inserted into the center comes out with only a few dry crumbs. Cool the cake in the pans for 10 minutes, then invert the cakes onto a wire rack to cool completely. Peel the parchment paper off the bottoms before filling.

Make the filling

  • Bring the coconut milk up to a simmer in a medium saucepan. In a separate bowl, whisk the egg yolks, sugar, cornstarch, and extract until blended and pale in color. Slowly pour in the hot milk while whisking continuously. Return the mixture back to the pot and whisk over medium-high heat until thickened, about 3 minutes. Pour the thickened pastry cream through a fine-mesh sieve then stir in the butter until fully melted. Place a piece of plastic wrap directly on top of the pastry cream, making sure it is touching the surface, and refrigerate until cooled completely. Stir in the shredded coconut.
  • Place one of the cake layers on a serving plate, bottom side up. Spread half the pastry cream over the top, leaving a ½-inch margin around the edge. Top with another cake layer. Repeat with remaining pastry cream and top with the third cake layer.

Make the frosting

  • Prepare the coconut buttercream frosting according to the recipe instructions. Spread the frosting over the top and sides of the cake. Using a large cake scraper, remove frosting from the sides of the cake until the cake layers begin to show through.

Make the glaze

  • Place the chocolate, butter, and corn syrup in a medium heatproof bowl set over a pot of barely simmering water. Stir until melted and smooth. Remove from heat and let cool for 5 minutes.
  • Spoon ¼ cup of the chocolate glaze over the top of the cake. Drizzle the remaining glaze along the edge of the cake all the way around, allowing it to drip down the sides. Sprinkle shredded coconut over the top.

Notes

  • Semisweet chocolate: You may use bittersweet chocolate instead. I don’t recommend using unsweetened chocolate. Avoid using chocolate chips since they don’t melt as easily as bars of baking chocolate.
  • Unsweetened cocoa powder: Natural cocoa powder works best for this recipe. It’s acidic and will react with the baking soda to give the cake rise. Dutch-processed cocoa will not work the same way.
  • Coconut milk: This adds wonderful flavor to all layers of the cake. However, you may use whole milk if needed.
  • Corn syrup: It adds shine to the chocolate glaze and may be omitted if necessary.
Make ahead tip
  1. Wrap baked and cooled cake layers tightly in plastic wrap and store them in the refrigerator. Assemble and frost the cake within 2 days. Or layers can be triple wrapped in plastic wrap and frozen for up to 2 weeks. Leave wrapped and set on the counter to thaw slightly before use.
  2. The frosting and filling can be prepared, covered, and refrigerated for up to 1 day before use.
  3. Once the cake has been assembled, cover it and keep it stored in the refrigerator for up to three days. Bring it to room temperature just before serving.
  4. The frosted cake can be frozen for up to 2 months. Thaw it overnight in the refrigerator and let it come to room temperature just before serving. 

Nutrition

Serving: 1slice | Calories: 395kcal | Carbohydrates: 41g | Protein: 5g | Fat: 25g | Saturated Fat: 18g | Polyunsaturated Fat: 1g | Monounsaturated Fat: 5g | Trans Fat: 0.4g | Cholesterol: 88mg | Sodium: 116mg | Potassium: 213mg | Fiber: 3g | Sugar: 26g | Vitamin A: 411IU | Vitamin C: 1mg | Calcium: 28mg | Iron: 2mg

The nutrition information provided is for convenience and as a courtesy only. It is not guaranteed to be accurate because nutrition information can vary for a variety of reasons. For precise nutritional data use your preferred nutrition calculator and input the exact ingredients and brands you used in the recipe.

Course: Dessert
Cuisine: American

146 Comments

  1. Constance says:

    I made the cake layers yesterday (tried a little that was left on the parchment and it was DELICIOUS) and I’m about to start on the filling and frosting. I’m looking through your photos and it looks like you pipe a barrier at the edge of the layers to keep the filling in and I was just wondering what you did there on the outside of the filling for the layers. I wasn’t sure if it was the filling before the coconut was added or if it was frosting. Thanks for any insight!

    1. Jen Sobjack says:

      I used the frosting to pipe a border to hold the filling.

  2. Paula Spilsbury says:

    I have made this cake several times and everyone loved it…thank you Jen!
    I am now tasked to make a gluten-free/dairy-free cake for Christmas and this one stood out to me as a winner. I know I can sub coconut butter for regular butter and make the cake with gluten-free flour.
    My question is, have you ever used dairy-free chocolate chips? Also, if so, are there any special instructions on melting temp/time for the glaze?
    Thank you-
    Paula

    1. Jen Sobjack says:

      I’m sorry, I have not used dairy free chocolate chips.

      1. Paula Spilsbury says:

        5 stars
        I will say that the dairy free chocolate did not quite give as good as a drizzle as regular chocolate ganache. Everyone liked it but I was a bit disappointed. I will just skip the ganache as your recipe for this cake is spot on!

  3. I made this for my birthday and it’s my forever favorite cake. It’s so rich and so so good. Thank you for sharing this recipe.

  4. 5 stars
    This cake is so good. I love the coconut cream. One thing that was challenging was the egg curdled , when I pushed it the cream through the sieve, I wasn’t sure if I should use the curdled part. So I didn’t have enough cream filling! But next time I know to watch out for the egg.
    The ganache – I wasn’t sure if I needed it to cool a couple of seconds before adding to the cake. But it seemed a little runny.

  5. 5 stars
    I made this for my husband’s coworker who was celebrating a birthday. They requested chocolate and coconut so I decided to try this recipe. It was delicious! I used coconut extract in the buttercream to boost the coconut flavor but everything else was perfect.

  6. mel Mirande says:

    I made this cake and used Simple Truth gluten free flour and it worked beautifully. very good cake, the coconut cream filling, the frosting and the ganache. beautiful and just sweet enough.

  7. Cheri Markham says:

    I am in the middle of constructing my cake to mail to a child hundreds of miles away. I did freeze the cake layers last night, and I already prepared the (absolutely delicious!) filling — exactly as instructed, and refrigerated overnight. But today the filling has a very liquid consistency. I have not added the coconut yet, but what should I do about the filling? Will the coconut help? Do I need to start from scratch, or is there something I can do to save it? Thanks!

    Cheri

    1. Jen Sobjack says:

      Did you cook it until it was thickened? It may take longer than 3 minutes depending on your stovetop. The filling should be a little soft like pudding, but it shouldn’t be liquidy. I’m afraid you’ll have to start over.

  8. Katherin M says:

    Could I do two 9-inch cakes instead of 3 8-inch?

    1. Jen Sobjack says:

      Yes, that should be fine. You’d need to adjust the bake time slightly.

  9. Made this cake for my 70th birthday – loved it & so did everyone at the party! I had just found a vintage cake stand, so it was pretty elegant, not my usual style, lol! I used 85% cocoa Lindt bars because most cakes are way too sweet for me. Worked well – VERY bittersweet chocolate flavor with sweet counterpoints in filling & frosting, bittersweet glaze. I always use half cream cheese, half butter for buttercream frosting – I find pure butter too rich & a little boring! I did have to stabilize the layers with 2 bamboo skewers while I frosted it – filling was maybe a little soft (should have left in frig longer) & I like a firm frosting, so I added just one T of cream. Wonderful cake!

  10. To be completely honest in my review I must admit that I did not eat this cake. I cannot stand coconut so this was a labor of love for my husband’s birthday and for family members that love coconut. Their opinion of this cake? It was awesome! My niece said she was going to hide it in her room so no one else could have any.

    This cake recipe may look intimidating with all the steps but it’s really not. I made the cake, pastry cream, and frosting the day before and refrigerated until I was ready to assemble. I did need to whip the buttercream back up because it had gotten stiff so I added a little more coconut cream and put it back in my mixer. I made the chocolate topping first, put the cake together, and by the time I was done the chocolate was ready to spread on top. Great recipe!

Leave a Reply

Your email address will not be published. Required fields are marked *

Recipe Rating