I still remember the first time I baked a coconut cake it wasn’t planned at all. I had a half-used bag of shredded coconut sitting in the pantry and a quiet Sunday afternoon with nothing much going on. I thought I’d just try something simple, nothing fancy, just a basic cake to use it up. But the moment it went into the oven, the whole kitchen started filling with this warm, sweet coconut aroma that felt almost comforting in a way I didn’t expect.
When I finally took that first slice, soft and moist with that gentle coconut flavor running through it, I knew it wasn’t going to be a one-time bake. It turned into one of those recipes I keep coming back to whenever I want something simple, cozy, and a little special without trying too hard.

Why You’ll Love This Coconut Cake
This coconut cake is the kind of dessert that quietly wins people over. It’s a three-layer cake made with real coconut milk baked right into the batter, so the flavor isn’t just on top it’s throughout every bite, soft and naturally rich.
What makes it even better is how reliably moist it stays for days, which is a lifesaver when you’re planning ahead for a party or gathering. You don’t need any fancy equipment either just a hand mixer and a couple of bowls, nothing complicated. It’s become my go-to coconut cake for Easter and almost every birthday in my home, the one people actually expect me to bring before I even ask what they want.
Ingredients for Moist Coconut Cake
Dry Ingredients
- 3 cups all-purpose flour (spoon into the cup and level with a knife; don’t scoop directly from the bag)
- 1 tablespoon baking powder (use fresh for best rise)
- 1/2 teaspoon baking soda
- 1/2 teaspoon salt
Wet Ingredients
- 1 cup unsalted butter, softened (not melted)
- 1 3/4 cups granulated sugar
- 4 large eggs, room temperature (helps prevent curdling)
- 1 teaspoon coconut extract (for real coconut flavor)
- 1 teaspoon vanilla extract
- 1 cup full-fat canned coconut milk (shake well before using)
- 1/2 cup sour cream (keeps the cake extra moist)
- 1 1/2 cups sweetened shredded coconut
For the Cream Cheese Frosting
- 16 oz cream cheese, softened
- 1 cup unsalted butter, softened
- 5 cups powdered sugar, sifted
- 1 teaspoon coconut extract
- 2 cups sweetened shredded coconut (1 cup for filling, 1 cup toasted for coating the outside)
How to Make Coconut Cake (Step by Step)

1. Preheat & Prepare Your Pans
Start by preheating your oven to 350°F (175°C) so it’s ready when your batter is done. Grease and flour three 9-inch round cake pans properly so nothing sticks later this step is super important. Then line the bottoms with parchment paper circles for extra safety (trust me, this saves cake layers from breaking). Also place your oven rack in the center so the heat spreads evenly and your cakes bake perfectly.
If you ever need help while baking or want to get perfect results every time, these Oven temperature converter will make things super easy.
2. Mix the Dry Ingredients
In a medium bowl, whisk together the flour, baking powder, baking soda, and salt. Give it a good mix so everything is evenly distributed. Then just set it aside for now. This helps the cake rise evenly and keeps the texture light instead of dense.
3. Cream Butter & Sugar (The Base of Your Cake)
In a large mixing bowl, beat the butter and sugar together for about 3 minutes until it becomes pale, fluffy, and a bit creamy. Don’t rush this step this is what gives your cake that soft, bakery-style texture. If it looks light and airy, you’re doing it right.
4. Add Eggs & Flavor
Now add the eggs one at a time, mixing well after each one so everything stays smooth. Once done, mix in the coconut extract and vanilla extract. At this point, your kitchen will already start smelling amazing, and the batter should look silky and well combined.
5. Combine Wet & Dry Ingredients
Now slowly add the dry ingredients and coconut milk alternately in three parts, starting and ending with dry ingredients. This helps the batter stay stable and not become runny. Mix just until everything comes together—don’t overmix or the cake can turn heavy instead of fluffy.
6. Fold in Coconut & Sour Cream
Gently fold in the sour cream and shredded coconut using a spatula. Be soft and slow here like you’re “just bringing everything together,” not beating it. Stop as soon as you don’t see flour streaks anymore. This step keeps your cake soft and tender.
7. Divide & Bake
Now divide the batter evenly into your prepared pans. Try to keep them equal so all layers bake at the same speed. Bake for 25–28 minutes, or until a toothpick inserted in the center comes out clean. The top should look lightly golden and springy.
8. Cool Before Frosting
Let the cakes cool in the pans for about 10 minutes first, then carefully transfer them to a wire rack. Let them cool completely before frosting this is very important because if the cake is even slightly warm, the frosting will melt and slide off.
Expert Tips for Perfect Coconut Cake

