This post may contain affiliate links. Please read our disclosure policy.
Coconut cake with a luscious cream cheese coconut frosting is a worthy celebration cake! My recipe yields an incredibly moist cake with deep coconut flavor.

Coconut cake that is moist, bursting with coconut flavor, and looks like a showstopper has been a cake goal of mine for a loooong time. My first attempt at making the cake was years and years ago now, in celebration of my mom’s spring birthday. That failure (it was dry! so dry! no flavor! Read about that in my story) only encouraged me to dive deeper, until landing on what is now a treasured recipe and one of the best cakes in my cake repertoire.
My easy coconut cake recipe is perfect for special occasions or just because you want to enjoy the singular pleasure of a moist, tender cake packed with a sweet coconut flavor.

Ingredient Notes
A few of the things that make this cake a stand-out and really the best coconut cake recipe I’ve ever baked or tasted: the cake is from scratch but has the qualities of a white cake mix (egg whites only and no yolks help with this); as a layer cake, you get a very moist cake; and my buttercream, which is essential a coconut cream cheese frosting. Here are some notes about the ingredients:
- Unsalted Butter: Make sure it’s very softened. If you don’t have unsalted butter, you can use salted butter. Just reduce the additional salt in the recipe by half. You can also substitute the butter with vegetable shortening.
- Neutral oil: essential for the cake’s tenderness. Pick any oil that doesn’t impart flavor, such as vegetable oil, expeller-pressed canola oil, safflower oil, etc. Avoid coconut oil because it solidified and will make the cake too dense.
- Granulated Sugar: The best way to go for this cake. Brown sugar as a substitute can add a caramel note and moisture to your cake, but its color is not ideal here.
- All-Purpose Flour: Some recipes may call for cake flour, but this cake stands up perfectly with AP flour.
- Coconut extract. Essential! The extract imparts deep coconut flavor to both the cake and the frosting. Don’t bake this cake without it! Find it in the baking aisle. You can also add some vanilla extract.
- Coconut Milk. Be sure to shake the can and give it a good stir before measuring. Find it in the baking aisle.
- Sweetened Flake Coconut: The coconut flakes are used to garnish the outside of the cake. Sweetened coconut won’t dry out the way dessicated (unsweetened) coconut does.
- Yogurt: Use whole milk yogurt. Greek yogurt can serve as a great alternative, but be sure to loosen it with a touch of water or else it will not have the same results as plain yogurt. A better substitute than that would be sour cream.
How to Make Coconut Cake
Follow the steps to the full recipe for baking the cake in the recipe card below! Here are some notes about the process.

Preparing the cake pans: This step is essential to the release of the cakes from the pans. Don’t skip the parchment paper or coating the pans with butter or oil.
Separating the eggs: It’s much easier to separate eggs when they are cold, so that the egg yolks stay intact and doesn’t run into the white. The recipe calls for room temperature egg whites. The way to both separate cold eggs and get the whites to room temp is to separate the whites into a small bowl, then immerse the bowl part way up in warm water for a few minutes. Whisk or stir once or twice to disburse the temperature throughout the whites.
Assembling the cake: Place one layer of cake on your serving dish or footed cake plate, frosting the top with an even layer of buttercream. Place the second cake layer on top of that and frost the top and sides with the remaining frosting.



Coating the cake with coconut: This is a down ‘n dirty process in the sense that you just take a small handful at a time of the shredded coconut, and gently press against the top and sides of the cake. Dust off the excess that falls to the edges of the platter or work surface and use that again. Be sure to apply the coconut to the cake while the buttercream is still soft, right after you frost the cake.


Making a lamb cake: to bake with a lamb cake mold, coat the molds well with butter or oil and then coat them with flour, knocking out any excess. Fill them evenly with batter, to about 1/2 to 1 inch from the top of the mold so the cake doesn’t overflow while baking. Bake until golden, and start checking for doneness after 20 minutes. Assemble and frost the lamb with buttercream and finish with the coconut flakes.
Tips to Ensure Moistness
To ensure that your coconut cake remains moist and delightful, consider these helpful tips:
- Do Not Overbake: Keep a close eye on your cake layers as they approach the minimum baking time (28 minutes). Even a couple of minutes can make a difference in moisture.
- Use Yogurt: The inclusion of whole milk plain yogurt in the butter and sugar greatly contributes to a moist, tender cake.ย
- Egg Whites: Beating egg whites into the batter with your stand or electric mixer helps retain air and moisture in the cake. It also keeps the cake bright white without egg yolk in the mix.
- Simple Syrup: For an extra boost of moisture, you can brush a simple syrup (a mix of sugar and water) onto the cake layers once they have cooled. Flavor it with orange blossom or rose water for another flavor element!
- Cooling: If you can’t assemble the cake right away, wrap your cooled cake layers in plastic wrap to help trap moisture until you’re ready to frost and serve them.

