I absolutely love sharing this recipe because it’s truly The Best Pineapple Cake Recipe I’ve ever made—hands down! This cake is incredibly moist and bursting with tropical pineapple flavor from the soft cake layers to the luscious filling and that perfectly fluffy pineapple whipped cream on top. What’s even better is how surprisingly simple it is to prepare—yet it looks and tastes like something from a fancy bakery. Whenever I serve it, my friends and family can’t stop raving about how delightful and fresh it feels, making it my go-to celebration cake.
Why You'll Love This The Best Pineapple Cake Recipe
When I think about why this recipe stands out, the first thing that comes to mind is the flavor profile. It’s a beautiful balance of sweet and tangy, with real crushed pineapple in every component—the batter, the filling, and the frosting. The burst of juicy pineapple complements the delicate sweetness from the creamy mascarpone and whipped cream, creating a cake that feels light yet decadently satisfying. Every bite reminds me of sunny island vibes, making it a refreshing alternative to heavier desserts.
Another reason I adore this recipe is how straightforward it is to prepare. Despite having three components—the cake, the filling, and the frosting—each part is simple and comes together quickly. I love that you don’t need any special equipment besides basic bakeware and a mixer. Plus, mixing dry ingredients separately and folding gently into the wet keeps the cake layers wonderfully tender and moist. Even if you’re new to baking, the step-by-step method I follow makes it feel totally doable and really fun.
This cake is perfect for so many occasions. Whether it’s a birthday party, a summer barbecue, or a casual weekend treat, it always impresses without any stress. I especially enjoy making it as a chilled dessert on warm days, but it’s versatile enough to serve at room temperature or slightly warm. Since it’s not overly rich, it pairs wonderfully with a light tea or sparkling beverage when entertaining. Honestly, every time I bring this cake out, it steals the show!
Ingredients You'll Need

