Whole two-layer coconut cake covered in shredded coconut on a white cake stand, ready to slice for dessert

Coconut Cake: Easy 2-Layer Recipe, Soft and Moist

A coconut cake that tastes like coconut, not just sugar and flakes, needs one extra move: a warm coconut milk soak brushed over the baked layers. That quick step keeps the crumb tender for days, even under a thick blanket of cream cheese frosting.

I found this out the slow way, after a few batches that looked great on the stand and tasted dry by the second day. The coconut milk in the batter supplied flavor, but the soak is what held the moisture. Now the crumb is soft enough to cut with the side of a fork, and the taste runs toasty and milky rather than candy-sweet.

Two 9-inch layers, one can of full-fat coconut milk shared between the batter, the soak, and the frosting, and a heavy coat of sweetened shredded coconut on the outside: that is the whole plan. If you can cream butter and sugar, you can pull this coconut cake together in about 2 hours 40 minutes, and most of that is cooling time.

Why You’ll Love This Coconut Cake

Plenty of cakes look good on a stand, but this coconut cake earns its place for reasons you can taste:

  • The crumb stays soft because coconut milk and buttermilk share the batter, and a warm soak goes on after baking.
  • Coconut shows up three times: inside the batter, inside the frosting, and as chewy flakes on the outside.
  • Tangy cream cheese frosting keeps a thick slice from tasting cloying.
  • A hand mixer and two pans do all the work, so cleanup stays short.
  • Wrapped layers wait a full day, which lets you split the baking and the frosting across two evenings.
Slice of homemade coconut layer cake lifted out to show moist crumb and cream cheese frosting between the layers

Recipe Snapshot

DetailInfo
Prep Time40 minutes
Cook Time30 minutes
Rest Time1 hour 30 minutes
Total Time2 hours 40 minutes
Servings14 slices
DifficultyEasy
CuisineAmerican

Coconut Cake Ingredients

Each ingredient in this coconut cake has a job. Canned full-fat coconut milk brings fat along with flavor, so a lighter version leaves the layers pale in taste and short on tenderness. Buttermilk’s acid wakes up the baking soda for lift; with none on hand, stir 1 tablespoon of lemon juice into 1/2 cup of whole milk and wait 5 minutes. Unsweetened coconut in the batter adds chew without piling on sugar, while the sweetened flakes outside are stickier and cling to the frosting.

For the cake layers

  • 2 1/2 cups (315 g) all-purpose flour
  • 2 teaspoons baking powder
  • 1/2 teaspoon baking soda
  • 1/2 teaspoon salt
  • 3/4 cup (65 g) unsweetened shredded coconut
  • 1 cup (227 g) unsalted butter, softened
  • 1 3/4 cups (350 g) granulated sugar
  • 4 large eggs, at room temperature
  • 2 teaspoons vanilla extract
  • 1 cup (240 ml) full-fat canned coconut milk, shaken and at room temperature
  • 1/2 cup (120 ml) buttermilk, at room temperature

For the coconut soak

  • 1/3 cup (80 ml) full-fat canned coconut milk
  • 2 tablespoons granulated sugar

For the cream cheese frosting

  • 8 ounces (226 g) full-fat cream cheese, softened
  • 1/2 cup (113 g) unsalted butter, softened
  • 3 cups (360 g) powdered sugar
  • 3 tablespoons (45 ml) full-fat canned coconut milk
  • 1 teaspoon vanilla extract
  • 1/8 teaspoon salt

For the coating

  • 2 cups (170 g) sweetened shredded coconut

One 13.5-ounce (400 ml) can covers the batter, the soak, and the frosting.

All ingredients for an easy coconut cake laid out on a stone counter, including coconut milk and shredded coconut

Allergen & Dietary Disclosure

Wheat flour, eggs, and milk (through the butter, buttermilk, and cream cheese) are the main allergens present in this coconut cake, and some allergy guidance counts coconut as a tree nut while other guidance does not, so check with a doctor if that matters at your table. Gluten-free and dairy-free swaps are listed under Variations & Substitutions. Packaged ingredients can carry extra allergens, so read each label before you bake.

Equipment Needed

  • Two 9-inch round cake pans, 2 inches deep: parchment circles on the base help the layers slide out whole.
  • Hand mixer and a large mixing bowl: creaming takes a full 4 to 5 minutes, which is a long time to do by hand.
  • Kitchen scale: weighing flour and batter keeps the layers even.
  • Wire cooling rack: air moving underneath stops the bottoms from turning damp.
  • Pastry brush: it spreads the soak evenly without tearing the crumb.
  • Offset spatula: it smooths the frosting without dragging crumbs.

