Pineapple Coconut Cake is a rich yet bright layer cake with tender coconut-scented layers, silky pineapple curd, and creamy frosting, making it a great make-ahead dessert for birthdays, gatherings, or anytime you want a tropical cake that slices neatly and feels special.

This is the kind of cake that works beautifully when you want something more exciting than a classic vanilla layer cake but still familiar enough for everyone at the table to love. The pineapple keeps it lively, while the coconut brings softness and warmth.
What makes this one so appealing is the balance. You get a fluffy, tender crumb, a smooth fruit filling, and a cream cheese frosting that adds richness without making the cake feel heavy.
It also feels like a celebration cake without being fussy in your kitchen. The layers are straightforward, the curd can be handled step by step, and once everything is chilled, the cake stacks and frosts with a polished finish.
Pineapple Coconut Cake Ingredients
- Cake flour gives the layers a soft, delicate crumb that suits a filled layer cake.
- Baking powder and baking soda help the cake rise evenly while keeping the texture light.
- Fine salt sharpens the sweetness and keeps the coconut and pineapple flavors from tasting flat.
- Unsalted butter and granulated sugar create the rich, fluffy base that gives the cake structure and flavor.
- Egg whites keep the layers tender and light rather than dense.
- Sour cream adds moisture and a little tang, which helps the cake stay soft.
- Vanilla extract and coconut extract build the main flavor profile and make the cake smell wonderful as it bakes.
- Full-fat coconut milk brings richness and a gentle coconut note to the batter and frosting.
- Pineapple juice and pineapple pieces add the bright fruit flavor that runs through the whole cake.
- Sweetened shredded coconut gives texture and reinforces the tropical finish.
- Whole egg, egg yolks, sugar, pineapple juice, cornstarch, salt, and butter come together for the pineapple curd, which adds a smooth, glossy layer between the cakes.
- Cream cheese, butter, powdered sugar, coconut milk, vanilla, and salt make a frosting that is creamy, tangy, and easy to spread.
Cooking Steps
STEP 1: Prepare three 8-inch cake pans by greasing them well, lining the bottoms with parchment, and lightly greasing the parchment too. Heat the oven to 350°F so the pans are ready as soon as the batter is mixed.
STEP 2: Whisk the dry ingredients together in one bowl so the leavening is evenly distributed. In another large bowl, beat the butter and sugar until pale and creamy, then mix in the egg whites, sour cream, vanilla, and coconut extract until combined.
STEP 3: Add the dry mixture in batches, alternating with the coconut milk and pineapple juice. Once the batter is almost smooth, fold in the shredded coconut and pineapple pieces gently so the fruit stays evenly scattered through the layers.
STEP 4: Divide the batter between the pans and bake until the tops are set and a tester comes out clean. Let the layers cool fully before assembling, because warm cake will make the curd and frosting slide.
STEP 5: Make the pineapple curd over gently simmering water by whisking together the egg, yolks, sugar, cornstarch, pineapple juice, and salt until thickened. Off the heat, whisk in the butter until smooth, then cool it with plastic wrap pressed directly on the surface.
STEP 6: Beat the butter and cream cheese for the frosting until smooth, then add the powdered sugar, coconut milk, vanilla, and salt. Beat until fluffy and spreadable. If it feels too soft for stacking, add a little more powdered sugar.
STEP 7: Level the cake layers if needed, then stack them with a thin layer of frosting and a spoonful of pineapple curd between each one. Add a light crumb coat and chill the cake so the outside firms up before the final layer of frosting goes on.
STEP 8: Finish frosting the cake and decorate with extra pineapple and shredded coconut if you like. Chill it again briefly before slicing so each piece holds its shape and shows off the layers cleanly.

Helpful Tips
- Use fully room-temperature butter, egg whites, sour cream, and coconut milk so the batter mixes smoothly and bakes evenly.
- Keep the pineapple pieces small and well drained so they add flavor without weighing down the cake layers.
- Chill the cake after the crumb coat and again before slicing for the neatest finish.
Can I make the pineapple curd ahead of time?
Yes. The curd is actually very convenient to make ahead because it thickens more as it cools. You can prepare it a day in advance, keep it covered in the refrigerator, and use it once it is fully chilled and spreadable.
Why does the batter look slightly curdled?
That is normal once the egg whites and sour cream are mixed into the butter mixture. As long as the dry ingredients and liquids are added properly afterward, the batter should come together into a thick, smooth mixture before baking.
Perfect Pairings
This cake is lovely on its own, but it also pairs well with simple sides that do not compete with the tropical flavors. Fresh pineapple on the plate makes the fruit notes feel even brighter, a spoonful of lightly sweetened whipped cream softens the richness, and hot coffee or black tea balances the sweet frosting beautifully.
Can I use this for a birthday or celebration cake?
Absolutely. The three-layer structure gives it a classic celebration look, while the pineapple curd makes it feel more memorable than a standard frosted cake. Because it benefits from chilling, it is also a practical option when you want to assemble dessert before guests arrive.