The ingredients are beautifully simple but carefully chosen to give this pineapple cake its unforgettable taste and texture. The blend of all-purpose flour and cornstarch keeps the cake tender, while crushed pineapple adds moisture and freshness. The pineapple filling provides a nice sweet-tart contrast, and the mascarpone whipped cream frosting adds richness and creaminess without overpowering the fruit.
TIP : You'll find the full list of ingredients and measurements in the recipe card below
- Flour (2¼ cups / 270 g): Provides the structure and softness of the cake layers.
- Cornstarch (¼ cup / 25 g): Helps tenderize the cake for extra moistness.
- Baking powder (2 tsp) and baking soda (½ tsp): Essential leavening agents for a light rise.
- Salt (½ tsp): Balances sweetness and enhances flavors.
- Sugar (1¼ cups / 250 g): Sweetens the cake perfectly without overpowering it.
- Eggs (3 large): Bind the ingredients and add richness.
- Vegetable oil (¾ cup / 160 g): Keeps the cake moist and tender.
- Canned crushed pineapple (2½ cups / 566 g plus more for filling and frosting): The star ingredient for juicy, tropical flavor throughout.
- Vanilla essence (1 tsp): Adds subtle warmth and depth.
- Fresh lemon juice (1½ tbsp): Brightens the flavor and balances sweetness.
- Milk (¾ cup / 175 g): Used in the filling for a creamy texture.
- Unsalted butter (¼ cup / 56 g): Adds richness and smoothness to the filling.
- Mascarpone (1 cup / 225 g): Gives the whipped cream frosting its silky texture.
- Icing sugar (½ cup / 55 g): Sweetens the frosting evenly.
- Whipping cream (1½ cups / 335 g): Creates the fluffy, light whipped cream base.
- Optional yellow gel food color: Enhances the vibrant pineapple color in the filling.
Directions
Step 1: Preheat your oven to 160 °C (320°F) with the fan on, or adjust accordingly if you don’t have a fan function. Grease and line two 8-inch cake tins carefully – I recommend lining the bottoms well since this cake can stick to the pans.
Step 2: Sift together the flour, cornstarch, baking powder, baking soda, and salt in a medium bowl. Whisk these dry ingredients to combine evenly, then set it aside.
Step 3: In a large bowl, whisk the sugar, eggs, vegetable oil, crushed pineapple, vanilla essence, and lemon juice until everything is well mixed and smooth.
Step 4: Gently fold the dry ingredients into the wet mixture using a spatula. Take care not to overmix; just fold until you no longer see dry flour streaks.
Step 5: Divide the batter evenly between the two prepared pans. Lightly tap the pans on the counter to release any large air bubbles. Bake for 30 to 33 minutes, or until a toothpick inserted into the center comes out clean.
Step 6: Let the cakes cool in their pans for about 20 minutes, then carefully turn them out onto wire racks to cool completely before frosting.
Step 7: While the cakes bake, prepare the pineapple filling. Combine crushed pineapple, sugar, cornstarch, milk, and lemon juice in a saucepan. Cook over medium heat, stirring constantly until the mixture thickens. Don’t worry if it looks curdled at first; it will smooth out once thickened.
Step 8: Remove from heat immediately and stir in the cold butter cubes and yellow gel color if you’re using it. Mix until the butter melts completely. Transfer to a bowl and let it cool.
Step 9: When the cakes and filling have cooled, prepare the pineapple whipped cream. In a chilled bowl, beat mascarpone, icing sugar, and vanilla on low speed for 10 seconds, then increase to medium-high and beat until nicely combined.
Step 10: Add the cold whipping cream and whip on low to combine, then on medium-high speed until stiff peaks form. Be careful not to overwhip.
Step 11: Gently fold in the drained crushed pineapple until just combined. Your frosting is now ready to assemble the cake.
Step 12: Optionally trim any caramelized or uneven edges from the cakes. Place one cake layer on your serving stand. Spread a generous layer of the whipped cream frosting on top.
Step 13: Pipe a frosting dam around the edge with a piping bag to hold the pineapple filling inside. Spoon half the pineapple filling in the center.
Step 14: Add the second cake layer on top, frost the top and sides, and smooth with a cake scraper if you have one.
Step 15: Decorate the top with a piped border and fill the center with the remaining pineapple filling. Chill before serving for the best flavor and texture.
Servings and Timing
This recipe comfortably serves 12 people, making it perfect for gatherings or dessert buffets. Prep time is about 25 minutes, with 33 minutes needed for baking. Don’t forget to allow an hour for cooling and assembly, so the total time from start to finish is approximately 1 hour and 58 minutes. The cooling and resting time is critical to get those layers firm and the filling set perfectly.
How to Serve This The Best Pineapple Cake Recipe

