I remember the first time I tasted a cake that truly captured the essence of a sunny afternoon; it was a simple bite that felt like a sudden tropical vacation. That one smart addition of crushed pineapple throughout the batter and the filling creates a moisture and zing that is totally unexpected and delightful.
This recipe is my favorite way to bring a sunny “wow” to any kitchen table without the stress of complicated techniques. It is bright, happy, and incredibly simple to whip up whenever you need a flavor pop that makes every guest smile.
The Flavor Pop
You are going to love how this cake balances the sweet, tangy notes of fruit with a silky, rich mascarpone frosting. It is the best pineapple cake because it uses real fruit in three different ways—in the sponge, the filling, and the frosting—to make sure every single bite is bursting with sunshine. This isn’t just a basic yellow cake; it is a textured, moist, and vibrant experience that feels special without requiring hours in the kitchen. The addition of mascarpone to the whipped cream provides a stability and depth that regular whipped cream lacks, making it a dream to stack and frost. Whether you are celebrating a big birthday or just want a Tuesday treat, this cake brings the joy of the islands straight to your home.
Print
The Best Pineapple Cake
- Total Time: 1 hour 30 mins
- Yield: 12 servings
- Diet: Vegetarian
Description
Experience a burst of tropical sunshine with this incredibly moist layered cake featuring crushed pineapple in the batter, a homemade fruit filling, and a silky mascarpone whipped cream frosting. It is a vibrant, easy-to-make dessert that balances tangy fruit notes with a rich, velvety finish.
Ingredients
- Crushed pineapple in its own juice
- All-purpose flour
- Cornstarch
- Baking powder
- Baking soda
- Salt
- Granulated sugar
- Eggs
- Vegetable oil
- Vanilla extract
- Fresh lemon juice
- Mascarpone cheese
- Icing sugar
- Cold heavy cream
- Milk
- Butter
- Optional yellow food gel
Instructions
- Preheat your oven to 160°C (320°F) with the fan on, and grease and line two 8-inch cake tins with parchment paper.
- In a medium bowl, sift together the flour, cornstarch, baking powder, baking soda, and salt until well combined.
- In a large bowl, whisk together the sugar, eggs, vegetable oil, crushed pineapple with its juice, vanilla, and lemon juice until smooth.
- Gently fold the dry ingredients into the wet mixture using a spatula just until combined, being careful not to overmix.
- Divide the batter evenly between the tins and bake for 30-33 minutes, or until a toothpick inserted into the center comes out clean.
- Allow the cakes to cool in the tins for 20 minutes before transferring them to a wire rack to cool completely.
- To make the filling, cook crushed pineapple, sugar, cornstarch, milk, and lemon juice in a saucepan over medium heat until thickened; stir in butter and optional food gel, then cool.
- Whip the cold mascarpone, icing sugar, and vanilla until smooth, then slowly add heavy cream and whip to stiff peaks before folding in well-drained crushed pineapple.
- Assemble by layering the cake with frosting and a pineapple filling center, then frost the exterior and decorate with remaining filling.
Notes
For the most stable frosting, ensure your mixing bowl and whisk are chilled before whipping the mascarpone and heavy cream. Additionally, pressing the crushed pineapple through a fine-mesh sieve to remove as much liquid as possible will prevent the frosting from becoming too soft for piping or stacking.
- Prep Time: 30 mins
- Cook Time: 33 mins
- Category: Dessert
- Method: Baking
- Cuisine: American
The Flavor Stars