1. Use Full-Fat Coconut Milk (Very Important)
Always use canned full-fat coconut milk, not the carton version from the dairy aisle. The carton milk is too light and can ruin the texture. I once tried it and the cake turned out thin, didn’t rise properly, and lost that rich coconut flavor that makes this cake special.
2. Toast the Shredded Coconut for Extra Flavor
Don’t skip toasting the coconut for the topping. I skipped it once just to save time and the cake honestly looked flat and a bit dull. Just toast it in a dry pan over medium heat for a few minutes until it turns light golden. It adds a beautiful color and a light crunch that makes the whole cake feel more bakery-style.
3. Bring Ingredients to Room Temperature
Make sure your butter and eggs are at room temperature before you start mixing. Cold ingredients don’t blend properly and can cause the batter to curdle or separate. I learned this the hard way when my batter turned lumpy instead of smooth and fluffy.
4. Measure Flour the Right Way
Don’t scoop flour directly from the bag. Instead, spoon it into your measuring cup and level it off with a knife. This small step really matters too much packed flour can make your cake dense and dry instead of soft and fluffy.
5. Chill Before Slicing for Clean Layers
After frosting, chill the cake for about 20 minutes before slicing. This helps the cream cheese frosting set properly so you get clean, bakery-style slices instead of messy smears. It makes a big difference in presentation.
6. Always Use Parchment Paper
Never skip parchment paper circles in your cake pans. I once did and lost half a layer because it stuck badly to the pan. This simple step saves your cake and keeps every layer intact.
7. Let Cake Cool Completely Before Assembling
Be patient and let your cake layers cool for at least 2 hours before stacking and frosting. If you rush this step, the layers can slide, melt the frosting, and ruin the structure of your cake.
Ingredient Substitutions
- Swap all-purpose flour with Bob’s Red Mill 1:1 gluten-free flour. The cake will be slightly denser, but it still holds together beautifully and keeps a soft crumb.
- Replace sour cream with plain full-fat Greek yogurt. It gives the same moisture, with a slightly tangier flavor that actually works nicely with coconut.
- Use unsweetened shredded coconut instead of sweetened coconut, and add about 2 extra tablespoons of sugar to the batter to keep the sweetness balanced.
- For an egg-free version, substitute each egg with about 4 tablespoons unsweetened applesauce. The texture becomes a bit more tender and slightly denser, but still moist and sliceable.
- For a lighter frosting option, replace the cream cheese frosting with a simple coconut-extract buttercream. It keeps things rich and buttery, just without the tangy cream cheese flavor.
How to Store Moist Coconut Cake
- Room temperature: Keep covered on a cake stand for up to 2 days. Because of the cream cheese frosting, it shouldn’t sit out too long in warm weather.
- Fridge: Store in an airtight container for up to 5 days. This is the best option to keep it fresh and safe while maintaining moisture.
- Freezer: Wrap unfrosted cake layers tightly in plastic wrap, then foil, and freeze for up to 3 months. When ready to use, thaw overnight in the fridge before frosting.
- Reheat tip: A quick 10-second microwave warm-up brings a chilled slice back to that soft, just-baked texture especially good for leftovers.
Frequently Asked Questions
Can I make this coconut cake recipe ahead of time?
Yes you can bake the cake layers up to 2 days in advance. Wrap them tightly and frost on the day you plan to serve. The flavor actually gets better as it sits overnight.
Why did my coconut cake turn out dense?
This usually happens if you used light coconut milk instead of full-fat, or if the flour was packed too tightly into the measuring cup. Both can make the cake heavy instead of soft and fluffy.
Can I freeze a fully frosted coconut cake?
It’s not recommended. Cream cheese frosting can become watery after thawing. Instead, freeze the unfrosted layers, then thaw and frost fresh.
What’s the difference between coconut extract and coconut milk here?
Coconut milk adds moisture and a subtle coconut base flavor, while coconut extract gives the strong, signature coconut taste. Using both creates a well-balanced flavor.
Can I make this as a sheet cake instead of layers?
Yes pour the batter into a greased 9×13-inch pan and bake for about 35–40 minutes, or until a toothpick comes out clean.
How long does homemade coconut cake last in the fridge?
It keeps well for about 5 days in an airtight container. After that, the texture starts to dry out even though it’s still safe to eat.
Why is my frosting too runny to spread?
Your butter or cream cheese may have been too warm. Chill the frosting for about 15 minutes, then re-whip it until it becomes thick and spreadable again.
Can I use coconut flour instead of all-purpose flour?
No coconut flour absorbs liquid very differently and will make the cake dense and gummy. Stick with all-purpose flour, and use coconut milk and extract for flavor instead.
Final Thoughts
I make this coconut cake recipe every Easter, and at this point my mother-in-law asks for it by name instead of asking what I’m bringing. Three moist layers, real coconut flavor in every bite, and a tangy cream cheese frosting that’s the whole reason it keeps disappearing first off the dessert table. If you try this recipe, leave a comment and let me know how it turned out! You might also enjoy my Pineapple Juice Cake or Lemon Poppy Seed Cookies.