Preparation

Before starting to prepare coconut cake, take the butter, eggs, buttermilk, cream cheese, and coconut milk out of the fridge about an hour ahead. Set a rack in the center of the oven and preheat to 350°F (175°C). Butter the pans, press a parchment circle into each base, and dust the sides lightly with flour. Shake the coconut milk can hard for 10 seconds so the thick top and watery bottom blend, then measure the three portions into separate small bowls. Weigh the flour and both coconuts now, so the batter comes together without pauses.

Cold eggs or cold coconut milk make creamed butter seize into a curdled-looking batter. If you forgot to warm them up, set the eggs in warm tap water for 5 minutes and heat the coconut milk in a small saucepan for 20 seconds, just until the chill is gone.

How to Make Coconut Cake

Step 1: Whisk the Dry Mix

Tip the flour, baking powder, baking soda, and salt into a medium bowl and whisk for about 30 seconds so the leaveners spread evenly. Toss in the unsweetened coconut afterward. Coating the shreds in flour keeps them from drifting to the bottom of each layer as it bakes.

Step 2: Cream Butter and Sugar

Beat the softened butter and granulated sugar on medium-high speed for 4 to 5 minutes, pausing once to scrape the bowl. The mixture should turn pale ivory and look almost fluffy, close to double its starting volume. That long beating whips tiny air pockets into the fat, and those pockets are the main source of lift in a coconut cake.

Step 3: Build the Batter

Beat in the eggs one at a time, then the vanilla, scraping the bowl so no streaks of butter hide underneath; wash your hands after cracking the eggs and keep tasting spoons out of the raw batter. Stir the coconut milk and buttermilk together in a jug. On low speed, work in a third of the flour, then half the liquid, then another third of the flour, then the rest of the liquid, finishing with the last of the flour. 

Chef’s Note: Stop the mixer the moment the final streak of flour disappears, because every extra turn builds gluten and trims the softness.

Step 4: Bake the Layers

Divide the batter between the prepared pans, about 770 g each if you weigh it, and smooth the tops with a spatula. Slide both into the center of the 350°F oven for 28 to 32 minutes, until the tops spring back under a light fingertip press and a toothpick comes out with a few moist crumbs. Let the coconut cake layers rest in their pans for 15 minutes, then turn them out onto a wire rack to cool for a full hour.

Step 5: Soak the Layers

Warm the 1/3 cup of coconut milk with 2 tablespoons of sugar in a small saucepan over medium-low heat for about 1 minute, stirring until the grains disappear. Let it cool for 5 minutes, then brush half over the top of each cooled layer and leave it to sink in while you make the frosting. The surface should look glossy and a shade darker, with no puddles.

Step 6: Whip the Frosting

Beat the cream cheese and butter together on medium speed for about 2 minutes, until the mixture looks smooth with no lumps. Turn the mixer to low and work in the powdered sugar a cup at a time, then drizzle in the coconut milk, vanilla, and salt and beat for 1 more minute. Scrape the bowl once more so no pocket of plain cream cheese hides underneath.

Beat the frosting only until it looks smooth once the coconut milk goes in. Longer whipping warms the cream cheese and thins the texture. If it droops off the spatula instead of holding a soft peak, chill the bowl for 15 minutes.

Step 7: Assemble and Coat

Set one layer on a serving plate, soaked side up, and spread 1 cup of frosting to the edges before topping it with the second layer, soaked side up. Cover the whole cake with a thin crumb coat of frosting and chill it for 15 minutes, until the surface feels firm to a light touch. Spread the remaining frosting over the top and sides, then press the sweetened shredded coconut onto the sides with a cupped palm and scatter the rest over the top. 

Chef’s Note: Hold the plate over your empty mixing bowl while pressing coconut onto the sides, and every stray flake drops where you can scoop it back up.

Four-step collage of making a from-scratch coconut cake: creaming, mixing batter, brushing on coconut soak, and coating with flakes

Pro Tips for Perfect Coconut Cake

  • My own slip: I frosted a layer that felt cool on top but still held warmth in the center, and the frosting slid off in a slow slump. Press your palm against the underside of each layer, and give it 15 more minutes on the rack if you feel any warmth.
  • Bake the layers a day ahead, wrap each one in plastic wrap once fully cool, and soak and frost on serving day.
  • Once frosted, the cake holds in the fridge for 4 days (full details sit under Storage Instructions).
  • Weigh the 315 g of flour. A scooped cup often packs in far more than a spooned and leveled one, and extra flour turns a coconut cake dense.
  • Pull the cake from the fridge 30 minutes before slicing, since a chilled coconut cake mutes the coconut flavor and firms up the butter in the crumb.
  • Cut the butter and cream cheese into 1-inch cubes, and both reach spreadable softness in about 20 minutes instead of an hour.

