This tropical pineapple coconut cake is two 8 inch coconut layers made with coconut milk, buttermilk and shredded coconut, filled with a cooked crushed pineapple filling and covered in whipped cream frosting and more coconut. The layers bake at 350°F for 28 to 32 minutes, and the cake cuts into 12 slices.
The trick is temperature. Cold layers, cold filling, then a 30 minute chill, and the layers stay put when you slice.

The Pineapple Coconut Cake in Numbers
- Pans: two 8 inch round pans, greased and lined with parchment
- Bake: 350°F (175°C) for 28 to 32 minutes
- Card times: 30 minutes prep, 30 minutes baking, 1 hour 20 minutes in total; the layers need to cool completely before filling, and the finished cake chills 30 minutes
- Filling: 1½ cups crushed pineapple, ¼ cup juice, ⅓ cup sugar, 1 tbsp cornstarch, 1 tbsp lemon juice
- Frosting: 2 cups heavy cream, ½ cup powdered sugar, optional 8 oz cream cheese
- Serves: 12 slices; keeps 2 days covered in the fridge
What Each Ingredient Does in the Coconut Layers

Full-fat coconut milk gives the crumb fat and coconut flavor without thinning the batter. Light coconut milk makes a weaker, drier layer. Buttermilk adds acid, which softens the crumb and reacts with the ½ teaspoon of baking soda, while 1 tablespoon of baking powder does most of the lifting.
Butter, not oil, gives a tighter crumb that holds up under a wet filling. Granulated sugar keeps the cake pale and lets the coconut and pineapple taste clean. Vanilla goes in at 1½ teaspoons, and the teaspoon of coconut extract is optional but gives the layers a stronger coconut smell. The cup of sweetened shredded coconut is folded in last; it keeps the crumb moist for days.
Canned coconut milk separates in the can. Stir it smooth, and let it and the buttermilk sit out until they are no longer fridge cold. Cold liquid poured into creamed butter makes it seize into small curds.
Mixing and Baking Two 8 Inch Coconut Layers

Cream the butter and 1¾ cups sugar for 3 to 4 minutes, until pale and fluffy. Beat in the 4 eggs one at a time, then the extracts. Add the dry ingredients in three parts, alternating with the coconut milk and buttermilk, starting and ending with flour. Stop mixing as soon as the flour disappears, then fold in the coconut with a spatula.

Divide the batter evenly and smooth the tops. Two 8 inch layers bake flatter and cool faster than one deep cake, which makes stacking simpler; I have tried three pans too, and the thinner layers dry out sooner. The layers are done at 28 to 32 minutes when a toothpick comes out clean, the tops spring back, and the edges just pull away from the pan. Cool 10 minutes in the pans, then completely on a rack. The same two layer method is behind my moist vanilla cake.
Coconut Cake With Pineapple Filling: Cooking the Filling

Drain the crushed pineapple and save the juice. Put 1½ cups of the drained fruit in a saucepan with ¼ cup of the juice, ⅓ cup sugar, 1 tablespoon cornstarch, 1 tablespoon lemon juice and a pinch of salt. Stir over medium heat for 5 to 7 minutes. It is ready when it bubbles, turns glossy and starts to pull away from the sides of the pan.
Cornstarch only thickens fully once it boils, so a filling that never bubbled stays loose and lets the top layer slide. Cooked too long, it turns gummy. Cool it completely, and make it the day before if you like; it keeps covered in the fridge. Lemon juice keeps the sweetness in check, and orange juice works in a pinch with a softer, duller taste.
Canned crushed pineapple gives an even texture and the juice the filling needs. Fresh pineapple is juicier and less predictable; chop it very fine and cook it in the filling. Raw pineapple has an enzyme that softens dairy, so keep fresh wedges for the top and add them just before serving. For a bigger batch to use in other cakes, see my pineapple cake filling.
Whipped Cream or Cream Cheese Frosting for This Cake?

The frosting here is whipped cream: 2 cups heavy cream, ½ cup powdered sugar and 1 teaspoon vanilla, whipped in a chilled bowl to soft peaks that hold a curl. It is light and lets the pineapple lead. It is also soft, so it is best for a cake served the same day or the next.
For a firmer frosting, beat 8 ounces of softened cream cheese separately until smooth, then fold it gently into the whipped cream. This version holds its shape for piping and stands up better in the fridge. Do not keep whipping once it is stiff; overbeaten cream turns grainy.
There is no coconut in the frosting itself. The coconut flavor comes from the layers and the shredded coconut pressed on the outside. If you want a true coconut frosting, use coconut whipped cream for a dairy light finish or coconut cream cheese frosting for a thicker, tangier one.
Stacking the Layers So They Do Not Slip
- Start only when the layers and the filling are both completely cold. Any warmth melts the cream and loosens the filling.
- Spread the filling over the bottom layer, stopping about ½ inch from the edge so the weight of the top layer does not push it out.
- With the cream cheese frosting, pipe a thin ring around the edge first as a dam, then fill inside it.
- Chill the filled cake for 15 minutes, then frost the top and sides with an offset spatula.
- Press shredded coconut onto the sides and top, and chill at least 30 minutes before slicing. Overnight gives the cleanest cuts.
Serving and Storing Pineapple Coconut Cake

