Decadent Coconut Cake with Pineapple Filling and Cream Cheese Frosting Recipe
Introduction
This coconut cake is a tropical delight, combining moist layers with a luscious pineapple filling and creamy coconut frosting. Perfect for special occasions or whenever you crave a sweet escape, this cake brings bright flavors and rich textures together beautifully.

Ingredients
- 2 cups all-purpose flour (250g)
- 1 Tablespoon baking powder (12g)
- 1 teaspoon salt (6g)
- 1/2 cup unsalted butter (113g), room temperature
- 2 cups granulated sugar (400g)
- 13.5 ounces canned unsweetened coconut milk (400 ml), divided
- 1 1/2 teaspoons coconut extract (7.5 ml)
- 5 large egg whites
- 20 ounce can crushed pineapple (567g)
- 2/3 cup granulated sugar (134g)
- 2 Tablespoons cornstarch (16g)
- 1/2 cup butter (113g), room temperature
- 8 ounces cream cheese (226g), room temperature
- 4-5 cups powdered sugar (480g-600g)
- 1 – 2 Tablespoons leftover coconut milk or regular milk (15-30 ml)
- 1 cup shredded sweetened coconut (85g)
Instructions
- Step 1: Preheat the oven to 350°F. Line the bottom of two 8-inch cake pans with parchment paper and lightly spray the pans’ bottom and sides with cooking spray.
- Step 2: In a mixing bowl, sift together the flour, baking powder, and salt. Set aside.
- Step 3: Using an electric mixer, beat the butter on medium speed until light and fluffy, about 1 minute. Add the granulated sugar and mix until well combined. Pour in 1 1/4 cups of the canned coconut milk and the coconut extract, mixing thoroughly.
- Step 4: Gradually add the dry ingredients to the butter mixture and mix on medium speed for 2 minutes.
- Step 5: In a separate bowl, beat the egg whites until stiff peaks form. Gently fold the egg whites into the cake batter just until incorporated.
- Step 6: Divide the batter evenly between the prepared pans. Bake for 25-35 minutes, or until a toothpick inserted into the center comes out clean or with a few moist crumbs. Let the cakes cool in the pans for 5 minutes, then invert onto a cooling rack to cool completely.
- Step 7: Once cooled, carefully slice each cake layer in half horizontally using a sharp serrated knife to create four thin cake rounds.
- Step 8: For the pineapple filling, combine crushed pineapple, 2/3 cup sugar, and cornstarch in a medium saucepan over medium heat. Stir frequently and cook until thickened and glossy, about 5-8 minutes. Transfer to a container, press plastic wrap on the surface to prevent a skin, and refrigerate until ready to use, up to one week.
- Step 9: Make the coconut cream cheese frosting by beating the butter and cream cheese until smooth. Gradually add powdered sugar and a splash of the remaining coconut milk, beating until fluffy, about 3 minutes. Adjust thickness with more milk to thin or powdered sugar to thicken as needed. Stir in shredded coconut, reserving some for decorating.
- Step 10: To assemble, place one cake layer on a serving plate and spread half of the pineapple filling on top. Add the second cake layer and spread a layer of frosting. Add the third cake layer, spread the remaining pineapple filling, then top with the last cake layer. Frost the entire cake with the remaining cream cheese frosting and sprinkle with reserved shredded coconut.
- Step 11: Refrigerate the assembled cake for at least 4 hours before serving. The flavors develop beautifully after chilling and taste even better the next day.
Tips & Variations
- For extra moisture, use full-fat canned coconut milk and ensure the butter and cream cheese are softened to room temperature before mixing.
- Swap crushed pineapple with fresh pineapple for a fresher taste, but adjust cooking time for the filling to remove excess liquid.
- Add toasted coconut flakes on top for a more intense coconut flavor and a crunchy texture.
- If coconut extract is unavailable, vanilla extract can be used as a milder substitute.
Storage
Store the cake covered in the refrigerator for up to 5 days. The frosting and pineapple filling keep the cake moist. Before serving, allow the cake to sit at room temperature for about 20-30 minutes to soften. Leftover cake can also be frozen for up to 2 months; thaw overnight in the refrigerator before enjoying.
How to Serve