Coconut Cake Troubleshooting

Even a simple coconut cake can go sideways, so here are the five problems that come up most.

The crumb is dry. Overbaking and scooped flour are the usual causes. Weigh the flour and start checking at 28 minutes. A finished cake that already feels dry can be rescued with another round of soak and a 10-minute wait.

The center sinks. An oven door opened early or underbaked layers are the likely reasons. Keep the door closed for the first 20 minutes and look for a springy center before you pull the pans. A shallow dip is easy to hide with extra frosting when you stack.

The layers stick. Skipped parchment is the cause. Run a thin knife around the edge after the 15-minute rest. For a layer that is already stuck, set the pan on a warm, damp towel for 2 minutes and try again.

The frosting turns grainy. Lumpy powdered sugar or cold cream cheese does it. Sift the sugar when it looks clumpy. To rescue a grainy batch, beat in 1 teaspoon of coconut milk for 30 seconds.

The coconut falls off. Frosting that has set too firm, or fingertip pressing, leaves flakes loose. Press with a cupped palm while the frosting is still tacky, and dab fresh frosting over any bare patch before pressing again.

Variations & Substitutions

A coconut cake takes well to small changes. Pick one and leave the rest of the method alone.

  • Spicy: Whisk 1 teaspoon ground ginger, 1/2 teaspoon cinnamon, and 1/4 teaspoon ground cardamom into the flour, plus a tiny pinch of cayenne for a slow warmth at the back of each bite.
  • Mild and kid-friendly: Skip the coating on the sides, press shredded coconut on top only, and finish with colorful sprinkles. Kids who dislike chewy flakes still get the soft, creamy flavor.
  • Vegetarian: The cake is vegetarian as written, since eggs and dairy do all the structural work.
  • Gluten-free: Use a 1:1 gluten-free baking blend that already includes xanthan gum, rest the batter for 10 minutes, and check the layers at 25 minutes.
  • Dairy-free: Choose plant-based butter and plant-based cream cheese, and swap the buttermilk for 1/2 cup more coconut milk plus 1 teaspoon lemon juice.
  • Lime: Fold the zest of 2 limes into the frosting for a bright edge.
  • Coconut and chocolate: For a chocolate version with a coconut pecan frosting, try German chocolate cake.

Serving Suggestions

Cut the coconut cake with a long knife dipped in hot water and wiped between slices, and put something bright on the plate to offset the richness. Fresh mango cubes, pineapple, or raspberries do that job well. A spoonful of passion fruit purée makes a sharp, juicy sauce. For garnish, scatter toasted coconut chips and a little lime zest on top. Cardamom tea, strong black coffee, or a cold glass of milk all pair well, and a slice makes a cool, creamy ending to a spicy curry dinner.

Storage Instructions

A frosted coconut cake carries cream cheese, so it needs the fridge sooner than a plain butter cake does.

Room Temperature: Up to 2 hours while serving; beyond that, not recommended.

Refrigerator: Chill the finished coconut cake uncovered for 20 minutes until the frosting firms, then cover with a cake dome or lidded carrier. The crumb stays soft for about 4 days.

Freezer: Freeze slices of coconut cake on a tray for 1 hour, then wrap each one in plastic wrap and foil. They hold for about 2 months.

Reheating: Thaw slices in the fridge overnight, then rest them on the counter for 30 minutes. A tight-feeling crumb loosens with a brush of 1 teaspoon warm coconut milk.

Make-Ahead Notes: Bake and wrap the layers 1 day ahead. Make the frosting up to 2 days ahead and beat it briefly before spreading.

Press a small piece of parchment against the cut face of a partly eaten coconut cake, so the crumb does not dry out or pick up fridge odors.

Sliced coconut cake stored in a glass container with parchment between pieces, ready for the fridge

Nutrition Information

NutrientPer Serving
Serving Size1 slice, about 1/14 of the cake
Calories720
Protein8 g
Carbohydrates78 g
Fat43 g
Fiber3 g
Sugar58 g
Sodium300 mg

Eggs and cream cheese supply some protein, and the shredded coconut adds roughly 3 g of fiber per slice. A slice of this coconut cake is rich and sweet, so thin slices go a long way. Treat these figures as a close estimate built from standard ingredient amounts, since your slice size, frosting thickness, and chosen products will nudge the numbers up or down.