When I serve this pineapple cake, I like to chill it in the fridge for at least an hour so the frosting firms up slightly and the flavors meld together. I find it tastes best cold or at room temperature because the cream is luscious but not too heavy. I usually cut it into generous slices, serving it on simple white plates so the vibrant yellow of the filling and frosting really pop visually.
As for accompaniments, this cake pairs fantastically with a light fruit salad or fresh berries for a burst of extra freshness. If you’re feeling festive, a scoop of coconut sherbet or vanilla ice cream on the side complements the tropical flavors wonderfully. I also love pairing this cake with a chilled glass of sparkling wine or a tropical cocktail like a pineapple mojito. For a non-alcoholic option, a refreshing iced green tea or pineapple-infused water works beautifully.
This cake feels just right for warm weather events like summer parties or tropical-themed dinners, but I’ve also enjoyed it as a special birthday cake or a weekend treat after a big meal. Because it’s not overwhelmingly sweet or dense, it leaves you feeling satisfied but not weighed down. Presentation-wise, I like to garnish with fresh pineapple slices or edible flowers to add a bright, elegant touch that always wows guests.
Variations
I love how flexible this The Best Pineapple Cake Recipe is. If you want to switch things up, you can substitute the all-purpose flour with a gluten-free baking blend to make the cake gluten-free without sacrificing texture. For a vegan version, replacing eggs with flax eggs and using a plant-based cream alternative for the frosting can work well—though the mascarpone is key to the original texture, so try vegan cream cheese or coconut cream for the frosting.
If you prefer a more intense pineapple flavor, I’ve tried enhancing the filling by adding a bit of finely chopped fresh pineapple or a splash of pineapple juice to the whipped cream. You could also experiment with swapping out the lemon juice for lime juice for a slightly different citrus twist that still preserves the tropical vibe. For a different cooking method, this batter works great in cupcakes too—just adjust baking time accordingly for smaller portions.
Another idea to elevate the cake is by adding toasted coconut flakes into the frosting or on top as a garnish for a delightful crunch and extra flavor. I also sometimes infuse a bit of rum extract into the batter and frosting for a boozy adult version that guests absolutely love. The versatility is one of my favorite things about this recipe because it invites creativity while keeping the heart of the cake intact.
Storage and Reheating
Storing Leftovers
I store leftover pineapple cake in an airtight container in the refrigerator to keep the frosting and filling fresh. Covered well, it stays delicious for up to 3 days. I always make sure the cake is nice and cool before sealing it to prevent condensation that could make the cake soggy. The fridge slows down spoilage, especially for the whipped cream and mascarpone components.
Freezing
This cake freezes reasonably well if you want to prepare it ahead of time. I recommend freezing the layers separately without frosting wrapped tightly in plastic wrap and then foil. They can keep frozen up to 2 months. When ready to serve, thaw layers completely in the fridge before assembling with fresh filling and frosting. Freezing after assembly tends to affect the texture of the whipped cream and pineapple filling, so I avoid that if possible.
Reheating
This cake is best served chilled or at room temperature and is not really suited for reheating because the frosting and filling could separate or melt. If you want to serve it a bit warmer, take it out of the fridge to let it rest at room temperature for 20-30 minutes before slicing. Avoid microwaving, as it will ruin the texture of the cream and make the cake tough.
FAQs
Can I use fresh pineapple instead of canned?
Yes, you can! I recommend finely crushing fresh pineapple and draining some of the juice so the batter and filling don’t get too watery. You may need to adjust the sugar slightly depending on the sweetness of your fresh fruit, but fresh pineapple will give the cake a wonderful natural flavor.
What can I substitute for mascarpone in the whipped cream frosting?
If you don’t have mascarpone, cream cheese is a good substitute and will provide a similar creamy texture, though the flavor will be slightly tangier. For a dairy-free or vegan option, try using a coconut cream-based alternative or a plant-based cream cheese, but keep in mind the frosting may be less stable.
How do I prevent the cake from sticking to the pan?
Greasing your pans well and lining the bottoms with parchment paper are key steps. I like to use a homemade cake release or butter and flour combo. Also, letting the cake cool a little before attempting to remove it helps it release easily without breaking.
Can I make this cake ahead of time?
Absolutely! You can bake the cake layers a day ahead and keep them wrapped tightly at room temperature or in the fridge. The filling and frosting can also be made ahead and stored separately. Assemble the cake a few hours before serving for the freshest taste and best texture.
Why does the pineapple filling look curdled when cooking?
This is normal and happens because the pineapple juice acid reacts with the milk as the cornstarch thickens. Keep stirring and cooking on medium heat, and it will come together smoothly once the filling thickens fully. Removing it promptly from heat is important to avoid overcooking.
Conclusion
I can’t recommend you try this The Best Pineapple Cake Recipe enough! It’s one of those rare desserts that feels both special and approachable—rich in tropical flavor yet delightfully light and moist. Making it became one of my favorite baking adventures because it always brings joy to the table and smiles all around. So go ahead, grab those ingredients, and share a slice of sunshine with your loved ones.
Print
The Best Pineapple Cake Recipe
- Prep Time: 25 minutes
- Cook Time: 33 minutes
- Total Time: 1 hour 58 minutes
- Yield: 12 servings
- Category: Dessert
- Method: Baking
- Cuisine: American
Description
This super moist pineapple cake features soft pineapple cake layers filled with a luscious pineapple filling and topped with stabilized pineapple whipped cream frosting. Easy to make yet impressively delicious, it's perfect for any occasion and combines tropical flavors with a light, creamy finish.
Ingredients
Cake
- 2¼ cups (270 g) plain all-purpose flour
- ¼ cup (25 g) cornstarch (cornflour)
- 2 tsp baking powder
- ½ tsp baking soda
- ½ tsp salt
- 1¼ cups (250 g) white granulated sugar
- 3 large eggs (room temperature, size 7)
- ¾ cup (160 g) unflavoured vegetable oil (canola oil recommended)
- 2½ cups (566 g) canned crushed pineapple in pineapple juice (not syrup)
- 1 tsp vanilla essence/extract
- 1½ tbsp (20 g) fresh lemon juice
Pineapple Cake Filling
- ¾ cup (170 g) canned crushed pineapple in pineapple juice (not syrup)
- ¼ cup (50 g) white granulated sugar
- ¼ cup (25 g) cornstarch
- ¾ cup (175 g) full fat milk
- 1 tbsp (15 g) fresh lemon juice
- ¼ cup (56 g) unsalted butter (cold, cut into cubes)
- 1 drop yellow gel food colour (optional)
Pineapple Whipped Cream Frosting
- 1 cup (225 g) mascarpone (cold)
- ½ cup (55 g) icing sugar (powdered/confectioners sugar)
- 1 tsp vanilla essence/extract
- 1½ cups (335 g) whipping cream (cold, minimum 34% fat)
- ½ cup (112 g) canned crushed pineapple (excess juice removed)
Instructions
- Preheat and Prep Cake Pans: Preheat oven to 160 °C (320°F) with fan on. Grease two 8-inch cake tins and line the bottom with parchment paper to prevent sticking.
- Mix Dry Ingredients: Sift together flour, cornstarch, baking powder, baking soda, and salt. Whisk lightly to combine and set aside.
- Combine Wet Ingredients: In a large bowl, whisk together sugar, eggs, oil, crushed pineapple, vanilla, and lemon juice until smooth and lump-free.
- Combine Wet and Dry: Fold the dry ingredients gently into the wet ingredients using a spatula until just combined, avoiding overmixing.
- Bake Cake Layers: Divide the batter evenly into the prepared cake tins. Tap tins lightly on the counter to release bubbles. Bake for 30-33 minutes, or until a toothpick inserted comes out clean.
- Cool Cake Layers: Let cakes cool in tins for 20 minutes, then transfer to wire racks to cool completely before frosting.
- Make Pineapple Filling: In a saucepan, combine crushed pineapple, sugar, cornstarch, milk, and lemon juice. Cook over medium heat, stirring continuously until thickened. Remove from heat, stir in butter and optional yellow gel food colouring. Cool completely.
- Prepare Whipped Cream Frosting: With cold mascarpone and whipping cream, beat mascarpone, icing sugar, and vanilla on low then on medium-high speed until combined. Gradually add whipping cream, whipping on medium-high to stiff peaks—do not overwhip. Fold in crushed pineapple gently.
- Trim and Level Cakes (Optional): Remove caramelized edges and level domed tops for even stacking.
- Assemble Cake: Place first cake layer on stand, spread a generous layer of pineapple whipped cream frosting. Pipe a border around the edge to hold filling.
- Add Filling: Fill the center with half the pineapple filling. Place second cake layer on top.
- Frost Cake: Cover top and sides with remaining frosting, smoothing with a cake scraper if desired.
- Decorate Top: Pipe decorative border around top edges and fill center with remaining pineapple filling to finish.
Notes
- Use gram measurements for exactness, cup measurements are estimates.
- Ensure canned pineapple is in juice, not syrup for better flavor and texture.
- If your oven lacks a fan, increase temperature to 175 °C (350 °F) and adjust baking time slightly, monitoring closely.
- Yellow gel food colouring is optional and only used to enhance the color of the filling.
- Remove excess pineapple juice from frosting pineapple to prevent runny cream.
- If mascarpone is unavailable, substitute with cream cheese for a similar texture.
- Use room temperature eggs for better mixing and cake texture.
- Do not overmix the batter to keep cake light and moist.



Leave a Reply