Coconut Cake
Ingredients
Dry Ingredients
- 3 cups all-purpose flour
- 1 tablespoon baking powder
- 1/2 teaspoon baking soda
- 1/2 teaspoon salt
Wet Ingredients
- 1 cup unsalted butter softened
- 1 3/4 cups granulated sugar
- 4 large eggs room temperature
- 1 teaspoon coconut extract
- 1 teaspoon vanilla extract
- 1 cup full-fat canned coconut milk
- 1/2 cup sour cream
- 1 1/2 cups sweetened shredded coconut
Cream Cheese Frosting
- 16 oz cream cheese softened
- 1 cup unsalted butter softened
- 5 cups powdered sugar sifted
- 1 teaspoon coconut extract
- 2 cups sweetened shredded coconut 1 cup for filling, 1 cup toasted for topping
Instructions
- Preheat oven to 350°F (175°C). Grease and flour three 9-inch round cake pans, and line the bottoms with parchment paper.
- In a medium bowl, whisk together flour, baking powder, baking soda, and salt. Set aside.
- In a large bowl, beat butter and sugar for about 3 minutes, until light and fluffy.
- Add eggs one at a time, beating well after each addition. Mix in coconut extract and vanilla extract.
- Add the dry ingredients and coconut milk alternately in three additions, starting and ending with dry ingredients. Mix just until combined.
- Gently fold in sour cream and shredded coconut using a spatula. Do not overmix.
- Divide batter evenly between the prepared pans. Bake for 25–28 minutes, or until a toothpick inserted in the center comes out clean.
- Cool cakes in pans for 10 minutes, then turn out onto a wire rack and cool completely before frosting.
- To make frosting, beat cream cheese and butter until smooth and creamy.
- Gradually add powdered sugar, then mix in coconut extract.
- Fold in 1 cup shredded coconut (for filling).
- Spread frosting between layers and over the top and sides of the cake.
- Press toasted coconut onto the outside of the cake for decoration.
- Chill for 20–30 minutes before slicing for clean layers.




