Easy Gluten-Free Coconut Cake That Stays Soft for Days
This gluten-free coconut cake is the kind of dessert that disappears fast on a weeknight. It has a tender crumb and a gentle coconut flavor that doesn’t overpower.

A simple blend of gluten-free flour and full-fat coconut milk keeps it soft, even after a day on the counter. No dry, crumbly texture from a recipe that actually works the first time.
Why This Coconut Cake Works
The full-fat coconut milk and oil give the cake a moistness that holds up for days. You can taste the coconut, but it’s subtle, not like suntan lotion.
A whipped coconut cream frosting adds a light finish that feels just sweet enough. The toasted coconut on top brings a little crunch that contrasts the soft crumb.
It all comes together in one bowl, so you are not chasing down a dozen steps. The result is a cake you can serve warm on a Tuesday or chilled from the fridge the next morning.
Ingredients

- 1 ½ cups gluten-free all-purpose flour blend: one that includes xanthan gum, so the cake holds together
- ½ cup unsweetened shredded coconut: plus extra to toast for topping
- 1 cup granulated sugar: gives the crumb tenderness and a clean sweetness
- 2 teaspoons baking powder: the main leavening that creates lift
- ½ teaspoon salt: balances the sugar and rounds out the flavor
- 2 large eggs: room temperature, so they blend without seizing the coconut oil
- ½ cup coconut oil, melted and cooled slightly: use refined for a neutral taste, or unrefined for a bolder coconut note
- 1 cup full-fat canned coconut milk: shake the can well; the richness locks in moisture
- 2 teaspoons vanilla extract: deepens the coconut without taking over
For the frosting:
- 1 can (13.5 oz) full-fat coconut cream or coconut milk: chilled at least 8 hours so the solids separate
- 2 tablespoons powdered sugar: sweetens lightly without making the frosting grainy
- ½ teaspoon vanilla extract
- Toasted shredded coconut: for sprinkling
Variations / Substitutions
- Flour blend: any 1:1 gluten-free flour with xanthan gum works. If the blend does not have it, add ¼ teaspoon xanthan gum to prevent crumbling.
- Coconut oil: melted butter works if you are not dairy-free. The cake will be a little denser but still good.
- Sugar: you can swap in coconut sugar; it deepens the color and adds a mild caramel tone.
- Egg-free: use 2 flax eggs (2 tablespoons flaxseed meal + 5 tablespoons water). The rise will be slightly lower, but the cake stays moist.
- Frosting shortcut: a simple dusting of powdered sugar and toasted coconut tastes nice too, if you want to skip the whip.
If you love a strong coconut note, try a Coconut Rice Pudding for the same creamy, toasted flavor.
How to Make Easy Gluten-Free Coconut Cake
Step 1: Mix the Dry Ingredients

Preheat the oven to 350°F (175°C) and line an 8-inch round cake pan with parchment. In a large bowl, whisk together the 1 ½ cups gluten-free flour blend, ½ cup shredded coconut, 1 cup sugar, 2 teaspoons baking powder, and ½ teaspoon salt.
The mixture will look sandy and smell faintly of coconut. Pinch any clumps of baking powder with your fingers so they don’t leave bitter pockets.
Step 2: Whisk the Wet Ingredients

Crack the 2 eggs into a separate bowl and whisk until smooth, about 30 seconds. Pour in the ½ cup melted coconut oil, 1 cup coconut milk, and 2 teaspoons vanilla extract. Whisk again for 1 minute, until everything looks creamy and even.
The liquid should be slightly thick, with no streaky oil on top. If your coconut milk separated in the can, a quick shake or a few extra whisks will bring it back together.
Step 3: Fold the Batter Together

Pour the wet mixture into the dry ingredients. Switch to a spatula and fold gently, just until no dry streaks remain. That takes about 20 strokes. Overmixing here risks a tough crumb, so stop as soon as the flour disappears.
The batter will be thick but pourable, dotted with shreds of coconut. A few small lumps are fine, they smooth out as the cake bakes.
Step 4: Bake the Cake

