Desserts
This ananas cake recipe brings sunshine to any kitchen with its bright, tropical layers that taste like summer in every bite. The secret lies in perfectly balanced sweetness—juicy pineapple folded into tender cake layers, topped with a velvety coconut frosting that ties everything together. I've baked this cake countless times, and it never fails to impress, whether for a birthday celebration or a simple dessert craving.
The recipe combines classic cake techniques with a modern twist, using simple ingredients like flour, sugar, eggs, and butter to create a moist, flavorful base. Fresh pineapple puree adds natural sweetness and moisture, while a touch of vanilla enhances the tropical vibes. The coconut frosting isn't just decorative—it adds a creamy, slightly sweet contrast that makes every forkful unforgettable.
What makes this cake truly special is its versatility. You can adapt it to fit dietary needs—swap regular flour for gluten-free or use coconut oil instead of butter for a vegan version. The layers stay tender and the frosting holds its shape, ensuring a professional-looking dessert that's surprisingly easy to make.
Perfect for feeding a crowd or enjoying a slice with afternoon tea, this cake delivers restaurant-quality results with minimal effort. Let's get started on creating your own tropical masterpiece!
Ingredients for ananas cake
Simple pantry staples meet tropical sunshine in this bright, layered cake delight.
| 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, cubed |
| Large Eggs 🥚 | 4 whole | Room temperature preferred |
| Fresh Pineapple Puree 🍍 | 1 ½ cups | Strained, no chunks |
| Vanilla Extract 🌿 | 2 tsp | Pure vanilla preferred |
| Baking Powder 🍃 | 2 tsp | Diamond Crystal preferred |
| Salt 🧂 | ½ tsp | Fine sea salt |
| Coconut Milk 🥥 | 13 ½ oz | Full-fat canned, chilled overnight |
| Shredded Coconut 🥥 | 1 ½ cups | Sweetened, toasted |
| Powdered Sugar 🍚 | 3 cups | For frosting |
| Lemon Juice 🍋 | 1 tbsp | Freshly squeezed |
The pineapple puree is non-negotiable for that authentic tropical flavor. Fresh is best, but quality canned pineapple works in a pinch—just strain out all the juice. For the coconut milk, full-fat canned is key—it adds richness to the frosting. I grab mine from Trader Joe's or the Asian market, where they keep it well-stocked. Toast your shredded coconut for 5 minutes at 350°F—it adds a nutty depth that plain coconut can't match. The butter should be room temperature but not melted; if it's too soft, chill it for 15 minutes.
No fresh pineapple? High-quality canned pineapple (like Dole or Del Monte) works, but strain it well to avoid soggy layers. Out of vanilla extract? Almond extract at half the amount gives a similar floral note. For a gluten-free version, swap the all-purpose flour for a 1:1 gluten-free blend—just don't skip sifting. The coconut milk can be substituted with heavy cream thinned with milk if you're avoiding coconut, though it won't be as authentically tropical. And if you're making this ahead, prep the frosting first—it needs time to thicken properly.
This cake stays fresh for 3 days at room temperature, covered loosely with plastic. For longer storage, wrap the layers separately in plastic wrap and refrigerate for up to 5 days. The frosting can be made 2 days ahead and stored in the fridge—just rewhip it before assembling. To transport, slice the cake first and stack the pieces on a platter. The flavors actually improve after a day or two, as the pineapple puree melds with the cake layers. Freeze the unfrosted layers for up to 3 months if you're planning ahead.
Why You'll Love This Recipe
- Here’s what sold me: you’re using pantry staples—flour, sugar, butter—and turning them into something that feels special. That fresh pineapple puree? A single pineapple lasts me three cakes, and the flavor punches way above its price. Fancy enough for guests, cheap enough for weeknights.
- No Blender Needed: I’ll be honest—this cake only needs a whisk and a fork. That fresh pineapple puree? You blend it yourself (or grab store-bought if you’re in a rush), but the rest is just creaming butter and sugar like you’ve done a hundred times before. No fancy gadgets, no stress.
- Tropical in Two Bites: The moment the fork hits that moist crumb, you’ll taste it: sweet but not cloying, thanks to the pineapple’s tang cutting through the butter and sugar. It’s like a hug in cake form—familiar enough to feel safe, but that tropical twist makes it unexpectedly exciting.
- Lunchbox Hero: Between us, this cake is my go-to for packed lunches. Slice it, wrap it in parchment, and it holds up for days—no soggy middle in sight. Kids (and adults) will actually want to eat their dessert for lunch. (Yes, even on a Tuesday.)
Step-by-step instructions for tropical layers with pineapple zing
Here's how to create a moist pineapple cake with rich coconut layers—every step ensures perfect texture and flavor.
Prepare the Cake Batter Foundation
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 lumps and aerate the mixture—this creates a lighter cake texture. Set aside for now.
In a separate bowl, beat the 1.5 cups Unsalted Butter and 4 whole Large Eggs on medium speed until smooth and slightly thickened. This process incorporates air, which helps the cake rise properly. Gradually add the 1.5 cups Fresh Pineapple Puree and 2 tsp Vanilla Extract, mixing until fully combined. The puree adds natural sweetness and moisture without altering the cake's structure.
Combine Wet and Dry Ingredients
With the mixer on low speed, gradually add the dry ingredient mixture to the wet ingredients. Mix just until combined—you should still see small flour streaks. Overmixing develops gluten, which can make the cake dense. Scrape down the sides of the bowl as needed to ensure even mixing.
Pour the batter into two 9-inch round cake pans lined with parchment paper. Smooth the tops with a spatula, then bake at 350°F for 25-30 minutes until a toothpick inserted into the center comes out clean. The cake edges should be golden brown, but the tops may still look slightly underdone—they'll firm up as they cool.
Prepare the Coconut Filling
While the cakes bake, prepare the coconut filling. In a saucepan, combine the 13.5 oz Coconut Milk and 1 tbsp Lemon Juice over medium heat. Bring to a gentle simmer, stirring frequently to prevent scorching. Once heated through, reduce the heat to low and stir in the 1.5 cups Shredded Coconut until fully incorporated. The mixture should thicken slightly—remove from heat and let it cool completely before assembling.
Assemble the Tropical Layers
Once the cakes have cooled completely, level the tops if needed. Place one cake layer on a serving plate and spread a thin layer of the coconut filling over the top. This ensures even distribution and prevents soggy layers. Repeat with the second cake layer, then spread the remaining coconut filling evenly over the top.
For the final touch, dust the entire cake with 3 cups Powdered Sugar sifted evenly over the surface. This creates a snowy finish that contrasts beautifully with the golden-brown cake and coconut filling. Serve at room temperature for the best texture and flavor balance.
Pro Tips For Making Ananas Cake
- STRAIN THE PUREE: Fresh pineapple puree is your flavor bomb, but the gritty bits ruin the texture. After blending, pour it through a fine-mesh sieve or cheesecloth—even a damp coffee filter works in a pinch. I learned this the hard way when my first batch had a weird grainy mouthfeel that made me question my life choices.
- CREAM BUTTER AND SUGAR LOW: Skip the food processor for this—your stand mixer’s paddle attachment is your friend. Beat the butter and sugar on medium speed until it’s truly pale and fluffy, about 3-4 minutes. I used to rush it, and the cake turned out dense. Let the butter soften first (not melted) and give it time to lighten up properly.
- WEIGH YOUR FLOUR: Scooping flour from the bag packs it down, and that’s how you end up with a cake that’s too heavy. Use a kitchen scale for precision—this recipe needs about 250g (roughly 2 cups) of all-purpose flour, but don’t guess. My first few attempts were brick-like until I switched to measuring by weight.
- BAKE UNTIL COOLER THAN YOU THINK: Ananas cake is moist, so it tests done differently than vanilla cake. Pull it out when the center is just set—think a toothpick with a few crumbs, not clean. If you bake it until fully dry, it’ll turn gummy. Let it cool in the pan for 10 minutes first, then transfer—this keeps the layers from falling apart.
Wine and beer pairings for this ananas cake
Coconut Milk Cream
A full-fat canned coconut milk like Trader Joe's or Goya is my go-to for this cake's frosting—its richness balances the cake's sweetness perfectly. Chill the can overnight to separate the cream from the water, then use only the thick cream layer. For a lighter texture, whip the chilled coconut cream with 3 cups powdered sugar and 1 tbsp lemon juice until fluffy. This creates a cloud-like frosting that's lighter than traditional buttercream but still holds its shape. 🥥
Tropical White Wine
For a sophisticated pairing, reach for a dry Gewürztraminer from Alsace, France. This aromatic white wine's lychee and rose notes complement the pineapple's sweetness while cutting through the coconut's richness. Serve slightly chilled (50-55°F) to enhance its crisp acidity. Another excellent choice is a Viognier—its floral and stone fruit flavors mirror the cake's tropical profile. Avoid sweet wines like Moscato, as they'll clash with the cake's balanced sweetness. 🍷
Crisp Lager Pairing
A Mexican lager like Corona Extra or Modelo Especial is my favorite beer match for this cake. The beer's clean, crisp finish cleanses your palate between bites, while its subtle malt sweetness enhances the pineapple's natural sugars. For a Belgian twist, try a witbier like Hoegaarden—its coriander and orange peel notes add a refreshing contrast. Serve the beer ice-cold (40-45°F) to highlight its crispness. 🍺
Spiced Rum Cocktail
For a festive touch, mix a dark spiced rum like Captain Morgan with pineapple juice and a splash of coconut cream. The rum's caramel and cinnamon notes echo the cake's coconut filling, while the pineapple juice amplifies the dessert's tropical vibe. Serve over crushed ice with a pineapple wedge garnish. This cocktail works as both a pre-dinner drink and a dessert companion. For a non-alcoholic version, swap the rum for extra pineapple juice and add a splash of lime. 🍹
Coffee Pairing
If you prefer coffee over wine or beer, opt for a lightly roasted, single-origin coffee from Central America. The coffee's bright acidity and subtle fruit notes complement the cake's pineapple flavor without overpowering it. Serve the coffee black or with a splash of coconut milk for a creamy finish. For an espresso-based drink, try a coconut milk latte—the warm spices in the coffee enhance the cake's tropical profile. ☕
Nutrition facts
Frequently asked questions
Can I substitute canned pineapple for fresh pineapple puree?
Yes, but with a key adjustment! Use 1 (20 oz) can of crushed pineapple (drained well) and add 1 tbsp lemon juice to balance the sweetness. The texture will be slightly chunkier, but it still works beautifully. For a smoother result, blend the drained pineapple until completely smooth before mixing into the batter.
Why does my pineapple cake turn out dense instead of light?
Overmixing the batter is the most common culprit! Mix just until combined—you should still see small flour streaks. Also, ensure your butter and eggs are room temperature, and don't skip sifting the dry ingredients. Another tip: don't overbake—pull the cake when a toothpick comes out clean (even if the top seems slightly underdone). It will firm up as it cools.
How can I make this cake gluten-free?
Swap the all-purpose flour for a 1:1 gluten-free baking flour blend (like Bob's Red Mill or King Arthur). Use the same measurements, but sift it thoroughly to avoid lumps. You may need to add 1 extra tbsp of xanthan gum if your blend doesn't contain it—this helps with structure. For the coconut filling, regular shredded coconut works fine, but check the label to ensure it's gluten-free.
Can I make this cake ahead of time?
Bake the layers 1 day ahead and store them wrapped at room temperature. Assemble the cake 4-6 hours before serving to let the flavors meld. The frosting can be made 2 days ahead and refrigerated—just rewhip it before using. For longer storage, freeze the unfrosted layers for up to 3 months. The cake actually tastes better after a day or two as the pineapple flavors develop!
What's the best way to decorate this cake for special occasions?
Start with the powdered sugar dusting for a classic look, then add tropical accents! Try piping coconut cream in swirls around the edges, or arrange fresh pineapple slices on top. For a festive touch, use edible gold leaf or sprinkle toasted coconut flakes. For birthdays, add colorful sprinkles or a "Happy Birthday" message in coconut cream. The key is to keep it bright and cheerful to match the cake's tropical vibe!
