Jump to Recipe
This post may contain affiliate links.
This Coconut Cake is a classic two-layer cake with incredibly moist, fluffy layers and bold coconut flavor. Each bite is enriched by shredded coconut in the batter and a creamy coconut cream cheese frosting that adds a subtle tang. The cake is finished with coconut flakes for texture and visual appeal, making it an elegant choice for holidays and celebrations.

The recipe combines shredded coconut, coconut milk and coconut extract in the batter for pronounced coconut flavor, while sour cream keeps the crumb tender. The coconut cream cheese frosting is smooth, slightly tangy and richly flavored — perfect for spreading between layers and over the top. Toasted coconut flakes on the outside add crunch and a beautiful finish.
If you enjoy layered cakes, try other favorites like Salted Caramel Cake, Classic Vanilla Birthday Cake or Tiramisu Layer Cake.
WHY THIS RECIPE WORKS
- Coconut cake layers: The layers are moist and infused with real coconut flavor from blended shredded coconut and coconut milk.
- Coconut cream cheese frosting: Cream cheese balances the sweetness with a slight tang while coconut milk and extract reinforce the coconut profile.
- Great for gatherings: The cake looks polished with toasted coconut and is ideal for holidays, birthdays or special occasions.

INGREDIENT NOTES
Key ingredients that influence texture and flavor. For the complete quantities, see the recipe card below.
- Butter: Bring to room temperature 1–2 hours before baking for easier creaming.
- Eggs: Use room-temperature eggs to ensure even mixing and structure.
- Coconut: Unsweetened shredded coconut is blended to a flour-like texture to add coconut flavor without large flakes in the crumb.
- Sour cream: Adds moisture and tenderizes the crumb; bring to room temperature before mixing.
- Coconut milk: Use full-fat coconut milk for the best flavor and moisture.
STEP BY STEP INSTRUCTIONS – CAKE LAYERS
This recipe is easiest with a stand mixer fitted with a paddle attachment or a hand mixer. Prepare two 20 cm (8 in) round pans lined with parchment paper.
Preheat: Set the oven to 170ºC / 340ºF (conventional).
Line two 20 cm (8 in) cake pans with parchment and grease lightly if desired.
STEP 1: Blend 100 g unsweetened shredded coconut in a food processor until it becomes a fine, flour-like texture. Sift it with the all-purpose flour, baking powder, baking soda and salt; set aside.
STEP 2: In a large bowl, cream 180 g room-temperature butter with 300 g granulated sugar on medium-high until light and fluffy.
STEP 3: Add four room-temperature eggs two at a time, mixing until incorporated. Add half of the dry ingredients on low speed and mix until just combined.


STEP 4: Add 120 g sour cream, 120 g full-fat coconut milk, 60 g vegetable oil, 2 teaspoons vanilla extract and 1/4 teaspoon coconut extract (optional). Mix until just combined, then add the remaining dry ingredients and mix until uniform.
STEP 5: Divide the batter between the prepared pans and bake 20–23 minutes, or until a cake tester inserted in the center comes out clean. Cool on a wire rack, remove from pans after about 10 minutes, and cool completely before frosting.
STEP BY STEP INSTRUCTIONS – FROSTING AND ASSEMBLING
STEP 6: For the frosting, cream 300 g butter in the stand mixer with the paddle attachment. Add 150 g full-fat cream cheese, 1 teaspoon coconut milk, 1/2–1 teaspoon coconut extract and 1/2 teaspoon vanilla bean paste; combine until smooth.
STEP 7: Sift 550 g powdered sugar and add it in two parts on low speed, letting each portion incorporate before adding the next. Scrape the bowl and mix briefly to achieve a spreadable consistency.
STEP 8: Assemble the cake: place the first layer on a serving plate, spread a generous scoop of frosting, level it, then top with the second layer. Apply a thin crumb coat and chill 20 minutes to firm. Finish with the remaining frosting and decorate with toasted coconut flakes if desired.


