How to Make Coconut Cake That Stays Moist
In this article
The most common way a coconut cake goes wrong is a dry, crumbly sponge under a frosting that slides off, and both usually come from the same two habits: overbaking the layers and spreading frosting on a warm cake. Bake the layers at 350°F (175°C) for 25-30 minutes, until a toothpick comes out with a few moist crumbs, and cool them completely before frosting. Get those two things right and the rest is straightforward.
Set Up the Pan and the Oven Before You Mix the Coconut Cake Batter
Two 9-inch (23 cm) round pans are the standard size for this cake. Grease them, line the bottoms with parchment, then grease the parchment and dust the pans with flour. Skip the parchment and you will likely lose a layer's bottom crust to the pan.
Move an oven rack to the middle position and heat the oven to 350°F (175°C) for at least 15 minutes before baking. If your oven runs hot, an inexpensive oven thermometer tells you more than the dial does.
Have everything at room temperature: butter, eggs and milk. Cold butter creams poorly and cold eggs can make the batter look curdled. Set the eggs in a bowl of warm water for 10 minutes if you forgot to plan ahead.
Toast the coconut for the outside of the cake while the oven is heating. Spread 1½ cups (about 130 g) of shredded coconut on a rimmed baking sheet and bake at 350°F (175°C) for 5-8 minutes, stirring every 2 minutes, until it is light golden. Coconut goes from pale to burnt fast, so stay near the oven. Cool it fully and keep it in a covered bowl.
Mix the Coconut Cake Layers in the Right Order
The order below builds structure first and flavor last, which keeps the crumb tender instead of tough. This makes two 9-inch layers, enough for a two-layer cake serving 10-12.
Serves 10 · Prep 25 min · Cook 30 min · Total 1 hr 55 min
Ingredients
- 2¾ cups (330 g) all-purpose flour
- 2 tsp baking powder
- ½ tsp salt
- ¾ cup (170 g) unsalted butter, softened
- 1¾ cups (350 g) granulated sugar
- 4 large eggs, room temperature
- 1 tsp vanilla extract
- ½ tsp coconut extract (optional; leave it out if you don't have it)
- 1 cup (240 ml) whole milk, room temperature
- 1 cup (about 85 g) shredded coconut, plus 1½ cups (about 130 g) for toasting and finishing
For the coconut frosting
- 1 cup (225 g) unsalted butter, softened
- 4 cups (480 g) powdered sugar
- 3-4 tbsp (45-60 ml) coconut milk or whole milk
- 1 tsp vanilla extract
- ¼ tsp salt
Instructions
- Heat the oven to 350°F (175°C). Grease two 9-inch (23 cm) round pans, line the bottoms with parchment, grease the parchment and flour the pans.
- Whisk 2¾ cups (330 g) flour, 2 tsp baking powder and ½ tsp salt in a bowl and set aside.
- Beat ¾ cup (170 g) softened butter with 1¾ cups (350 g) sugar on medium speed for 3-4 minutes, until pale and fluffy, scraping the bowl once.
- Add the 4 eggs one at a time, beating 30 seconds after each and scraping down the bowl. Beat in 1 tsp vanilla and ½ tsp coconut extract if using.
- With the mixer on low, add the flour mixture in three additions alternating with 1 cup (240 ml) milk, starting and ending with flour. Mix only until the last streaks disappear, then fold in 1 cup (about 85 g) shredded coconut with a spatula.
- Divide the batter evenly between the pans, about 2½ cups (600 ml) each, and smooth the tops.
- Bake at 350°F (175°C) for 25-30 minutes, until the tops spring back when pressed lightly and a toothpick in the center comes out with a few moist crumbs. Rotate the pans front to back halfway through if your oven bakes unevenly.
- Cool the layers in the pans on a rack for 10 minutes, then run a knife around the edge, turn them out, peel off the parchment and cool completely, about 45 minutes.
- For the frosting, beat 1 cup (225 g) softened butter for 2 minutes, then add 4 cups (480 g) powdered sugar, 3 tbsp (45 ml) coconut milk, 1 tsp vanilla and ¼ tsp salt. Beat 2-3 minutes, adding the last tablespoon of milk only if the frosting is too stiff to spread.
- Set one layer on a plate, spread about ¾ cup (180 ml) frosting over it, set the second layer on top and press gently. Spread a thin coat over the top and sides, then refrigerate 15 minutes to set the crumb coat.
- Spread the remaining frosting over the cake and press the toasted coconut onto the top and sides with your hand, working over a sheet pan to catch the excess.
- Refrigerate the finished cake for at least 30 minutes before slicing so the layers firm up and cut cleanly.
Tell Whether the Coconut Cake Layers and Frosting Came Out Right
A finished layer is about 1½ inches (4 cm) tall, lightly golden, and pulls away from the pan edge by a hair. Press the center with a fingertip: it should spring back and feel dry, not leave an indent. If the toothpick comes out wet, bake 3 more minutes and check again.
Good buttercream holds a soft peak when you lift the beater and spreads without tearing the cake. If it looks grainy, it is usually too cold: beat in 1 tbsp (15 ml) of warm milk for 30 seconds. If it is soupy, beat in 2 tbsp (16 g) powdered sugar at a time.
After frosting, the cake should feel set on the outside after 30 minutes in the fridge, and a knife should slide through a slice without squashing it. The crumb should be moist but not wet at the bottom, and the coconut flavor should come through from the extract, the shredded coconut in the batter and the toasted topping together.
| Symptom | Likely cause | Fix |
|---|---|---|
| Dry, crumbly layers | Baked past the moist-crumb stage or flour packed into the cup | Pull the pans at 25 minutes and check; spoon flour into the cup and level it |
| Domed, cracked tops | Oven too hot or batter overmixed | Check the oven with a thermometer; trim the domes level once the layers are cool |
| Frosting slides off | Layers still warm | Cool fully, then chill the crumb coat 15 minutes before the final coat |
| Grainy frosting | Butter too cold | Beat in 1 tbsp (15 ml) warm milk |
| Burnt coconut topping | Toasted too long or too close to the element | Toast at 350°F (175°C) for 5-8 minutes, stirring every 2 minutes |
Swaps, Storage and Serving for Coconut Cake
For a lighter crumb, replace ½ cup (60 g) of the all-purpose flour with ½ cup (50 g) cake flour; the cake will be a little more tender and slightly less sturdy under heavy frosting. Coconut milk in place of the whole milk makes a denser, richer layer. Sweetened shredded coconut works in the batter, but reduce the sugar by 2 tbsp (25 g) because it carries its own sweetness. If you swap in a gluten-free flour blend, check the package for a recommended 1-to-1 baking ratio, since blends differ.
Cool the cake completely, then refrigerate it loosely covered. A frosted coconut cake keeps 3-4 days in the fridge; let slices sit at room temperature for 15-20 minutes before eating so the buttercream softens. Unfrosted layers can be wrapped tightly in plastic and frozen for up to 2 months; thaw them in the fridge overnight before frosting. Frosted cake freezes well for up to 1 month, sliced or whole, wrapped first in plastic and then foil. Any perishable cake with dairy frosting sits out no more than 2 hours, or 1 hour above 90°F (32°C).
For a layered look, split each cooled layer horizontally with a serrated knife and add about ½ cup (120 ml) frosting between the halves. A single 9-by-13-inch (23-by-33 cm) pan works too: bake 35-40 minutes at 350°F (175°C) and frost the top only. If you want a coconut cake for a potluck, keep it chilled in a cooler with ice packs until serving rather than leaving it on a warm table.
One safety note that matters here: this cake contains eggs and dairy, so keep it refrigerated and don't leave it out to "set" on the counter. And if you decorate with raw shredded coconut, toast it first as described, which also improves the flavor and texture.