Serve this delicious recipe with your favorite sides.
FAQs
Can I use regular milk instead of coconut milk?
Yes, you can substitute regular milk if you prefer, but using coconut milk enhances the tropical coconut flavor that defines this cake.
How do I prevent the cake layers from drying out?
Make sure not to overbake the cakes; check for doneness a few minutes before the minimum bake time. Also, frosting and pineapple filling help keep the layers moist when assembled.
Print
Decadent Coconut Cake with Pineapple Filling and Cream Cheese Frosting Recipe
- Total Time: 5 hours 55 minutes
- Yield: 12 servings 1x
- Diet: Vegetarian
Description
This Coconut Cake features moist, tender layers infused with coconut milk and coconut extract, layered with a glossy pineapple filling and frosted with luscious coconut cream cheese frosting. Finished with shredded sweetened coconut, this tropical-inspired cake is perfect for celebrations or any special occasion.
Ingredients
Cake
- 2 cups all-purpose flour (250g)
- 1 Tablespoon baking powder (12g)
- 1 teaspoon salt (6g)
- 1/2 cup unsalted butter (113g), room temperature
- 2 cups granulated sugar (400g)
- 13.5 ounces canned unsweetened coconut milk (400 ml), divided
- 1 1/2 teaspoons coconut extract (7.5 ml)
- 5 large egg whites
Pineapple Filling
- 20 ounce can crushed pineapple (567g)
- 2/3 cup granulated sugar (134g)
- 2 Tablespoons cornstarch (16g)
Coconut Cream Cheese Frosting
- 1/2 cup unsalted butter (113g), room temperature
- 8 ounces cream cheese (226g), room temperature
- 4–5 cups powdered sugar (480g-600g)
- 1 – 2 Tablespoons leftover coconut milk or regular milk (15–30 ml)
- 1 cup shredded sweetened coconut (85g)
Instructions
- Preheat and prepare pans: Preheat oven to 350°F (177°C). Line the bottom of two 8-inch cake pans with parchment paper and lightly spray the bottom and sides with cooking spray to prevent sticking.
- Mix dry ingredients: In a mixing bowl, whisk together the all-purpose flour, baking powder, and salt. Set aside.
- Cream butter and sugar: In a separate large bowl, beat the room temperature butter on medium speed using an electric hand or stand mixer until light and fluffy, about 1 minute. Add the granulated sugar and continue mixing until well combined.
- Add coconut milk and extract: Pour in 1 1/4 cups of the canned unsweetened coconut milk and the coconut extract. Mix until fully incorporated.
- Incorporate dry ingredients: Gradually add the flour mixture to the wet ingredients and mix on medium speed for 2 minutes until combined.
- Beat egg whites: In a clean bowl, beat the egg whites until stiff peaks form. Gently fold the egg whites into the batter in batches, taking care to maintain as much airiness as possible.
- Bake the cake: Divide the batter evenly between the prepared pans. Bake in the preheated oven for 25 to 35 minutes, or until a toothpick inserted into the center comes out clean or with a few moist crumbs. Remove pans and cool on wire racks for 5 minutes before inverting onto racks to cool completely.
- Torte the cakes: Once cooled, use a serrated knife to slice each cake horizontally in half, creating four thin cake layers in total.
- Prepare pineapple filling: Combine the crushed pineapple, granulated sugar, cornstarch, and 1/4 cup of the remaining coconut milk in a medium saucepan over medium heat. Stir frequently and cook until the mixture thickens and becomes glossy, about 5 to 8 minutes. Transfer to a container, press plastic wrap directly on top to prevent skin formation, let cool, then refrigerate until ready to use.
- Make coconut cream cheese frosting: Beat room temperature butter and cream cheese together until smooth. Gradually add powdered sugar and a splash of the reserved coconut milk, beating until smooth and fluffy, about 3 minutes. Adjust consistency with more milk to thin or powdered sugar to thicken. Stir in shredded sweetened coconut, reserving some for decorating.
- Assemble the cake: On a serving plate, place the first cake layer and spread half the pineapple filling over it. Top with the second cake layer and spread a layer of frosting. Add the third cake layer, spread the remaining pineapple filling, then place the final cake layer on top. Frost the entire cake with the coconut cream cheese frosting and sprinkle the sides and top with the reserved shredded coconut.
- Chill before serving: Refrigerate the assembled cake for at least 4 hours before serving to allow flavors to meld and the frosting to set. The cake tastes even better the next day.
Notes
- Ensure egg whites are beaten to stiff peaks for a light and airy cake texture.
- Press plastic wrap directly on pineapple filling surface to prevent a skin from forming while cooling.
- Use room temperature ingredients (butter, cream cheese, egg whites) for best mixing results.
- Leftover cake can be stored covered in the refrigerator for up to 3 days.
- For a more intense coconut flavor, consider toasting the shredded coconut before using.
- Prep Time: 20 minutes
- Cook Time: 35 minutes
- Category: Dessert
- Method: Baking
- Cuisine: American
Keywords: Coconut Cake, Pineapple Filling, Cream Cheese Frosting, Tropical Cake, Layer Cake, Coconut Milk Cake