Storage
To preserve the moistness and freshness of your coconut cake, follow these storage tips:
Frosting Storage: If you have leftover cream cheese buttercream, store it in an airtight container in the refrigerator for up to one week or freezer for up to 3 months. Bring the frosting to room temperature, then you can rewhip the frosting with a whisk, spoon, or an electric mixer before using it again.
Room Temperature storage: If you plan to enjoy the cake within a couple of days, store it at room temperature. Keep it in an airtight container or wrap it in plastic wrap to prevent it from drying out.
Refrigeration: If you wonโt be eating the cake within two days, move it to the refrigerator. The cool environment will help prolong its freshness. Just make sure itโs well-wrapped.
Freezing: For longer storage, you can freeze the cake. Wrap each cooled layer tightly in plastic wrap followed by aluminum foil to prevent freezer burn. The cake layers can be frozen for up to three months. To serve, let it thaw in the refrigerator overnight before bringing it to room temperature, frosting and garnishing with coconut. You can also freeze the whole assembled cake, covered, though be sure it is very well protected in an airtight container.

Coconut Cake
Ingredients
For the Cake:
- 3 cups unbleached, all-purpose flour
- 2 teaspoons baking powder
- 1/2 teaspoon baking soda
- 1/2 teaspoon kosher salt
- 1/2 cup unsalted butter, softened, plus more for coating pans
- 2 cups granulated sugar
- 3/4 cup neutral oil
- 1/2 cup plain whole milk yogurt
- 3/4 cup coconut milk, well-stirred or shaken before measuring
- 2 tablespoons coconut extract
- 5 large egg whites, room temperature
Coconut Cream Cheese Frosting:
- 8 ounces cream cheese, softened
- 1 cup unsalted butter, softened
- 6 cups confectioners' sugar
- 2 teaspoons coconut extract
- 2 cups sweetened flake coconut
Instructions
- Preheat the oven to 350ยฐF and place a rack in the center position. Coat 2 9-inch cake pans with butter and line the bottoms with parchment circles.
- In a medium bowl, whisk together the flour, baking powder, baking soda, and salt. Set aside.
- In a stand mixer fitted with the paddle attachment, cream the butter on high speed until it is smooth. On medium-low speed, add the sugar one cup at a time. Stop and scrape down the bowl as needed. Beat until combined, light, and fluffy, about 2 minutes.
- Add the neutral oil, yogurt, coconut milk, and coconut extract. Beat until smooth. Scrape down the bowl and add the egg whites. Beat on medium speed until smooth.
- On low speed or by hand, add the flour mixture and beat until combined and smooth, another minute.
- Divide the batter evenly among the prepared cake pans and smooth the tops with an offset spatula. Bake the cakes for 28 to 30 minutes, or until they are golden, spring back lightly when touched in the center, and a toothpick inserted in the center comes out clean.
- When the cakes are done baking, cool them in their pans for 10 minutes, then remove the cakes and cool completely on wire racks.
- Meanwhile, make the buttercream. Beat the cream cheese and butter in the cleaned bowl of a stand mixer fitted with the paddle attachment, or in a large bowl using hand beaters, until smooth. Add half of the confectioners' sugar and coconut extract, incorporating on low speed. Add the remaining confectioner's sugar and beat until it is smooth and light.
- To assemble the cake, place one layer of cake on a serving platter or cake stand. Top it with about 1/3 of buttercream and spread it evenly to the edges. Center the second layer evenly on top of the first layer and top with 1/3 of the buttercream, spreading it evenly to the edges. Frost the sides of the cake.
- Pat the the coconut onto the top and sides of the cake in small handfuls (itโs messy, but thatโs okay; just brush the excess coconut from the rim of the cake platter before serving). Serve the cake immediately, or chill and serve within a day or two after bringing back to room temperature.
- Use your hands to gently pat the coconut against the top and sides of the cake. Brush off and pick up the excess coconut that falls onto the platter or counter and use that as well.
- Gently slice the cake using a serrated knife and serve immediately.
Nutrition
Nutrition information is automatically calculated, so should only be used as an approximation.
That would be wonderful. Thank you so much!
I have the exact same lamb mold pictured above and I would like to make the lamb shaped cake and the layer cake. How do you suggest doing this? I could make a two layer cake and use 1/3 of the batter for the lamb mold. I haven’t tried it yet, so I don’t know how much batter is required for the mold. Or I could double the recipe and make extra layers on the cake (a four layer cake and one or two lamb shaped cakes depending on how much batter is leftover). What do you think? Also, what about the cooking time/temperature for the lamb mold?
Thank you so much for your lovely recipes! I’ve been working with your recipes for five years or so and I love everything I’ve tried of yours! I’ve been eying this coconut cake for years and it’s finally time!
This is so great Deborah! Also: I’m working on updating this very delicious coconut cake recipe so you’ll have to check back for the “new and improved” post very soon! Each half of the mold takes about as much batter as one 8-inch layer. The cooking time can be a little different too because those little ears bake up fast before the middle…. But I’m going to play with it relative to the recipe and report back. Thanks so very much for your kind note!!
Maureen thank you so much for yet another amazing recipe! I made this cake for our Sunday Family dinner and it was a huge success!! Will be making it again for sure!
Wonderful Gale, thank you for the report!
Your Jiddo looks exactly like mine (could be twins!) with the exception of mine having a cigar in his left hand. Right down to the generous nose. The picture evokes great nostalgia. Our childhood must have been very much like yours. We need more of this. H
God bless our Jiddos, and the wonderful upbringings we had!
Thank you so much for your heartwarming and funny memories! I love looking at photos! Not only are you an accomplished cook, baker, successful blogger, (incredibly* well-written) it seems like you are successful almost anything! These memories are worth compiling in a book.
*incredibly (not that I don’t believe that you cannot) but because I know from experience how difficult it can be to write so well, especially when dealing with bitter sweet memories!
I bet someone could help you trace the name of that rose based on your description of the colors:
Start with https://www.combinedroselist.com/freedom-gardens.html
And, I thought that I was the only person that threw things (usually not directly at people!) when “my back was pushed up against the wall,” so to speak! What I try not to do is hurl words at people, because they seem to hurt people (me, us, anybody?) more than objects. (Just from my experience!)
This is wonderful in every way Edie–thank you so very very much! Here’s the book I did write!
Maureen, I want to bake your coconut cake this Monday for my dear friend’s birthday. The orange blossom water worries me a bit. I find that this smells more like laundry water. Not natural. Am I just buying the wrong brand ? I was able to find only “Ziyad”. Is there a substitute to this ? What if I just made a fresh orange juice infused syrup ?
BTW. I love the website. I am from India. But my favorite food is from the Mediterranean. Greek, Lebanese , Spanish…etc etc..
Help me out with the Orange water please ;(
Hello, and thank you! Ziyad is a trusted brand, but if the orange blossom water doesn’t smell good to you, go right ahead and make simple syrup with fresh orange juice (not at all the same flavor as orange blossom water, but it will taste good!)–or instead even better, a drop or two of rose water. Vanilla simple syrup would also be good here, or coconut with the extract.
oh my that lamb brings back memories of church chicken barbeques and the “spin-the-cake” wheel!
Now I understand how you came across my First Communion picture! Oh my Lord I LOVE the picture of you with that cake and your Grandpa! How adorable these pictures are!
I think I may have used the same Martha Stewart recipe many years back. I too was very disappointed. It was beautiful and i was excited for weeks before to take such a beautiful cake to my church function. Dry and no flavor. Thanks for the new coconut cake recipe!
Grandpa! Great photo!
YES! YES! YES! I can’t wait to bake this cake. I have deep love for anything coconut and we always adored Aunt Mary’s show stopping lamb cakes!! Now I have a triple reason to enjoy cake season.
Mmmmm….coconut. So glad the health benefits are being discovered finally. I also have fond memories of coconut cake as a child. My brother and I remember the Easter coconut cakes that had jelly beans as decorations on top. What can I say? My mother was challenged as a cake decorator, but there was a lot of love mixed into that cake. Thanks so much for sharing, Maureen! Will be making this soon! (Without jelly beans)
Gotta love the LOVE! I hope this cake is as wonderful for you as it is for me–and I’d love to hear how you like it!
Smiles and warm tears as always–lovely writing–and, a most beautiful cake–and, beautiful children with ‘zeitoun’ for eyes–my Aunt Louise always said that of me when I was a child!!
Maureen, you had me at Coconut Cake. And may i just say, look at those three layers on the cooling rack–perfection. I think I make a mean coconut cake but I can see your version is a real contender, and for sure a winner! Thanks for sharing.