Most coconut cake recipes rely on shredded coconut alone for flavor, which mostly disappears into the crumb during baking. This version combines full‑fat canned coconut milk with coconut extract so the coconut flavor is built into the batter. The cake stays light and fluffy, the coconut cream cheese frosting adds a tangy counterpoint to the sugar, and a mix of toasted and raw shredded coconut pressed into the sides and top provides color and crunch. After testing and refining the method, this recipe yields a reliable coconut cake you’ll want to make again.

The Coconut Cake That Finally Tastes Like Real Coconut
Many coconut cakes end up tasting like vanilla with coconut sprinkled on top. This cake tastes like coconut throughout, not just on the outside. After three rounds of testing—first swapping milk for coconut milk, then adding coconut extract, and finally removing oil to correct texture—the final recipe gives clear, consistent coconut flavor without a greasy crumb. If you like a bit of chew, you can fold in finely chopped shredded coconut, but the recipe below keeps the texture smooth so every bite is tender and coconut-forward.

I also compared using only egg whites versus whole eggs to see whether the crumb would be noticeably lighter. The difference was negligible, so the recipe uses whole eggs to keep the process simple and to require fewer bowls. For the frosting I chose a coconut cream cheese frosting because the cream cheese adds brightness and balances the sweetness in a way a pure buttercream does not. Finally, pressing a combination of toasted and untoasted sweetened shredded coconut into the sides and top gives the cake an appealing contrast of color and texture.

Why This Coconut Cake Works
- Canned full‑fat coconut milk and coconut extract create real coconut flavor inside the batter, not just on the surface.
- Sour cream keeps the crumb moist and tender for several days.
- Coconut cream cheese frosting balances sweetness with a mild tang.
- A mix of toasted and raw sweetened shredded coconut around the cake adds color, crunch, and the classic look.
- The recipe adapts to either two thicker layers or three thinner layers depending on your pans.

Ingredient Notes
A few ingredient tips to ensure the best results:
- Coconut milk: use full‑fat canned coconut milk, not the low‑fat carton style. Canned coconut milk contributes flavor and moisture.
- Coconut extract: this ingredient transforms a faint coconut hint into a clear coconut profile. Don’t skip it even if you use canned coconut milk.
- Sour cream: keeps the crumb soft and tender. Full‑fat Greek yogurt can substitute in a pinch, though sour cream gives the best texture.
- Cream cheese: bring it to room temperature before making the frosting to avoid lumps.
- Sweetened shredded coconut for garnish: use sweetened shredded coconut, dividing it so half is toasted and half remains raw for a balanced look and texture.
Avoid desiccated or unsweetened coconut for the garnish. Those finer, drier forms can pull moisture from the cake; sweetened shredded coconut stays moister and presses onto the frosted sides more easily, producing the classic coconut cake appearance.

How to Make Coconut Cake from Scratch
Below are clear steps to bake, frost, and finish this coconut cake so it turns out reliably well.
Cake
Prep oven and pans: Preheat the oven to 350°F. Grease two or three 8‑inch round pans and line the bottoms with parchment circles.
Combine dry ingredients: Whisk together 2 1/2 cups (300 g) all‑purpose flour, 2 tsp baking powder, 1/2 tsp baking soda, and 1 tsp salt.
Cream butter and sugar: Beat 3/4 cup (170 g) unsalted butter with 1 1/2 cups (297 g) granulated sugar for 1–2 minutes until fluffy.
Mix in wet ingredients: Add 4 large eggs, 1 cup (227 g) sour cream, 1/2 cup (120 g) canned full‑fat coconut milk, 1 tbsp vanilla extract, and 1 tsp coconut extract; beat until combined.
Combine wet and dry: Gradually add the flour mixture and mix until just incorporated.
Divide and bake: Divide batter evenly among the pans (about 650 g / 3 cups per pan for two pans, or 433 g / 2 cups per pan for three pans). Bake two pans for 35–45 minutes or three pans for 30–40 minutes, until a toothpick comes out clean.
Cool: Cool in the pans for 20–30 minutes, run a small spatula around the edges, then remove and cool completely on a wire rack.


Coconut Cream Cheese Frosting
Cream butter and cream cheese: Beat 12 oz (340 g) room‑temperature cream cheese with 1 cup (226 g) unsalted butter for 1–2 minutes until whipped and smooth.
Add extracts and sugar: Add 1 tsp vanilla extract, 1/2 tsp coconut extract (or 1 tsp for more coconut flavor), 1/8 tsp salt, and half of the powdered sugar. Beat on low until incorporated, scrape the bowl, then add remaining powdered sugar (5–7 cups total) to reach the desired sweetness and consistency. Taste and adjust.
Toasted Coconut Garnish
Prep and toast: Preheat oven to 350°F. Spread 2 cups of shredded sweetened coconut in a single layer on a baking sheet. Bake 3 minutes, stir, then continue to bake in 2–3 minute intervals, stirring each time, until golden brown—about 6–10 minutes total. Let cool completely.