Scrape the batter into the prepared pan and level the top with your spatula. Slide it into the oven and bake for 32 to 36 minutes. Test with a toothpick in the center; it should come out with a few moist crumbs, not wet batter.
The edges will pull slightly from the pan and the top will turn golden. Let the cake cool in the pan for 10 minutes, then turn it out onto a wire rack. Wait until it is completely cool before you frost, or the cream will melt.
Step 5: Frost and Slice the Cake

Open the chilled can of coconut cream without shaking it. Scoop the solid white cream into a bowl, leaving the watery liquid behind. Add the 2 tablespoons powdered sugar and ½ teaspoon vanilla. Beat with a hand mixer on medium speed for 2 to 3 minutes, until the cream turns fluffy and soft peaks hold.
Spread the frosting over the cooled cake with an offset spatula. Scatter toasted shredded coconut on top. Slice into wedges and serve right away, or chill the cake for a few hours so the frosting sets firm.
Tips for a Soft, Moist Gluten-Free Cake
- Pick the right flour blend: A blend with xanthan gum already added gives the cake structure. If yours does not have it, the cake will crumble apart when you slice it.
- Chill the coconut cream deeply: The can needs at least 8 hours in the fridge, and the colder the cream, the fluffier the whip. Pop the bowl and beaters in the freezer for 10 minutes too if your kitchen is warm.
- Toast the coconut: Spread shreds on a dry pan over medium heat and shake for 2 to 3 minutes until golden. It adds a nutty depth that makes the topping pop.
- Serve it cold or at room temp: The cake stays moist either way, but the frosting keeps its shape best straight from the fridge on a warm day.
Bake times by pan:
| Pan | Material | Time |
|---|---|---|
| 8-inch round | metal | 32 to 36 mins |
| 9-inch round | metal | 28 to 32 mins |
| 8×8 square | metal | 30 to 34 mins |
Storing Leftovers
- Refrigerate: Cover the frosted cake loosely and keep it in the fridge for up to 4 days. The crumb actually gets a little more tender as it sits.
- Reheating: None needed. You can let a slice sit on the counter for 10 minutes to take off the chill, but it’s lovely cold too.
- Freezing: Wrap the unfrosted cake layer tightly in plastic and freeze for up to 1 month. Thaw on the counter, then frost fresh.
Frequently Asked Questions
Can I use coconut flour instead of the gluten-free blend?
No. Coconut flour absorbs far more liquid and will turn the cake dry and dense. This recipe is built for a grain-based gluten-free blend.
Is this cake already dairy-free?
Yes, as long as you use coconut oil and full-fat coconut milk. There is no butter or cream in the cake itself.
How do I make it egg-free?
Swap the eggs for 2 flax eggs. The cake will rise a little less and have a slightly denser crumb, but the moisture stays.
Can I make the frosting ahead?
The whipped coconut cream holds in the fridge for up to 2 days. Give it a quick re-whip with a mixer before spreading if it loosens.
Does the frosting melt at room temperature?
It softens after about 1 hour in a warm room. For the cleanest slices, keep the cake chilled until you are ready to serve.

Easy Gluten-Free Coconut Cake Recipe
Ingredients
Method
- Preheat oven to 350°F (175°C). Line an 8-inch round pan with parchment. Whisk flour blend, shredded coconut, sugar, baking powder, and salt in a large bowl.
- In a separate bowl, whisk eggs, then add coconut oil, coconut milk, and vanilla. Whisk until smooth.
- Pour wet into dry and fold with a spatula just until no dry streaks remain.
- Scrape batter into the pan and bake for 32 to 36 minutes, until a toothpick comes out with a few moist crumbs. Cool 10 minutes in the pan, then transfer to a rack to cool completely.
- Scoop the solid coconut cream into a bowl, add powdered sugar and vanilla, and beat until fluffy. Spread over the cooled cake, top with toasted coconut, slice, and serve.