EXPERT BAKING TIPS
- Use a kitchen scale: Weights in grams are more accurate than cups and give consistent results, especially for baking.
- Don’t overmix: Finish with a gentle fold using a spatula to ensure any flour at the bottom is incorporated without developing too much gluten.
- Pan color matters: Light-colored (aluminum) pans reflect heat and bake more evenly; dark pans absorb heat and can brown the crust faster, potentially drying the cake.

FAQ
Yes. Bake the layers and make the frosting the day before. Wrap cooled cake layers in plastic wrap and keep at room temperature out of direct sunlight. Store the buttercream in an airtight container in the fridge; bring it to room temperature for about 30 minutes and re-whip briefly before assembling.
Insert a cake tester or toothpick into the center. If it comes out clean or with a few dry crumbs, the cake is done. If it has wet batter, bake a few minutes longer and test again.
HOW TO STORE
Store the frosted cake in an airtight container in the refrigerator. Remove from the fridge and let it come to room temperature before serving for the best flavor and texture. Consume within 1–2 days for optimal freshness.

Other Layer Cake Recipes To Try
- Bakery-Style Double Chocolate Muffins (One-Bowl)
- Everyday Bakes (Easy pantry-friendly recipes)
- Mixed Berry Sheet Cake with Mascarpone Cream
- Cherry Crumble Cheesecake
If you loved this recipe, please leave a star review and tag @juliemarieeats on Instagram. Pin ideas and more inspiration on Pinterest.

Coconut Cake
Pin Recipe
Equipment
- 2x 20 cm (8 in) baking pan
- Stand mixer or hand mixer
Ingredients
COCONUT CAKE LAYERS
- 100 g unsweetened shredded coconut
- 260 g all-purpose flour
- ¾ teaspoon baking powder
- ¾ teaspoon baking soda
- ¾ teaspoon salt
- 180 g butter, room temperature
- 300 g granulated sugar
- 4 large eggs, room temperature
- 120 g sour cream, room temperature
- 120 g full-fat coconut milk, room temperature
- 60 g vegetable oil
- 2 teaspoon vanilla extract
- ¼ teaspoon coconut extract (optional)
COCONUT CREAM CHEESE FROSTING
- 300 g butter
- 150 g full-fat cream cheese
- 550 g powdered sugar
- 1 teaspoon full-fat coconut milk
- ½–1 teaspoon coconut extract
- ½ teaspoon vanilla bean paste
- Coconut flakes for decoration
Weight measurements are recommended for precision. Use a digital scale for best results.
Instructions
COCONUT CAKE
- Preheat oven to 170ºC / 340ºF and line two 20 cm (8 in) pans with parchment paper.
- Blend shredded coconut to a fine, flour-like texture.
- Sift blended coconut with flour, baking powder, baking soda and salt; set aside.
- Cream butter and sugar for about 3 minutes until light and fluffy. Add eggs two at a time and beat until combined.
- Add half the dry ingredients on low speed and mix until just combined.
- Add sour cream, coconut milk, oil, vanilla and coconut extract; mix until combined. Add remaining dry ingredients and mix until uniform. Fold gently with a spatula if needed.
- Divide batter between pans and bake 20–23 minutes or until a toothpick comes out clean. Cool on a rack and remove from pans after 10 minutes; cool completely.
CREAM CHEESE FROSTING
- Bring butter and cream cheese to room temperature (about 10 minutes). Sift powdered sugar.
- Cream butter on high for 5 minutes, scrape bowl and mix 2 more minutes.
- Add cream cheese, vanilla bean paste, coconut milk and coconut extract; beat until combined.
- Add powdered sugar in two parts on low, scraping the bowl between additions. Finish with a 2-minute mix for a smooth texture.
ASSEMBLING
- Place one cake layer on a serving plate. Spread frosting to fill the layer, then add the second layer.
- Apply a thin crumb coat and chill 20 minutes. Finish frosting and smooth the sides. Decorate with toasted coconut flakes if desired.
Let us know how it was!