Desserts
This ananas cake recipe transforms simple ingredients into layers of tropical bliss—juicy pineapple-infused sponge, tangy cream filling, and a basil-infused glaze that bridges Scandinavian tradition with vibrant island flavors. The secret to keeping it moist?
A quick pineapple juice soak before baking, ensuring every slice stays tender and packed with that signature sweet-tart zing. I developed this version after years of perfecting the balance between cake structure and tropical fruit intensity, so you get restaurant-quality layers without the fuss.
The cake itself is a revelation: light yet sturdy enough to hold its shape, with a subtle pineapple essence that doesn’t overpower the delicate vanilla sponge. Between each layer, a velvety cream filling—infused with just a hint of lime zest—adds a refreshing contrast.
What makes this recipe truly special is the basil glaze: fresh, aromatic, and just sweet enough to complement the pineapple’s natural tang. It’s the kind of dessert that feels both elegant and effortless, perfect for summer gatherings or a special treat any time of year.
Assembling the cake is where the magic happens—each layer is soaked briefly in pineapple juice to prevent dryness, then stacked with precision. The final touch? A dusting of toasted coconut flakes or a drizzle of caramel for those who prefer extra richness.
The result is a cake that’s visually stunning with its golden layers and glossy glaze, but even more impressive in every bite—juicy, aromatic, and perfectly balanced.
This is the kind of dessert that makes guests ask for seconds, and the kind of recipe that becomes a staple in your baking rotation.
For those who love to experiment, variations are endless: swap the cream filling for whipped coconut cream, add a layer of spiced pineapple jam, or top with fresh berries for a burst of color.
The technique remains the same—moist layers, balanced flavors, and that signature tropical zing. Let’s get baking, and bring a taste of the tropics to your kitchen.
Ingredients for ananas cake
Eight layers of tropical delight—juicy pineapple-infused sponge meets velvety cream filling and aromatic basil glaze.
| Ingredient | Amount | Notes |
|---|---|---|
| All-Purpose Flour 🌾 | 3 cups | Sifted for light texture |
| Granulated Sugar 🍚 | 2 cups | White or light brown |
| Unsalted Butter 🧈 | 1 ½ cups | Room temperature, softened |
| Large Eggs 🥚 | 4 whole | Room temperature for even baking |
| Pure Vanilla Extract 🍯 | 2 tsp | High-quality, pure vanilla |
| Baking Powder 🧂 | 2 tsp | Diamond Crystal preferred |
| Salt 🧂 | ½ tsp | Fine sea salt preferred |
| Fresh Pineapple Juice 🍍 | 1 cup | From fresh or canned pineapple |
| Heavy Whipping Cream 🥛 | 2 cups | Full-fat for best texture |
| Powdered Sugar 🍚 | 2 cups | For glaze and filling |
| Lime Zest 🍋 | 1 tbsp | Freshly grated for brightness |
| Fresh Basil Leaves 🌿 | ½ cup | Packed, stems removed |
| Lemon Juice 🍋 | 1 tbsp | Freshly squeezed |
| Unsweetened Coconut Flakes 🥥 | ½ cup | Toasted for garnish |
The pineapple juice is non-negotiable for moisture—use freshly squeezed or high-quality canned pineapple with no added sugar. For the basil, farmers market varieties have the most vibrant flavor, but store-bought works if the leaves are bright green and free of bruises. The butter should be room temperature—cold butter creates dense layers. When selecting flour, opt for King Arthur or Gold Medal for consistent baking results. The lime zest adds a subtle brightness that balances the sweetness, so don’t skip it.
No fresh pineapple juice? Substitute with bottled pineapple juice (no sugar added), or blend frozen pineapple chunks with water. Running short on basil? Fresh mint leaves provide a similar aromatic contrast, though the flavor profile shifts slightly. For a dairy-free option, replace the heavy cream with coconut cream, though the texture will be lighter. If you prefer a richer filling, add 1 tbsp of mascarpone cheese to the whipped cream mixture. The coconut flakes can be swapped for toasted almonds or macadamia nuts for a different crunch.
The cake layers keep best in an airtight container at room temperature for 2 days, though they’re best enjoyed fresh. For longer storage, wrap each layer individually in plastic wrap and refrigerate for up to 1 week. The glaze can be made 1 day ahead and stored in the fridge—simply whisk with a splash of milk before using. To serve, dust with powdered sugar or drizzle with extra pineapple juice for a glossy finish. Freeze assembled layers (without glaze) for up to 3 months—thaw at room temperature before serving.
Why You'll Love This Recipe
- No Mixer Needed: I’ll be real—this cake only asks for a bowl and a whisk. No stand mixer, no food processor, just you folding butter into sugar until it’s light and fluffy. The eggs and vanilla blend right in without a fuss, and honestly? That’s my kind of baking.
- Pineapple-Kissed Magic: The butter and sugar create this melt-in-your-mouth crumb, but the vanilla? It’s the real MVP here. Rich, warm, and just sweet enough to make you forget you’re not using actual pineapple (shh, don’t tell anyone it’s not tropical). Every bite feels like a hug.
- Weeknight or Party: Between us, this cake is my go-to for birthdays, potlucks, or when I just want dessert without the drama. Slice it for a quick snack, serve it with ice cream for a fancy touch, or even pack slices for lunch—it’s that reliable. No one will guess it took less than an hour.
- Budget-Friendly Staples: Flour, sugar, butter, eggs—these are the ingredients I already have. No specialty items, no overpriced shortcuts. The leftovers? They last forever in the fridge, and honestly, I’ve reheated slices in the microwave more times than I’d admit. Practical wins.
Step-by-step instructions for ananas cake recipe
Master this tropical cake with vibrant pineapple-basil layers and creamy coconut filling.
Prepare the Pineapple-Basil Cake Batter
Preheat your oven to 350°F and grease two 9-inch round cake pans with nonstick spray, then line the bottoms with parchment paper. In a large mixing bowl, combine the 3 cups all-purpose flour, 2 cups granulated sugar, 2 tsp baking powder, and 0.5 tsp salt. Sift the dry ingredients together to eliminate any lumps and ensure even distribution.
In a separate bowl, beat the 1.5 cups unsalted butter until smooth and creamy, about 2-3 minutes with an electric mixer. Add the 4 whole large eggs, one at a time, mixing well after each addition. Incorporate the 2 tsp pure vanilla extract and 1 cup fresh pineapple juice, blending until fully combined. Gradually add the dry ingredients to the wet mixture, alternating with the 2 cups heavy whipping cream, beginning and ending with the flour mixture.
Fold in the 0.5 cup fresh basil leaves, finely chopped, and the 1 tbsp lime zest using a spatula. The batter should be smooth and slightly thick. Divide the batter evenly between the prepared cake pans, spreading it out evenly. Bake for 30-35 minutes or until a toothpick inserted into the center comes out clean. Allow the cakes to cool in the pans for 10 minutes before transferring them to a wire rack to cool completely.
Create the Coconut Cream Filling
In a medium bowl, whip the 2 cups heavy whipping cream to stiff peaks using an electric mixer. In a separate bowl, combine 2 cups powdered sugar, 1 tbsp lemon juice, and the remaining 1 tbsp lime zest. Gradually fold the powdered sugar mixture into the whipped cream until fully incorporated and smooth.
Toast the 0.5 cup unsweetened coconut flakes in a dry skillet over medium heat for 2-3 minutes, stirring constantly, until they turn a light golden color and release a nutty aroma. Set aside to cool slightly. The filling should be light, airy, and slightly tangy, with a hint of tropical brightness from the citrus zest.
Assemble and Glaze the Ananas Cake
Place one of the cooled cake layers on a serving plate. Spread half of the coconut cream filling evenly over the top, leaving a ½-inch border around the edges. Place the second cake layer on top, pressing down gently to create a smooth surface. Spread the remaining coconut cream filling over the top and sides of the cake, ensuring it's fully covered.
To create the glaze, mix 1 cup powdered sugar with 2 tablespoons fresh pineapple juice and 1 teaspoon lemon juice in a small bowl. Drizzle the glaze evenly over the top of the cake, allowing it to drip slightly down the sides. Sprinkle the toasted coconut flakes evenly over the glaze while it's still wet, pressing them gently into place. Chill the cake in the refrigerator for at least 2 hours before serving to allow the filling to set and the flavors to meld.
Garnish and Serve
Before serving, garnish the cake with additional toasted coconut flakes and a few fresh basil leaves for a pop of color and freshness. The cake should be served at room temperature to fully appreciate its layers of tropical flavors. Each slice should reveal a moist, pineapple-infused cake with a creamy coconut filling that balances the cake's slight tartness.
This cake is best enjoyed within 3-4 days when stored in an airtight container in the refrigerator. The flavors deepen as it sits, making each bite even more delightful. Serve with a cup of strong coffee or a refreshing tropical drink to complement the vibrant flavors.
Pro Tips For Making Ananas Cake
- MIX DRY INGREDIENTS FIRST: Sift the flour and sugar together before adding wet ingredients—this prevents lumps and ensures a smoother batter. I used to just dump everything in, and the cake always turned out dense; now it’s light and tender every time.
- CREAM BUTTER AND SUGAR UNTIL PALE: Beat the butter and sugar until it’s light and fluffy, not just combined—this incorporates air for a lighter cake. After burning three batches with under-creamed butter, I finally got it right: keep at it for 3-4 minutes until no streaks remain.
- DON’T OVERMIX THE BATTER: Mix just until the flour disappears; overworking it makes the cake tough. I learned this the hard way when my cake turned out like a brick—now I stop as soon as the batter looks smooth.
- USE ROOM-TEMPERATURE EGGS: Cold eggs can curdle the batter, leading to a grainy texture. Let them sit out for 30 minutes before cracking—yes, even if you’re impatient like me, this makes a real difference in the final crumb.
Make-ahead tips for this dish
Layer Prep Ahead
Bake the cake layers up to 3 days ahead and store them wrapped in plastic wrap at room temperature. This gives the pineapple flavors time to develop fully without drying out. I like to let them sit overnight before assembling—they become even more aromatic. Just
Filling Prep
Prepare the coconut cream filling 1 day ahead and store it in an airtight container in the fridge. The flavors meld beautifully, and the texture remains light if you whisk it briefly before using. For extra richness, add 1 tbsp mascarpone when making it ahead. The lime zest keeps the filling fresh, so don’t skip it—it’s the secret to that bright tropical taste. ✨
Glaze Timing
Make the basil glaze the morning of serving so it stays glossy and vibrant. Store it in a small jar in the fridge, and whisk in 1 tsp pineapple juice before using to restore its shine.
The toasted coconut flakes should be added fresh to maintain their crunch—don’t toast them ahead of time, as they’ll lose their aroma. 🥥
Assembly Strategy
Assemble the cake 4-6 hours before serving to let the filling set properly. Place it in the fridge during this time, then bring it to room temperature before serving. This ensures clean slices and a perfect balance of textures.
If you’re short on time, assemble it 2 hours ahead and keep it chilled—just add an extra 10 minutes at room temperature before serving. 💫
Storage Hacks
For longer storage, freeze the assembled cake (without glaze) for up to 3 months. Wrap each layer tightly in plastic wrap and place them in a freezer bag. Thaw overnight in the fridge, then add fresh glaze and coconut flakes before serving.
The pineapple juice soak keeps the layers moist even after freezing—trust me, it’s a game-changer. ❄️
Make-Ahead Mistakes
Avoid these common pitfalls: Don’t assemble the cake too early—wait at least 2 hours before refrigerating, or the filling may weep. Also, never skip the pineapple juice soak for the layers, even if making ahead.
If the glaze looks dry after refrigeration, whisk in 1 tsp warm water to restore its consistency. Small tweaks make all the difference! 💡
Nutrition facts
Frequently asked questions
Why does this recipe use pineapple juice in the batter?
The pineapple juice is the secret to keeping your cake moist and infused with that signature tropical flavor. It adds natural sweetness while preventing dryness—especially important for cakes with fruit flavors. The acidity in the juice also helps tenderize the cake's texture.
Can I substitute fresh pineapple for the juice?
Yes, but with adjustments! Blend 1 cup of fresh pineapple chunks with 1-2 tablespoons of water to extract the juice, then strain out the pulp. Use this fresh juice instead of store-bought. The pulp can be folded into the filling for extra texture. For the best flavor, use ripe pineapple with bright color and sweet aroma.
How do I make this cake gluten-free?
Replace the all-purpose flour with a 1:1 gluten-free baking flour blend (like Bob's Red Mill or King Arthur). Add 1 tsp xanthan gum to help bind the layers. For the filling, ensure your powdered sugar is gluten-free certified. The cake will still be moist, but the texture may be slightly denser than traditional versions.
What's the best way to store leftovers?
Keep the cake in an airtight container in the refrigerator for up to 4 days. To serve, let it sit at room temperature for 15-20 minutes—this restores the creamy texture of the filling. For longer storage, freeze the assembled cake (without glaze) for up to 3 months. Thaw overnight in the fridge before adding fresh glaze and coconut flakes.
Can I make this cake without coconut?
For the filling, substitute coconut flakes with toasted almonds or macadamia nuts for garnish. Replace the coconut cream with regular heavy whipping cream, and add 1 tsp vanilla bean paste to enhance flavor. The pineapple-basil combination still shines without coconut—it just shifts the flavor profile to a more classic vanilla-citrus profile.