To create the best pineapple cake, we focus on simple ingredients that work hard to deliver big results. Each component has a specific job in building that perfect tropical profile.
- Crushed Pineapple: This is our absolute star. Using canned crushed pineapple in its own juice provides consistent moisture and a distributed fruit flavor that bits of fresh pineapple can’t match.
- Cornstarch: This is a simple game-changer for the texture. It softens the proteins in the all-purpose flour, giving you a crumb that is incredibly tender and light.
- Mascarpone: This creamy Italian cheese adds a rich, velvety texture to our frosting. It helps the whipped cream hold its shape and gives it a sophisticated flavor pop that isn’t too sweet.
- Lemon Juice: Just a tiny splash of fresh lemon juice brightens the whole cake. It acts like a spotlight, making the pineapple flavor truly stand out against the sugar.
- Vegetable Oil: I prefer oil over butter in this specific recipe because it keeps the cake remarkably moist even when kept in the fridge.
The Simple Process
Step 1: Prep the Oven and Tins
Start by preheating your oven to 160°C (320°F) with the fan on. Grease two 8-inch cake tins thoroughly. I highly recommend lining the bottoms with parchment paper because this moist batter loves to stick. This small step makes sure your cakes release perfectly every time.
Step 2: Sift the Dry Ingredients
In a medium bowl, sift together your flour, cornstarch, baking powder, baking soda, and salt. Use a whisk to mix them well so that the leavening agents are evenly distributed. This makes for a consistent rise across the whole cake.
Step 3: Mix the Wet Ingredients
In a larger bowl, whisk together the sugar, eggs, vegetable oil, crushed pineapple (with its juice!), vanilla, and lemon juice. Whisk until the mixture is smooth and no large lumps remain. You’ll already start to smell that amazing tropical aroma!
Step 4: Combine Everything
Gently add your dry ingredients into the wet mixture. Use a spatula to fold everything together until just combined. Be careful not to overmix here; we want to keep the cake light and airy, not dense.
Step 5: Bake the Cakes
Divide the batter evenly between your two prepared tins. Give them a light tap on the counter to pop any large air bubbles. Bake for 30-33 minutes. You’ll know they are ready when a toothpick inserted into the center comes out clean.
Step 6: Cool Down
Let the cakes sit in their tins for about 20 minutes before turning them out onto a wire rack. They need to be completely cool before you even think about adding the frosting, or you’ll end up with a melted mess!
Step 7: Make the Pineapple Filling
While the cakes cool, combine the pineapple, sugar, cornstarch, milk, and lemon juice in a saucepan. Cook over medium heat, stirring constantly, until it thickens into a beautiful jam-like consistency. Stir in the butter and optional food gel, then let it cool completely.
Step 8: Prepare the Whipped Cream Frosting
Whip your cold mascarpone, icing sugar, and vanilla until smooth. Slowly pour in the cold heavy cream and whip until you reach stiff peaks. Finally, fold in the drained crushed pineapple with a spatula for that final flavor pop.
Step 9: Assemble Your Masterpiece
Place one cake layer on your stand and spread a layer of frosting. Pipe a ring of frosting around the edge to act as a dam, and fill the center with that delicious pineapple filling. Top with the second cake layer and frost the outside. Use the remaining filling to decorate the top!
Jasmine’s Flavor Tips

One secret to success is making sure your crushed pineapple for the frosting is drained very well. I like to press it gently in a sieve to remove the excess liquid so the frosting stays thick and pipeable. For more incredible fruit-based dessert ideas, take a look at our guide on cake with fruit to see how you can use seasonal produce to change your baking game. Also, always keep your mascarpone and cream chilled until the very moment you use them; cold ingredients are the key to a stable frosting. If you want to see the original inspiration for this method, you can find more details at The Best Pineapple Cake. Trust me, these small details are what take a recipe from good to wow!
Make It Yours
I love a recipe that lets you get creative! If you want to lean even further into the tropical vibes, try swapping out the vanilla extract for almond extract or adding half a cup of toasted coconut to the batter. For another bright citrus twist, you might enjoy our mandarin orange cake which uses a similar fruit-infusion method for a fantastic crumb. You can also try adding a layer of thinly sliced maraschino cherries between the cake layers for a fun color pop and a classic “pineapple upside down” flavor profile. If you don’t have lemons on hand, lime juice works beautifully as a zesty substitute that pairs perfectly with the pineapple.
Simple Serving Ideas

This cake is a showstopper all on its own, but I love serving it with a few fresh edible flowers on top for a truly vibrant look. A sprinkle of lime zest over the frosting just before serving adds an extra hit of fragrance that is wonderful. This treat is the perfect companion to a refreshing glass of iced tea or even as a follow-up to our peach upside down cake recipe at a summer garden party. If you want to go all out, serve a slice with a scoop of coconut sorbet for the ultimate tropical dessert experience that your friends will be talking about for weeks.
The Sweet Spot
I am so excited for you to try this recipe and experience that amazing pineapple flavor pop for yourself. It is proof that a few smart additions can make a simple layer cake feel absolutely extraordinary. If you are looking for even more tropical fun, don’t miss our coconut cake which pairs wonderfully with these pineapple flavors. Please share your beautiful bakes with me! You can find more inspiration and share your photos on Pinterest, Instagram, Facebook, and TikTok. Happy baking, and enjoy every sunny bite!







