This amazing Coconut Layer Cake is a coconut hat trick - it's made with coconut milk, coconut oil, and coconut flour, and the frosting is a melt-in-your-mouth fluffy ermine frosting made with coconut milk. The whole cake is then covered with sweetened shredded coconut. This cake is moist and tender and a coconut lover's dream.

Want to Save This Recipe?
Enter your email below and I'll send it to your inbox. Plus get new and recommended recipes sent to you every week!
By submitting this form, you consent to receive emails from Bakes by Brown Sugar.
Jump to:
This cake is great for a special occasion or any time you need a great tasting cake. I make coconut cake every year for my mother's birthday because it's her favorite cake followed by my Lemon Bundt Cake, a family favorite from my aunt.
This coconut cake is from Serious Eats. Thank you Stella Parks for an amazing recipe. Every year when I make a coconut cake for my mother's birthday and for several years I tinkered with the recipe but this is the final recipe and the go-to for my mother's birthday cake. Another version is Coconut Cake with Lime Curd Filling.
Why This Recipe Tastes So Good
This coconut layer cake is the perfect coconut cake full of coconut flavor. The cake is made with coconut flour, coconut oil, and coconut milk; and the coconut ermine frosting is made with coconut milk. The combination of coconut oil and butter creates a dense moist cake that is absolutely delicious. It's the best coconut cake you'll ever have and definitely a cake for coconut lovers.
Coconut Cake Ingredients
Here are the ingredients for the coconut cake. If you can't get coconut flour you can substitute an equal amount of all-purpose flour.
- Unbleached All-Purpose Flour. I use Bob's Red Mill Unbleached Flour and weigh the flour to make sure I'm adding the right amount.
- Coconut Flour. I used Bob's Red Mill Coconut Flour to add even more coconut flavor to this cake. If you don't have or can't find coconut flour, replace it with an equal amount of all-purpose flour (by weight). Coconut flour can go bad (it will have a somewhat bitter flavor when it does). Follow the storage instructions on the bag and check the expiration date before using it.
- Coconut Milk. Use full-fat coconut milk for this recipe. Coconut milk fat often hardens at the top of the can. To ensure the entire can is liquid and any coconut fat is melted, fill a container with warm water and place the unopened can upside down in the warm water.
- Unsalted Butter and Extra Virgin Coconut Oil. The coconut oil and butter add flavor and makes the cake tender. Both should be at room temperature to ensure that they mix well into the batter. The coconut oil should be 70-72°F and the butter should be at 68-70°F. Don't use refined coconut oil. It's be processed so that it doesn't have any coconut flavor.
- Eggs. Use large eggs, which weigh about 50 grams each. If using medium or jumbo size eggs, weigh the eggs to get 150 grams. Using whole eggs gives the cake a golden color. If you want an all-white cake, use 6 egg whites.
How to Make This Cake
Before starting this recipe make sure the eggs, butter, coconut milk, and coconut oil are all at room temperature. The temperature guidelines are listed in the recipe. Use the butter temperature range for the eggs and milk.
Start by prepping and measuring out all your ingredients. This step is called mise en place, meaning everything is set up and in its place.
In the bowl of a stand mixer with the paddle attachment cream the butter and sugar together. Don't rush this step as it is important to introduce air bubbles into the cake batter.
Add the eggs one at a time, beating to thoroughly incorporate the eggs into the batter. Adding the eggs one at a time ensures that they mix with the creamed butter and sugar and thoroughly emulsify.
Add the flour mixture and coconut milk, alternating the addition of these ingredients. Mix in the dry ingredients and milk on low speed to avoid the development of gluten, which will make the cake tough.
Divide the cake batter evenly between the prepared cake pans and bake until a cake skewer comes out clean when inserted into the center of the cake or the cake temperature registers 202°F in the center.
Remove the cakes from the oven and let them cool on wire racks. Cover the cooling racks with a large square of parchment paper and invert the cakes onto the parchment paper-lined racks.
Let the cake layers completely cool before frosting them.
What is Ermine Frosting
Ermine Frosting is a frosting made with flour and cornstarch. It is also called boiled flour frosting, flour frosting, or boiled milk frosting because you boil flour, milk, and sugar together until it thickens, let it cool, and then whip in butter, lots of butter. One article I read called it Miracle Frosting. I suppose it got that name because this combination of ingredients makes a truly luxurious frosting.
This frosting recipe has been around since the 1920's. It's an amazing easy-to-make frosting that's not too sweet. Its texture and taste are a cross between whipped cream and Swiss meringue buttercream and it's my favorite right after Swiss Meringue buttercream.
I've also used this frosting recipe to make a strawberry ermine frosting for my Fresh Strawberry cake recipe.
How to Make Ermine Frosting
This frosting is the best creamy coconut frosting you'll ever taste. Because of the coconut milk, it has a delicious sweet coconut flavor with the richness of regular buttercream.
The frosting contains the following ingredients.
- Granulated Sugar. Adds sweetness to the frosting
- Flour and Cornstarch. The flour and cornstarch thicken the slurry and helps give it a nice creamy texture.
- Coconut Milk. Coconut milk is the flavor bomb in this recipe. If you don't have coconut milk you can use regular whole milk.
- Kosher Salt. The salt balances the sweetness of the recipe.
- Unsalted Butter. The butter gives this frosting its rich, creamy texture.
Combine all the ingredients except the butter in a 3 quart saucepan. Cook these ingredients over medium heat whisking constantly until the mixture is thickened.
Once it is thickened, cool the slurry to room temperature, before adding it to the whipped butter. Once the butter and slurry are combined, whip it with the whisk attachment for about 8 minutes on medium-high speed until it is light and fluffy.
The flour slurry can be made the night before and chilled. Once it is thoroughly cooked, put it in a heatproof bowl, cover with plastic wrap, and chill. Before combining it with the whipped butter bring it to room temperature, warm it slightly over a pan of simmering water and stir until it becomes more fluid and is about 68-72°F.
This frosting is so good and so easy to make, that if you've never made it before, I think it will become a new favorite.
Assembling the Coconut Cake
When assembling the cake reserve 1 cup of frosting for decorations, 1/4 cup for just eating straight with a spoon, and use 1-1/2 cups for the center of the cake. The frosting really is that good, that you might as well just set some aside for tasting.
You always want to crumb coat the top and sides of the cake layers to prevent cake crumbs from getting into the final frosting layer. After the second layer is added to the stack, spread a thin layer of frosting over the sides and the top of the cake. The frosting should be thin enough that you can still see the cake. Refrigerate for 30 minutes, then use the remaining frosting to frost the sides and top of the cake.
Decorate the cake with the remaining frosting and then coat the sides of the cake with the sweetened toasted coconut.
Pro Tips for Making This Recipe
- Line the bottom of each pan with parchment paper to prevent the cake from sticking and to ensure the cakes come out clean.
- The butter, eggs, and coconut oil should be at room temperature so that these ingredients emulsify.
- Sometimes coconut milk forms a solid layer of coconut fat at the top of the can. To ensure the coconut milk blends in easily with the other ingredients, place the unopened can in a pan or bowl of warm water top-side down for about 10 minutes before you're ready to use it. This step will melt that top layer of coconut fat.
- Use full-fat coconut milk for this recipe. The success of this recipe is based on the percentage of fat in the milk. The results may be different if low-fat coconut milk is used.
- When the cake is done it will start to pull away from the sides of the cake. You can also use an instant-read thermometer to check the temperature in the center of the cake. The temperature should be about 202°F.
More Celebratory Cake Ideas
Our family usually has coconut cake for birthday parties and other family get togethers. If you're looking for more cake ideas, check out these delicious cakes:
This cake is so amazing. If you love coconut you must make this cake, it's a coconut lover's dream. If you make this cake, please let me know what you think by leaving a comment below. And if you post a picture to Instagram tag me @bakesbybrownsugar and use the hashtag #bakesbybrownsugar.
Happy Baking!
Coconut Layer Cake with Coconut Buttercream
Equipment
- 2 9-inch round cake pans
Ingredients
Cake Release
- 1 tablespoon (14 grams) unsalted butter melted
- 1 tablespoon all-purpose flour
Coconut Cake
- 2 2/3 cups (340 grams) unbleached all-purpose flour
- 2/3 cup (57 grams) coconut flour
- 2 1/4 cups (450 grams) plain or toasted sugar
- 4 teaspoons baking powder
- 2 1/4 teaspoons kosher salt
- 8 tablespoons (113 grams) unsalted butter room temperature, 60-65°F
- 2/3 cup (113 grams) virgin coconut oil creamy and soft room temperature, about 72°F
- 3 large (150 grams) large eggs room temperature
- 1 tablespoon pure vanilla extract
- 2 1/4 cups (510 grams) full-fat coconut milk room temperature
Coconut Ermine Frosting
- 1 1/2 cups (300 grams0 granulated sugar
- 1/4 cup (35 grams) unbleached all-purpose flour
- 3 tablespoons cornstarch
- 1/2 teaspoon salt
- 1 1/2 cups (340 grams) full-fat coconut milk room temperature
- 24 tablespoons (342 grams) unsalted butter room temperature
Coconut Coating
- 1 cup sweetened shredded coconut toasted
Instructions
Prepare the Cake Pans
- Melt the butter in a small bowl, add 1 tablespoon of flour and stir together until it is smooth paste. With a pastry brush thoroughly coat the bottoms and sides of two 9-inch aluminum cake pans and line them with parchment paper.
Coconut Coating
- The coconut coating can be toasted or untoasted. If toasting the sweetened coconut, preheat the oven to 350°F. Spread the coconut on a quarter sheet pan into a single layer and toast it until it is golden brown, 7-10 m minutes. Stir the coconut about half way though the baking time for even browning.
Make the Coconut Cake Batter
- Preheat to 350°F (180°C).
- Place the flour and the coconut flour in a medium bowl and whisk to combine and remove any lumps. If you don’t have coconut flour, replace it with an equal amount of all-purpose flour (by weight).
- Crack the three eggs into a bowl large enough to hold all three eggs.
- In the bowl of a stand mixer fitted with a paddle attachment, combine sugar, baking powder, salt, vanilla extract, butter, and virgin coconut oil. Mix on low speed to roughly incorporate, then increase to medium and beat until fluffy and light, about 5 minutes. Halfway through, pause to scrape the bowl and beater with a flexible spatula.
- With the mixer still running, add eggs one at a time, letting each fully incorporate before adding the next. Scrape the sides and bottom of the bowl. Add 1/3 of the flour mixture and mix on low speed until incorporated, then add 1/2 of coconut milk and mix until just incorporated. Repeat with the remaining flour and coconut milk, ending with the last third of the flour.
- Scrape bowl and beater with a flexible spatula and resume mixing on medium speed for about 5 seconds to ensure everything is well combined. The batter should look creamy and thick, registering between 65 and 68°F on a digital thermometer.
- Scrape the bottom and sides of the bowl to ensure the batter is well combined and no unmixed ingredients are left on the bottom of the bowl.
Bake the Cake
- Divide evenly between prepared cake pans (about 840 grams each, if you have a scale). Use an offset spatula to smooth and even the tops of the cake batter.
- Bake until the cakes are firm, are pale gold, and begin to pull away from the sides of the pans, about 35 minutes.
- Cool cakes in their pans for 15 minutes, then run a butter knife around the edges to loosen. Invert onto a wire rack, peel off parchment, and return cakes right side up. Allow the cakes to completely cool, about 1 hour. (Covered in plastic, the cakes can be left at room temperature for a few hours.) Prepare the frosting.
Make the Coconut Ermine Frosting
- This recipe makes 5 cups, enough for a 9-inch two-layer cake or an 8-inch three-layer cake.
- In a 3 or 4-quart nonreactive pan whisk together the sugar, flour, cornstarch and salt. Slowly whisk the in the coconut milk until smooth. Cook over medium heat, whisking constantly and scraping the corners of the saucepan, until the mixture boils and is very thick, about 6-10 minutes. Transfer the mixture to a wide bowl or glass pie plate and let cool completely, about 2 hours.
- Using a stand mixer fitted with a whisk attachment, beat the butter (which should be between 65-68 degrees F) on medium-high speed until light and fluffy, about 5-minutes. Turn off the mixer, scrape the sides and bottom of the bowl and add the cooled coconut milk-flour mixture. Mix on medium speed until combined. Increase speed to medium-high and beat until the frosting is light and fluffy, 3 to 5 minutes.
Assemble the Cake
- Reserve 1 cup of the coconut frosting in a smaller bowl for decorations. Place one cake layer on a cake board or plate. Use 1-1/2 cups of frosting for the center and evenly spread across the layer. Place the second cake layer on top. Crumb coat the cake by spreading a thin layer of frosting over the entire layer of the cake to lock in the crumbs. This technique will prevent cake crumbs from getting mixed into the final frosting. Frost the cake with the remaining frosting.
- To coat the cake with the shredded coconut, place coconut in your hand. Hold the edge of your hand close to the bottom of the cake, tilt your hand up and lightly press the coconut into the frosting. Repeat to coat the sides of the cake .
Storing the Cake
- The assembled cake can before stored at room temperature in a cake container for up to 1 day. It can stored in the refrigerator in a covered container for up to 7 days. When serving the cake from the refrigerator let it sit at room temperature for an hour before serving.
Sharila says
Wow this cake sounds delicious and is so beautiful! I can’t wait to try this recipe, as I’ve been wanting to get more into baking and cake decorating. Thank you for sharing!
Cheryl Norris says
Hi Sharila
Thank you for the compliment on the cake. This combination of coconut and lime is one of my favorites. Please let me know what you think once you've made it.
Kate says
We made this cake and I can tell you now its the best coconut cake I have ever tasted! Wonderful recipe!
Cheryl Norris says
Hi Kate
Thank you so much for visiting the blog, trying the recipe, and leaving this wonderful note. I am so glad that you liked the recipe. I originally made it for my mother's birthday (she loves coconut cake) and it quickly became a family favorite.
Maya says
Hello there! I found this recipe it sounds amazing. I made it last night and it's came out well, still waiting to eat it! I have one question in the picture and one of the descriptions you mentioned /pictured baking soda but it is not listed in the recipe. Should I have added any baking soda to the recipe or did you exclude it from the recipe? Thank you in advance!
Cheryl Norris says
Hi Maya
Thank you trying this recipe and I'm so glad that you enjoyed it. There is no baking soda in this recipe. Thank you for pointing out that error in the blog post. That was a mistake from when I was recipe testing and decided that the cake didn't need baking soda.
Cheryl says
I’m confused. Where is the recipe for the lime filling?
Cheryl Norris says
Hi Cheryl
These are two separate recipes. Here is the link for the Coconut Cake with Lime Filling - https://bakesbybrownsugar.com/coconut-cake-with-lime-curd-filling/.
Penni Nguyen-Chan says
Hello, just wondering if the icing will freeze well? Or how long it will last in the fridge. I’m trying to be organised for a celebration cake and didn’t want to be left to do stuff last minute. Thank u!
Cheryl Norris says
Hi Penni
Yes, the ermine frosting in this recipe does freeze well. Place it in an freezer safe airtight container. It can be frozen for up to 2 months.
Sue says
The individual layers of the two layer nine inch cake appear reasonably thick. Do you think the layers would be too thin if they were baked in 3 nine inch pans for a three layer cake?
Thanks
Sue
Cheryl Norris says
Hi Sue
You can definitely use 3 9-inch pans. The cake layers will probably be about 2/3 the original height, but you will need more buttercream. If you're using the coconut frosting in the recipe see the note at the bottom of the recipe card for making a slightly larger batch of frosting. Please let me know how it turns out.
Jackie says
Hi! Great recipe. Question about the frosting. How do I fix it if it's too runny?
Cheryl Norris says
Hi Jackie
If the frosting is runny it could be because the butter was too soft or the flour slurry wasn't cooked enough. If the butter is the issue place the frosting in the refrigerator for 30 minutes. You want it to still be somewhat soft, but firm enough that you can scoop it with a spoon and it will hold it's shape and not slide from the spoon. If it's still running chill for another 15-30 minutes. Once it's firm enough, whip it for about 1 minute.
Christy says
Delicious flavors. Texture is a bit dense so I plan next time to modify the recipe a bit: use 4 eggs, separated…adding the whipped whites as the final step.
The ermine frosting is sensational! Absolutely perfect.
Cheryl Norris says
Hi Christy
Thank you for trying my coconut cake recipe. You're right, the texture is a bit dense and that's on purpose. I love the moist dense texture of this cake, but realize it may not be for everyone. Thank you for the compliment on the flavors and I'm glad you found the ermine frosting sensational.🙌🏽 It's so good and so easy to make.
Ronni says
Awesome cake! I would suggest reordering the steps to prep the 1st step of the frosting prior to mixing up the batter for better time management.
Made for my partners grandmother's birthday and was a great hit. Thank you for posting
Cheryl Norris says
Hi Ronni
First, thank you for trying my recipe especially for such an important birthday party and leaving this awesome review.. I'm glad everyone enjoyed. And thank you for your suggestion on reordering the recipe, I will take a look at that.