Keep the frosted cake covered in the fridge for up to 2 days. The frosting is whipped cream, so it should not sit out for long. Freezing the frosted cake does not work well, but the unfrosted layers freeze for up to a month, wrapped tightly; thaw them before filling. A sprinkle of toasted coconut on top, a few pineapple wedges or mint leaves just before serving, and a scoop of mango sorbet on the side all suit it. For a chilled, creamy cake on the same plan, try my lemon mascarpone cake.
Other Coconut and Pineapple Cakes
- Southern sour cream coconut cake, an all coconut layer cake
- Pineapple heaven cake, a simpler pineapple sheet cake
- Coconut pound cake, for a sturdy loaf that travels well
Pineapple Coconut Cake Recipe
Made it? Tap the stars to rate it.
This pineapple coconut cake is a two layer coconut cake made with full-fat coconut milk, buttermilk and shredded coconut, filled with a cooked crushed pineapple filling and covered in whipped cream frosting and more coconut. The two 8 inch layers bake at 350°F for 28 to 32 minutes, and the cake serves 12 slices with a soft, moist crumb and a bright, tangy middle. The filling is cooked with cornstarch until glossy and cooled completely, so this coconut cake with pineapple filling slices cleanly without the layers slipping. Bake it for birthdays, Easter, summer parties or any table that wants a tropical cake. Add 8 oz cream cheese to the frosting for a firmer finish, and keep the cake covered in the fridge for up to 2 days.
Ingredients
- FOR THE COCONUT CAKE LAYERS
- 2 ½ cups (310g) all-purpose flour
- 1 tbsp baking powder
- ½ tsp baking soda
- ½ tsp salt
- 1 cup (240ml) coconut milk (full-fat)
- ½ cup (120ml) buttermilk
- ¾ cup (170g) unsalted butter, room temperature
- 1 ¾ cups (350g) granulated sugar
- 4 large eggs
- 1 ½ tsp pure vanilla extract
- 1 tsp coconut extract (optional)
- 1 cup (75g) sweetened shredded coconut
- FOR THE PINEAPPLE FILLING
- 1 ½ cups (about 350g) crushed pineapple, drained with juice reserved
- ¼ cup (60ml) pineapple juice
- ⅓ cup (70g) granulated sugar
- 1 tbsp cornstarch
- 1 tbsp lemon juice
- Pinch of salt
- FOR THE WHIPPED CREAM FROSTING
- 2 cups (480ml) heavy whipping cream
- ½ cup (60g) powdered sugar
- 1 tsp vanilla extract
- Optional: 8 oz (225g) cream cheese, softened
- GARNISH
- Sweetened shredded coconut
- Fresh pineapple wedges or mint leaves (optional)
Instructions
- PREPARE THE CAKE PANS: Preheat oven to 350°F (175°C). Grease and line two 8-inch round cake pans with parchment paper.
- MIX DRY INGREDIENTS: In a medium bowl, whisk together the flour, baking powder, baking soda, and salt. Set aside.
- CREAM BUTTER AND SUGAR: In a large mixing bowl, beat the butter and granulated sugar together until light and fluffy, about 3 to 4 minutes using a hand or stand mixer on medium speed.
- ADD EGGS AND EXTRACTS: Add eggs one at a time, mixing well after each. Stir in the vanilla extract and coconut extract if using.
- ALTERNATE WET AND DRY: In a measuring cup, combine coconut milk and buttermilk. Add the dry ingredients to the butter mixture in three parts, alternating with the coconut milk mixture, beginning and ending with the dry ingredients. Mix until just combined.
- FOLD IN COCONUT: Gently fold in the sweetened shredded coconut with a spatula, making sure it's evenly distributed.
- BAKE THE CAKES: Divide batter evenly between prepared pans and smooth the tops. Bake for 28 to 32 minutes, or until a toothpick inserted in the center comes out clean.
- COOL COMPLETELY: Let cakes cool in pans for 10 minutes, then turn out onto wire racks and cool completely before filling and frosting.
- COOK THE FILLING: In a medium saucepan, combine crushed pineapple, ¼ cup reserved juice, sugar, cornstarch, lemon juice, and a pinch of salt. Cook over medium heat, stirring constantly, until thickened and glossy, about 5 to 7 minutes. Let cool completely.
- WHIP THE CREAM: In a chilled mixing bowl, whip heavy cream, powdered sugar, and vanilla until soft peaks form. If using cream cheese, beat it separately until smooth, then gently fold into the whipped cream to create a stable frosting.
- ASSEMBLE THE CAKE: Place one cake layer on a serving plate. Spread a generous amount of pineapple filling over the top, keeping it slightly away from the edges. Top with the second cake layer.
- FROST THE CAKE: Spread the whipped cream frosting over the top and sides of the cake using an offset spatula or the back of a spoon. If using cream cheese in the frosting, it will hold its shape better for piping or decorative finishes.
- GARNISH AND CHILL: Press shredded coconut gently onto the sides and top of the cake for decoration. Garnish with fresh pineapple or mint if desired. Chill at least 30 minutes before serving for clean slices.
Notes
Use full-fat coconut milk, stirred smooth, and let it and the buttermilk come to room temperature so the creamed butter does not curdle. Cook the pineapple filling until it bubbles and turns glossy, 5 to 7 minutes; cornstarch only thickens fully once it boils. Make sure the filling and the cake layers are completely cool before layering, and spread the filling to about ½ inch from the edge so it does not slip out. Whip the cream to soft peaks only; overwhipped cream turns grainy. For a firmer frosting, fold in the softened cream cheese. Chill the cake at least 30 minutes before slicing. Store the frosted cake covered in the refrigerator for up to 2 days. Unfrosted layers can be frozen, well wrapped, for up to 1 month.
Nutrition Information
Yield
12Serving Size
1Amount Per Serving Calories 592Total Fat 40gSaturated Fat 28gUnsaturated Fat 12gCholesterol 144mgSodium 403mgCarbohydrates 52gFiber 3gSugar 31gProtein 7g

Made it? Tap the stars to rate it