Will the frosting be firm enough for layering?
It should be, especially after beating until fluffy and chilling the cake during assembly. If your kitchen is warm or the frosting feels loose, mix in a little extra powdered sugar and refrigerate the cake after the crumb coat before adding the final finish.
How to Store & Reheat
Because of the cream cheese frosting and fruit filling, this cake should be stored tightly covered in the refrigerator. It keeps well for up to 5 days. For longer storage, individual slices can be wrapped well and frozen, then thawed overnight in the refrigerator before serving.
This is not a cake you need to reheat, but it does taste best when it sits at room temperature for about 15 to 20 minutes before serving. That little rest takes the chill off the frosting and lets the coconut, butter, and pineapple flavors come through more clearly.

Pineapple Coconut Cake
Ingredients
For the cake
- 1 cup pineapple pieces
- 2 teaspoons baking powder
- 1 teaspoon coconut extract
- 3/4 cup full-fat coconut milk brought to room temperature
- 1 1/2 cups granulated sugar
- 1 teaspoon fine salt
- 1 cup sweetened shredded coconut
- 2 tablespoons pineapple juice
- 1/2 cup sour cream
- 2 1/2 cups cake flour
- 3/4 cup unsalted butter softened
- 4 large egg whites at room temperature
- 1/2 teaspoon baking soda
- 2 teaspoons vanilla extract
For the pineapple curd
- 1/3 cup granulated sugar
- 2 large egg yolks
- 1/3 cup pineapple juice
- 1 1/2 teaspoons cornstarch
- 1/8 teaspoon salt
- 1 large egg
- 1/4 cup unsalted butter softened
For the frosting
- 4 cups powdered sugar
- 1/4 teaspoon salt
- 1/2 cup unsalted butter
- 2 teaspoons vanilla extract
- 1/4 cup coconut milk
- 8 ounces full-fat cream cheese softened
Instructions
- Preheat the oven to 350°F (177°C). Grease three 8-inch cake pans, line the bottoms with parchment rounds, and grease the parchment as well to ensure easy release after baking.
- In a medium bowl, whisk together the cake flour, baking powder, baking soda, and salt. Set the dry mixture aside.
- In a large mixing bowl, beat the softened butter with the granulated sugar on medium-high speed for about 2 minutes, or until the mixture becomes pale and creamy. Scrape down the bowl as needed.
- Add the egg whites, sour cream, vanilla extract, and coconut extract to the butter mixture. Beat until incorporated. The batter may appear slightly curdled at this stage.
- With the mixer on low speed, add the dry ingredients in portions, alternating with the coconut milk and pineapple juice, until the batter comes together. Fold in the shredded coconut and pineapple chunks, mixing only until evenly distributed. Finish with a final stir by hand to make sure the batter is smooth and free of lumps. It should be somewhat thick.
- Divide the batter evenly among the prepared pans. Bake for 22 to 24 minutes, or until a toothpick inserted into the center comes out clean.
- Set the pans on a wire rack and allow the cake layers to cool completely before assembling and frosting.
- To prepare the pineapple curd, fill the bottom portion of a double boiler with 1 to 2 inches of water and bring it to a gentle simmer.
- In the top portion of the double boiler, whisk together the whole egg, egg yolks, sugar, cornstarch, pineapple juice, and salt. Cook over the simmering water, whisking continuously, for about 10 minutes, or until the mixture thickens to a consistency similar to hollandaise sauce.
- Remove the curd from the heat and whisk in the softened butter until fully melted and smooth. Transfer the curd to a container and press plastic wrap directly onto the surface. Let it cool completely; it will thicken further as it rests.
- For the frosting, beat the cream cheese and butter together in a large bowl for about 2 minutes, until smooth and creamy.
- Add the powdered sugar, coconut milk, vanilla extract, and salt. Mix on low speed at first, then increase to high speed and beat for 2 more minutes. For a firmer frosting, blend in an additional 1/4 cup powdered sugar if needed.
- If the cake layers have domed tops, level them with a serrated knife. Place the first cake layer on a serving plate or cake stand and spread with a scant 1/2 cup of frosting, followed by 1/4 cup of pineapple curd.
- Repeat the same layering process with the second cake layer. Carefully position the third layer on top.
- Spread a thin crumb coat of frosting over the entire cake, then refrigerate it for 30 to 60 minutes to set.
- Once chilled, cover the cake with the remaining frosting. Garnish the top with pineapple chunks and gently press shredded coconut onto the sides, if desired.
- Refrigerate the finished cake for at least 20 minutes before slicing so it holds its shape neatly when served.