Home » Cake Recipes » Pineapple Coconut Cake
Pineapple coconut layer cake displayed as a collage showing a frosted round cake with a sliced section and a plated cake slice, featuring vanilla cake layers, coconut frosting, and a bright pineapple filling on a light marble background with pineapple coconut cake text overlay.

Tropical Pineapple Coconut Cake with Whipped Cream Frosting

This pineapple coconut cake recipe brings together moist coconut layers and a thick, bright pineapple filling in a clean, sliceable dessert that holds beautifully on the plate. The combination of coconut milk, buttermilk, and shredded coconut gives the base a rich, soft texture, while the cooked pineapple layer adds tang and structure. It’s a classic coconut pineapple cake recipe built for summer birthdays, spring brunches, or anyone craving tropical desserts. This coconut cake with pineapple layers finishes with whipped cream frosting, delivering a coconut dream that feels light but satisfying.

Pineapple coconut cake collage showing a fully frosted coconut-covered layer cake and a single cake slice with pineapple filling, white coconut frosting, and soft yellow crumb, styled on a marble surface with bold pineapple coconut cake text.

This cake holds together because of its balance between structure and softness. The cake layers get moisture from full-fat coconut milk and buttermilk, but still bake up with enough strength to support the pineapple filling without sliding apart. Using both baking powder and baking soda gives the batter a balanced lift.

Glass bowl of dry cake ingredients being whisked together, including flour and leavening, with small ingredient bowls arranged around it on a white marble countertop.

The shredded coconut helps retain moisture during baking and adds texture to the crumb. It’s evenly folded in, so it doesn’t clump. The result is a cake that stays soft for days but never soggy. Compared to sponge-based tropical cakes, this one doesn’t require syrup for moisture. The ratio of wet to dry ingredients does the job cleanly.

Glass mixing bowl with vanilla cake batter partially mixed with flour, showing thick batter texture, milk in glass pitchers, and a spoon, photographed overhead on a white marble surface.

You’ll get better structure by using two 8-inch pans rather than one deep pan. The thinner layers cool faster, stay flat, and absorb the filling more evenly. I’ve tested with three pans as well. it works, but the layers dry more quickly.

Here’s another example of a cake with clean layering: Simple Vanilla Cake. That recipe taught me how thinner layers help control texture.

Ingredient Breakdown and Why They Matter

Full-fat coconut milk adds fat and liquid without thinning the batter too much. Skimmed versions don’t hold the same structure. Buttermilk adds acidity, softening the crumb and reacting with the baking soda for extra lift.

Butter over oil gives a tighter crumb. It creams well with sugar and helps the cake hold shape once sliced. I use granulated sugar here instead of brown, because it keeps the crumb light and lets the coconut and pineapple flavors stay clean.

The combination of vanilla extract and coconut extract adds depth. Coconut extract is optional, but it does boost that signature tropical profile. I don’t recommend imitation brands, real extract has a gentler flavor.

For the filling, canned crushed pineapple works better than fresh. The fiber in fresh pineapple prevents it from thickening properly unless it’s cooked longer, which changes the flavor. Draining and reserving the juice is key. You’ll use the juice to cook the filling into a thick, glossy layer that sets as it cools.

This frosting is simple, but you can add cream cheese for stability. For example, in this Simple Birthday Cake, I use a similar whipped cream frosting, but without pineapple.

Spotlight: The Pineapple Filling

Cooked pineapple filling simmering in a small metal saucepan with visible pineapple chunks and glossy syrup, styled on a marble countertop with a wooden spoon beside the pan.

This filling doesn’t come from a jar. It’s cooked fresh from crushed pineapple, juice, sugar, lemon, and cornstarch. That lemon sharpens the sweetness without making the filling tart. It thickens to a spoonable gel that won’t bleed into the cake once cooled.

You’ll know it’s ready when it looks glossy and starts pulling away slightly from the sides of the pan. Undercooked filling stays loose and makes the cake slip. Overcooked filling turns gummy and stiff. Five to seven minutes is the window I trust.

If you don’t have lemon juice, you can use orange juice, but it dulls the flavor slightly. This element matters, it anchors the cake and gives that bright contrast against the soft coconut crumb.

A similar layered technique appears in my Chocolate Eclair Cake, though that recipe leans creamy and cold, rather than fruity.

How to Make This Cake Without Slipping Layers