Frequently Asked Questions

Yes, the coconut cake batter fits one greased, parchment-lined 9×13-inch pan. Bake it at 350°F for 35 to 40 minutes, soak it the same way, and frost only the top.

No. Cream of coconut is a sweet, syrupy product made for drinks, and it would turn the batter too sweet and heavy. Stay with full-fat canned coconut milk for this coconut cake.

You can. Sweetened flakes brown fast, so spread them on a sheet pan and toast at 350°F for 5 to 7 minutes, stirring once or twice, until pale gold, then cool them fully before pressing them on.

Yes. Fill lined muffin cups two-thirds full for about 24 cupcakes and bake at 350°F for 18 to 22 minutes. Brush each with a teaspoon of the coconut soak once cool, then frost.

Conclusion

The best slice of this cake comes the next afternoon, once the soak has settled into the crumb and the frosting has firmed against its coat of flakes. Plan around that if you are baking for a party, and the work will feel half as heavy on the day itself.

Make the coconut cake once as written, then change one thing the second time, maybe the lime zest or the toasted flakes, so you learn which direction your table prefers. My own habit is to keep an extra can of coconut milk in the pantry, because someone always asks for a second cake.

Pin this coconut cake recipe to a board for birthday cakes or weekend baking, so the soak trick and the 350°F timing are one tap away the next time coconut cravings hit.

Whole two-layer coconut cake covered in shredded coconut on a white cake stand, ready to slice for dessert

Coconut Cake

Two tender coconut milk layers, brushed with a warm coconut soak and stacked with tangy cream cheese frosting. A thick coat of chewy shredded coconut finishes the outside. It slices cleanly and tastes even better after a night in the fridge.
Prep Time 40 minutes
Cook Time 30 minutes
Rest Time 1 hour 30 minutes
Total Time 2 hours 40 minutes
Servings: 14 slices
Course: Dessert
Cuisine: American
Calories: 720

Ingredients
  

For the cake layers
  • 2 1/2 cups 315 g all-purpose flour
  • 2 teaspoons baking powder
  • 1/2 teaspoon baking soda
  • 1/2 teaspoon salt
  • 3/4 cup 65 g unsweetened shredded coconut
  • 1 cup 227 g unsalted butter, softened
  • 1 3/4 cups 350 g granulated sugar
  • 4 large eggs at room temperature
  • 2 teaspoons vanilla extract
  • 1 cup 240 ml full-fat canned coconut milk, shaken and at room temperature
  • 1/2 cup 120 ml buttermilk, at room temperature
For the coconut soak
  • 1/3 cup 80 ml full-fat canned coconut milk
  • 2 tablespoons granulated sugar
For the cream cheese frosting
  • 8 ounces 226 g full-fat cream cheese, softened
  • 1/2 cup 113 g unsalted butter, softened
  • 3 cups 360 g powdered sugar
  • 3 tablespoons 45 ml full-fat canned coconut milk
  • 1 teaspoon vanilla extract
  • 1/8 teaspoon salt
For the coating
  • 2 cups 170 g sweetened shredded coconut
  • One 13.5-ounce 400 ml can covers the batter, the soak, and the frosting.

Method
 

  1. Whisk the flour, baking powder, baking soda, and salt, then toss in the unsweetened coconut.
  2. Beat the butter and sugar for 4 to 5 minutes until pale and fluffy.
  3. Beat in the eggs and vanilla, then alternate the flour with the coconut milk and buttermilk, stopping at the last flour streak.
  4. Divide the batter between two prepared 9-inch pans and bake at 350°F for 28 to 32 minutes. Rest 15 minutes in the pans, then cool 1 hour on a rack.
  5. Warm the coconut milk with the sugar for 1 minute, cool for 5 minutes, and brush it over both layers.
  6. Beat the cream cheese and butter, work in the powdered sugar, then add the coconut milk, vanilla, and salt.
  7. Stack the layers, crumb coat and chill 15 minutes, frost, and press the sweetened coconut onto the cake.

Notes

  • Shake the coconut milk can before measuring. 
  • Cool layers fully before frosting. 
  • Stop mixing the batter as soon as the flour streaks disappear.
STORAGE: 
  • Fridge: about 4 days, covered. 
  • Freezer: slices, wrapped, about 2 months. 
  • Reheat: thaw slices in the fridge overnight, then rest 30 minutes at room temperature.
ALLERGENS: Contains wheat, eggs, and milk (coconut is counted as a tree nut by some allergy guidance).

Similar Posts