Desserts
This all coconut cake recipe delivers the perfect balance of tropical moisture and subtle vanilla swirls, creating a dessert that feels like a vacation in every bite. The secret lies in using coconut milk for richness while keeping the texture impossibly tender—no dry crumbs in sight. I developed this recipe after years of experimenting with coconut-based desserts, and it finally nails that ideal combination of coconut flavor without overpowering sweetness.
What makes this cake truly special is the vanilla-kissed swirl that cuts through the coconut's intensity, adding depth and a familiar comfort. The recipe uses coconut flour for structure while maintaining that signature tropical taste, and the coconut milk ensures each slice stays moist for days. Baking at the right temperature is crucial—too high, and it dries out; too low, and it won't rise properly.
By the time it emerges from the oven, you'll have layers of tender, moist cake with a golden crust and those beautiful vanilla swirls peeking through. The aroma alone will have everyone gathering around the kitchen, and the first bite delivers on that tropical vacation promise. This isn't just another coconut cake—it's a showstopper that tastes like a resort dessert.
For an extra touch, I recommend toasting the coconut flakes and sprinkling them on top before serving, or drizzling with a simple coconut glaze. The possibilities for customization are endless, but the base recipe is foolproof and delivers every time. Let's get baking!
Ingredients for all coconut cake
Tropical flavors meet classic baking in this all-coconut creation, where coconut milk and flour deliver that signature island taste.
| Ingredient | Amount | Notes |
|---|---|---|
| All-Purpose Flour 🌾 | 2 ½ cups | Sifted for even texture |
| Coconut Flour 🥥 | ½ cup | Essential for structure |
| Granulated Sugar 🍚 | 1 ½ cups | White or light brown |
| Vanilla Extract 🌸 | 2 tbsp | Pure Madagascar preferred |
| Unsalted Butter 🧈 | 1 cup | Softened to room temp |
| Coconut Milk 🥥 | 13 ½ oz | Full-fat canned preferred |
| Large Eggs 🥚 | 2 whole | Room temperature |
| Baking Powder 🧂 | 2 tsp | Aluminum-free preferred |
| Salt 🧂 | ½ tsp | Fine sea salt |
| Vanilla Bean Paste 🌸 | 1 tbsp | For swirls and depth |
| Shredded Coconut 🥥 | 1 cup | Sweetened, toasted |
| Cream of Tartar 🍋 | ¼ tsp | For tender crumb |
| Vanilla Sugar 🍚 | 1 tbsp | Optional for extra flavor |
The coconut milk is non-negotiable here—full-fat canned gives the richest texture, and brands like Thai Kitchen or Goya work perfectly. For the coconut flour, Bob's Red Mill is my go-to, but check the label—some blends contain additives. The vanilla bean paste is worth the splurge; Madagascar vanilla has that deeper, complex flavor that cuts through the coconut's sweetness. If you're using vanilla extract instead, pure Madagascar is the way to go—anything else tastes artificial. Toast your shredded coconut first (5 minutes at 350°F) for a nutty aroma that elevates everything.
No coconut milk? Substitute with equal parts heavy cream and coconut cream, but the texture won't be quite as moist. Running short on vanilla bean paste? Double the vanilla extract and add a pinch of vanilla sugar for depth. If you can't find aluminum-free baking powder, Diamond Crystal is a reliable brand that works fine. The shredded coconut can be swapped for unsweetened, toasted if you prefer a more natural sweetness. For a lighter cake, reduce the coconut flour by 0.25 cups and add 0.25 cups more all-purpose flour, but don't skip it entirely—the structure suffers without it.
This cake stays moist for 4-5 days if wrapped tightly in plastic, but honestly, it disappears faster than that. For longer storage, slice and freeze portions on a tray before transferring to a bag—3 months in the freezer with no texture loss. The vanilla swirls keep best if you pipe them right before baking, but if prepping ahead, cover tightly and refrigerate for up to 24 hours. Toasting the coconut flakes right before serving? Game-changer—do it fresh for maximum crunch.
Why You'll Love This Recipe
- No Mixer Needed: I swear by this recipe when my hands are full—just fold the dry ingredients with melted butter until it’s almost combined. The coconut flour gives it that tender crumb without requiring a single whisk stroke.
- Butter-Sugar Magic: That rich, caramelized butter folded into the sugar? It’s what makes this cake taste like a bakery treat, not a last-minute dessert. The vanilla ties it all together with just a whisper of warmth.
- Lunchbox Hero: Between us, this cake keeps perfectly for days—moist enough to slice for breakfast or pack for kids’ lunches. (Yes, even on a Tuesday.) The coconut flour actually helps it stay fresh longer than your average boxed mix.
- Pantry Staple Swap: Honestly, I keep this recipe on repeat because it uses what I already have. Swap the all-purpose flour for whole wheat if you’re feeling fancy, or add a pinch of salt if your butter’s fresh. Minimal effort, maximum reward.
Step-by-step instructions for all coconut cake
Here's the method for a perfectly moist tropical cake with rich vanilla swirls.
Prepare the Coconut Milk and Mix Dry Ingredients
Open the can of 13.5 oz coconut milk and scoop out the thick cream portion into a medium bowl, reserving the liquid. Whisk the cream with 1.5 cups granulated sugar, 2 tbsp vanilla extract, 1 tbsp vanilla bean paste, and 1 tbsp vanilla sugar until completely dissolved. This creates the signature vanilla-kissed flavor profile.
In a separate large bowl, sift together 2.5 cups all-purpose flour, 0.5 cup coconut flour, 2 tsp baking powder, 0.5 tsp salt, and 0.25 tsp cream of tartar. The sifting ensures an even distribution of ingredients and prevents dense spots in the cake. Use a whisk to break up any lumps in the coconut flour, which absorbs moisture differently than all-purpose flour.
Combine Wet and Dry Ingredients
To the coconut milk mixture, add the 2 whole large eggs one at a time, whisking vigorously after each addition. Then gradually incorporate the dry ingredient mixture, alternating with the reserved coconut milk from the can. Start and end with the dry ingredients to ensure proper texture. Mix just until combined—overmixing develops gluten and creates a tough cake.
Fold in 1 cup shredded coconut using a spatula, being careful not to deflate the batter. The coconut should be evenly distributed throughout. This step is where the tropical character of the cake truly comes together. If the batter seems too thick, add 1-2 tablespoons of the reserved coconut milk to achieve a pourable consistency.
Prepare the Vanilla Swirl Layer
In a small bowl, mix 1 cup softened unsalted butter with 1 tbsp vanilla extract and 1 tbsp vanilla bean paste until smooth. This will create the signature swirls that run through the cake. The butter should be soft enough to mix easily but not melted—this ensures proper incorporation without making the batter too runny.
Carefully fold one-third of the vanilla butter mixture into the cake batter to create a marbled effect. Use a spatula to gently swirl the batter, creating ribbons of vanilla butter throughout. This step requires patience—don't overmix or the swirls will disappear. The contrast between the vanilla-kissed layers and the coconut base is what makes this cake truly special.
Bake to Golden Perfection
Preheat your oven to 350°F and grease two 9-inch round cake pans with butter or coconut oil, then dust with flour. Divide the batter evenly between the prepared pans. Bake for 30-35 minutes, or until a toothpick inserted into the center comes out clean. The cake should be golden brown on top and slightly domed in the center—this indicates proper doneness.
Here's the thing—coconut cakes can dry out if overbaked. I recommend checking at the 25-minute mark and rotating the pans halfway through for even baking. Let the cakes cool in the pans for 10 minutes before transferring to a wire rack to cool completely. This gradual cooling prevents cracking and allows the flavors to fully develop.
Assemble and Serve
Once completely cooled, level the tops of the cakes if needed. Place one cake layer on a serving plate and spread a thin layer of coconut milk cream (the reserved liquid from the can, whipped with 2 tbsp powdered sugar) over the top. This creates a subtle moisture barrier and adds another layer of coconut flavor.
Add the second cake layer and frost the entire cake with the remaining coconut milk cream. Press the 1 cup shredded coconut onto the sides and top for a beautiful presentation. The cake should be moist, tender, and rich with coconut flavor in every bite. Serve at room temperature for the best texture and flavor experience.
Pro Tips For Making All Coconut Cake
- Whisk the Butter First: Cream your unsalted butter and sugar until it’s pale yellow—not just combined. I used to rush this, and the cake turned out dense. Take the extra 30 seconds; the air whipped into the butter makes the crumb light and tender. ---
- Sift the Coconut Flour: Coconut flour is clumpy, and clumps = uneven texture. Sift it with the all-purpose flour before measuring—even if the recipe doesn’t say to. Trust me, your cake will thank you with a smoother bite. ---
- Don’t Overmix the Batter: Stop folding in the dry ingredients the second they’re just incorporated. Overmixing = tough cake. Drop spoonfuls of batter on top of the bowl and gently swirl with a spatula—less effort, better result. ---
- Bake Until the Center Springs: The toothpick test fails here—coconut cakes set differently. Press the center: it should spring back slowly, not bounce. If it’s gummy, it’s underdone. Sounds weird, but it works every time.
Troubleshooting perfect results
Dry Cake Fix
If your cake turns out dry, the issue is usually overbaking or insufficient moisture. Coconut flour absorbs liquid quickly, so next time, whisk 1 extra tablespoon of coconut milk into the batter before baking. For a dry cake already baked, try the "revival trick": Brush warm slices with 2 tablespoons of coconut milk mixed with 1 teaspoon of vanilla extract, then microwave for 10-15 seconds. This restores moisture without making the cake soggy. 💫
Cake Didn’t Rise
Uneven rise or a flat cake typically means expired baking powder or insufficient mixing. Double-check your baking powder—it should be fresh (test by mixing with water; if it fizzes, it's good). Whisk the batter just until combined—overmixing develops gluten, which prevents proper rise. For a quick fix, preheat your oven to 375°F next time and bake for 25 minutes before reducing to 350°F to encourage lift. Also, ensure your coconut flour is sifted thoroughly to avoid dense pockets.
Vanilla Swirls Disappeared
Swirls vanish when the vanilla butter mixture isn’t folded gently or if the batter is too warm. Chill the batter for 10 minutes before folding in the vanilla butter to thicken it slightly. Use a spatula to create gentle ribbons—don’t stir vigorously. If the swirls blend too much, try this: Pipe the vanilla butter mixture directly onto the batter in the pan before baking, then swirl with a skewer. This creates cleaner, more defined patterns. 🌸
Bitter Aftertaste
A bitter taste usually comes from overcooked coconut milk or old vanilla. Always use fresh, full-fat coconut milk (check the "best by" date—it spoils faster than you think). For vanilla, Madagascar extract or vanilla bean paste is non-negotiable. To fix a bitter cake, balance the flavors by dusting with powdered sugar or drizzling with a simple glaze made from ½ cup powdered sugar + 1 tablespoon coconut milk. This sweetens the bite without overpowering the coconut.
Cracked Top
Cracks form when the cake cools too quickly or the oven temperature fluctuates. Let the cake cool in the pan for 15 minutes before transferring to a rack, and avoid opening the oven door during the last 10 minutes of baking. For a cracked cake, slice it into thick wedges and serve immediately—the texture will still be moist and delicious. To prevent cracks next time, try baking in a water bath (place the pans in a larger pan filled with 1 inch of hot water) for even heat distribution.
Batter Too Thick
Coconut flour is notorious for making batters thick and gloopy. If your batter resembles cement, don’t panic—just add 1-2 tablespoons of the reserved coconut milk at a time until it reaches a pourable consistency (like heavy cream). For extra insurance, whisk 1 extra egg yolk into the batter to add richness and moisture. If the batter is still too thick after adjustments, reduce the coconut flour by 1 tablespoon and increase the all-purpose flour by the same amount. This keeps the structure intact while improving texture.
Nutrition facts
Frequently asked questions
Why does your recipe use both all-purpose and coconut flour?
The combination creates the perfect balance—coconut flour adds that signature tropical flavor and structure, while all-purpose flour ensures a tender crumb. Coconut flour absorbs moisture differently, so the all-purpose flour prevents a dense, dry texture. This blend keeps the cake moist for 4-5 days without turning gummy.
Can I make this cake without eggs?
Yes! Replace the 2 eggs with 2 tablespoons of ground flaxseed mixed with 6 tablespoons of water (let sit for 5 minutes to thicken). For extra moisture, add 1 extra tablespoon of coconut milk to the batter. The texture will be slightly denser but still delicious.
How do I know when the cake is fully baked?
Insert a toothpick into the center—it should come out clean or with just a few moist crumbs. The cake should also be golden brown and slightly domed in the center. For coconut cakes, check at 25 minutes to avoid overbaking, which can make them dry.
What’s the best way to store leftovers?
Wrap the cake tightly in plastic wrap and store at room temperature for 2 days, or refrigerate for up to 5 days. For longer storage, slice and freeze portions on a tray before transferring to a bag (3 months in the freezer). Reheat slices in the microwave for 10-15 seconds to restore moisture.
Can I add other flavors to this cake?
Try adding 1 teaspoon of matcha powder for an earthy twist or ½ teaspoon of cinnamon for warmth. For a fruity version, fold in ½ cup of diced mango or passionfruit into the batter. Just reduce the sugar slightly if using very sweet fruits.