Two round cake pans filled with smooth vanilla cake batter, evenly spread and ready for baking, photographed from above on a light marble countertop.

After baking, the cakes must cool completely before assembly. Even a slight warmth causes the filling to loosen the layers. I cool mine 10 minutes in the pan, then transfer to a wire rack. That extra airflow keeps the bottom from turning dense.

The whipped cream must hit soft peaks before spreading. If you’re adding cream cheese, blend it separately and fold in with care. Over-whipping the cream turns it grainy. Under-whipping makes it run.

Metal bowl filled with whipped coconut frosting showing soft peaks, surrounded by a whisk, powdered sugar, and butter, styled on a clean marble work surface.

Once assembled, the cake should chill for at least 30 minutes before slicing. I sometimes leave it overnight for cleaner cuts, like I do with the Lemon Mascarpone Cake, which also has a creamy-soft interior that firms beautifully once cold.

Serving and Saving This Coconut Dream

Close-up of a pineapple coconut cake slice with moist vanilla cake layers, thick pineapple filling, smooth coconut frosting, and visible coconut flakes, placed on a marble surface for dessert photography.

This pineapple coconut cake holds in the fridge for two to three days, covered lightly. The whipped cream sets well, especially with cream cheese, and the pineapple keeps its shape. I don’t recommend freezing the fully frosted version, but you can freeze unfrosted layers for up to a month.

Let them thaw at room temperature before filling. The cake texture stays soft, even after freezing.

This cake serves clean slices at room temperature or slightly chilled. For serving, I often sprinkle toasted coconut on top. A few fresh pineapple wedges or mint leaves sharpen the look.

You can also serve it with mango sorbet, fresh berries, or light citrus ice cream. It fits in with tropical desserts, but still holds its own at a winter table.

Save This Pineapple Coconut Cake Recipe

If you love coconut desserts, pin this cake to your Tropical Cakes board so you don’t lose it. I’d love to hear how it turns out for you, especially if you try any variations or swap-ins. Leave a comment below. I always read them, and I respond when I can.

Yield: 12 servings

Pineapple Coconut Cake Recipe

Pineapple coconut layer cake displayed as a collage showing a frosted round cake with a sliced section and a plated cake slice, featuring vanilla cake layers, coconut frosting, and a bright pineapple filling on a light marble background with pineapple coconut cake text overlay.

This Pineapple Coconut Cake Recipe is the perfect combination of tropical flavor and soft texture. Made with layers of moist coconut cake and sweet pineapple filling, it’s a classic coconut pineapple cake recipe you’ll want to make on repeat. The blend of pineapple coconut adds a refreshing brightness that’s perfect for spring, summer, or any time you’re craving tropical desserts. Whether you’re baking for a gathering or just want a slice of sunshine, this easy pineapple coconut cake delivers pure coconut dream in every bite.

Prep Time 30 minutes
Cook Time 30 minutes
Additional Time 20 minutes
Total Time 1 hour 20 minutes

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

  1. PREPARE THE CAKE PANS: Preheat oven to 350°F (175°C). Grease and line two 8-inch round cake pans with parchment paper.
  2. MIX DRY INGREDIENTS: In a medium bowl, whisk together the flour, baking powder, baking soda, and salt. Set aside.
  3. 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.
  4. ADD EGGS AND EXTRACTS: Add eggs one at a time, mixing well after each. Stir in the vanilla extract and coconut extract if using.
  5. 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.
  6. FOLD IN COCONUT: Gently fold in the sweetened shredded coconut with a spatula, making sure it's evenly distributed.
  7. 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.
  8. COOL COMPLETELY: Let cakes cool in pans for 10 minutes, then turn out onto wire racks and cool completely before filling and frosting.
  9. 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.
  10. 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.
  11. 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.
  12. 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.
  13. 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 for the best texture. Make sure the pineapple filling is completely cooled before layering to prevent slipping. If preparing ahead, store the frosted cake covered in the refrigerator for up to 2 days.

Nutrition Information

Yield

12

Serving Size

1

Amount Per Serving Calories 592Total Fat 40gSaturated Fat 28gUnsaturated Fat 12gCholesterol 144mgSodium 403mgCarbohydrates 52gFiber 3gSugar 31gProtein 7g

Leave a Comment

Your email address will not be published. Required fields are marked *

*