Assemble
Level: If needed, level the cooled cake layers with a cake leveler or serrated knife.
Frost: Put a small smear of frosting on your serving plate to anchor the cake. Place the first layer, spread about 1 cup of frosting over it, add the second layer and repeat. Use remaining frosting to coat the top and sides.
Add the coconut topping: Mix the toasted coconut with the remaining raw sweetened shredded coconut, then press handfuls of the mixture onto the sides and top of the frosted cake until covered.

Substitutions and Troubleshooting
- Want texture in the cake? Fold 1/2 to 1 cup finely chopped sweetened shredded coconut into the batter before dividing it into pans.
- Lighter frosting: Use stabilized whipped cream with 1/2 tsp coconut extract instead of the cream cheese frosting.
- Two pans vs. three: Two pans give thicker layers and a longer bake; three pans bake a bit faster with thinner layers.
- Filling option: Add a thin layer of lemon curd or coconut cream between layers for extra flavor contrast.
- Make ahead: Cake layers can be baked, cooled, wrapped tightly, and frozen for up to a month. Thaw at room temperature before assembling.
Chilling the layers before frosting makes stacking and decorating easier because the cake will be firmer. If you plan to decorate with detailed piping, chill layers for a couple hours or overnight.

Storing Cake with Cream Cheese Frosting
Store the frosted cake covered in the refrigerator for up to 5 days because of the cream cheese frosting. Before serving, let slices sit at room temperature for about 20 minutes so the crumb softens and the frosting becomes less firm.

FAQ
The combination of full‑fat canned coconut milk in the batter and coconut extract increases coconut flavor. Shredded coconut alone contributes less flavor when baked into a cake.
Coconut cream can be used but it makes the batter richer and slightly denser. Canned coconut milk gives the best balance of moisture and texture for this recipe.
No, toasting is optional. A mix of toasted and raw shredded coconut gives more color and texture, but all raw coconut will provide a lighter look.
Yes. Fill liners about two‑thirds full and start checking at 18–20 minutes for doneness.
Yes. Bake for approximately 32–39 minutes and test with a toothpick for doneness.
More Layer Cake Recipes
- Funfetti Cake
- Marble Cake
- Strawberry Cake
- Red Velvet Cake
Coconut Cake with Coconut Cream Cheese Frosting
Servings: 14 slices | Prep time: 15 minutes | Cook time: 38 minutes
Ingredients
Cake
- 2 1/2 cups (300 g) all-purpose flour
- 2 tsp baking powder
- 1/2 tsp baking soda
- 1 tsp salt
- 3/4 cup (170 g) unsalted butter, room temperature
- 1 1/2 cups (297 g) granulated sugar
- 4 large eggs, room temperature
- 1 cup (227 g) sour cream
- 1/2 cup (120 g) canned full-fat coconut milk
- 1 tbsp vanilla extract
- 1 tsp coconut extract
Coconut Cream Cheese Frosting
- 12 oz (340 g) cream cheese, room temperature
- 1 cup (226 g) unsalted butter, room temperature
- 1 tsp vanilla extract
- 1/2 tsp coconut extract (or 1 tsp for stronger flavor)
- 1/8 tsp salt
- 5–7 cups (576–791 g) powdered sugar, to taste
Garnish
- 4 cups sweetened shredded coconut, divided (toast half)
Instructions (summary)
- Preheat oven to 350°F. Grease and line two or three 8‑inch pans.
- Whisk flour, baking powder, baking soda, and salt. In another bowl, beat butter and sugar until fluffy.
- Add eggs, sour cream, coconut milk, vanilla, and coconut extract to the butter mixture and beat until combined. Fold in dry ingredients just until incorporated.
- Divide batter between pans and bake until a toothpick comes out clean. Cool in pans 20–30 minutes, then cool completely on a rack.
- For frosting, beat cream cheese and butter until smooth. Add extracts, salt, and powdered sugar in stages until desired sweetness and texture are reached.
- Toast 2 cups shredded coconut at 350°F until golden, stirring frequently, and cool. Mix toasted and raw coconut for the garnish.
- Assemble the cake with frosting between layers, coat the sides and top, and press coconut into the frosting to finish.
Storage
Store wrapped or covered in the refrigerator for up to 5 days. Bring slices to room temperature about 20 minutes before serving for the best texture.