Pineapple Coconut Cake: The Tropical Dessert That’ll Make Your Taste Buds Dance
Key Info
Contents
Prep time: 20 minutes
Cook time: 30 minutes
Total time: 2 hours (including cooling)
Servings: 12-16 slices
Difficulty level: Intermediate
Dietary tags: Vegetarian, can be made dairy-free
—
Equipment Needed
- Two 8-inch round cake pans
- Electric stand mixer or hand mixer
- Large and medium mixing bowls
- Measuring cups and spoons
- Rubber spatula
- Cake tester or toothpick
- Medium saucepan
- Wire cooling racks
- Offset spatula for frosting
Simple alternatives:
Hand whisk instead of mixer (prepare for an arm workout)
9×13 pan for sheet cake version
Wooden skewer instead of cake tester
—
Ingredients
For the Cake
- 2½ cups (300g) all-purpose flour (cake flour for fluffier texture)
- 1¾ cups (350g) granulated sugar
- ½ cup (115g) unsalted butter, softened (coconut oil works too)
- 3 large eggs, room temperature
- 1 cup (240ml) canned coconut milk (full-fat, shaken well)
- ¾ cup (180g) crushed pineapple with juice (don’t drain it)
- ¾ cup (60g) shredded coconut, unsweetened (sweetened is fine, reduce sugar by 2 tbsp)
- â…“ cup (80ml) vegetable oil
- 1½ tsp vanilla extract
- ½ tsp coconut extract (double vanilla if you don’t have it)
- 1 tbsp baking powder
- ½ tsp salt
For the Pineapple Filling
- 1½ cups (360g) crushed pineapple with juice
- ½ cup (100g) granulated sugar
- 3 tbsp cornstarch
- â…” cup (160ml) coconut milk
- 2 tbsp unsalted butter
- 1 tbsp fresh lemon juice
For the Cream Cheese Frosting
- ½ cup (115g) unsalted butter, room temperature
- 8 oz (225g) cream cheese, room temperature (this is crucial)
- 3-4 cups (360-480g) powdered sugar (adjust to taste)
- 2 tbsp heavy cream or milk
- 1 tsp vanilla extract
- ¼ tsp coconut extract
- 1 cup (80g) sweetened coconut flakes (for coating)
—
Method
Making the Cake
- Preheat your oven to 350°F (180°C).
- Line two 8-inch cake pans with parchment paper and grease the sides with butter or cooking spray.
- Beat the softened butter in your mixer for 1 minute until it looks creamy and pale.
- Add the sugar and beat for 2-3 minutes until light and fluffy—this step matters more than you think.
- Crack in the eggs one at a time, beating for 10-15 seconds after each one.
- Mix in vanilla extract, coconut extract, and the crushed pineapple with all its juice.
- In a separate bowl, whisk together flour, baking powder, and salt.
- Add half the dry ingredients to your wet mixture and fold gently with a spatula—no mixer here, folks.
- Pour in the coconut milk and fold until just combined.
- Add the remaining dry ingredients and fold until you barely see flour streaks.
- Fold in the shredded coconut with a gentle hand.
- Divide batter evenly between your prepared pans.
- Bake for 25-30 minutes—check at 25 minutes with a toothpick inserted in the center.
- The cake is done when the toothpick comes out clean or with just a few moist crumbs.
- Let the cakes cool in the pans for 15 minutes, then turn them out onto wire racks.
- Cool completely for at least 1 hour before you even think about frosting.
Making the Pineapple Filling
- Combine crushed pineapple, sugar, cornstarch, coconut milk, and lemon juice in a medium saucepan.
- Whisk everything together over medium heat—make sure there are no cornstarch lumps.
- Stir constantly for 5-8 minutes until the mixture turns glossy and thick enough to coat your spoon.
- Remove from heat and stir in the butter.
- Let it cool completely—I usually stick mine in the fridge for 30-45 minutes.
Making the Frosting
- Beat room temperature butter in your mixer for 1 minute until fluffy.
- Add the cream cheese and beat on high for 2-3 minutes until it’s thick and light.
- Reduce speed to low and gradually add powdered sugar, one cup at a time.
- Once incorporated, crank the speed back up and beat until smooth.
- Add heavy cream, vanilla, and coconut extract, then whip until light and fluffy.
- Fold in half the coconut flakes—save the rest for decorating.
Assembling Your Masterpiece
- Place one cake layer on your serving plate.
- Spread half the cooled pineapple filling on top, leaving a ½-inch border around the edge.
- Add a thin layer of frosting over the filling—this helps prevent sliding.
- Place the second cake layer on top and press down gently.
- Spread remaining pineapple filling on this layer.
- Use the rest of your frosting to cover the top and sides of the cake.
- Press coconut flakes onto the sides and top—be generous here.
- Refrigerate for at least 4 hours before serving.
Trust me, it’s even better after sitting overnight.
—
Crucial Tips
Room temperature ingredients are non-negotiable:
Cold butter won’t cream properly
Cold eggs can cause your batter to curdle
Cold cream cheese makes lumpy frosting
Don’t skip the pineapple juice:


