Desserts
This 2-layer carrot cake recipe with pineapple brings together the cozy warmth of classic carrot cake with a bright, tropical twist that feels like summer in every bite. 🌴 I developed this recipe after years of perfecting the balance between moist cake layers, creamy filling, and that perfect caramelized pineapple topping—it’s the kind of dessert that disappears faster than you can say "double batch."
The secret lies in using crushed pineapple and fresh chunks for texture, while the spiced cream cheese filling adds just the right amount of tang to cut through the sweetness.
What makes this recipe special is how it combines foolproof techniques with vibrant flavors—no fancy equipment required, just a few key steps that ensure tender layers and a filling that stays luscious even after hours.
The cake itself is lightly spiced with cinnamon and nutmeg, giving it that classic carrot cake warmth, while the pineapple topping caramelizes beautifully for a sticky, golden finish. I’ve baked this for everything from holiday gatherings to impromptu dessert nights, and it’s always a crowd-pleaser.
The result is a visually stunning cake with layers of moist carrot cake, rich cream cheese filling, and a caramelized pineapple topping that adds a pop of color and a burst of tropical flavor.
The texture is perfect—tender cake, creamy filling, and a slightly crispy pineapple crust that holds together beautifully. This isn’t just dessert; it’s a showstopper that feels like a hug in cake form.
Whether you’re baking for a special occasion or just craving something comforting yet exciting, this recipe delivers. The best part? It’s easy to adapt—swap in walnuts for pecans, adjust the spice level, or even add a layer of cream cheese frosting if you prefer. Let’s get baking!
Ingredients for 2 layer carrot cake recipe with pineapple
Twelve ingredients transform into a tropical carrot cake masterpiece that's pure comfort with a sunny twist.
| Ingredient | Amount | Notes |
|---|---|---|
| All-Purpose Flour 🌾 | 2 ½ cups | Spooned and leveled for accuracy |
| Granulated Sugar 🍚 | 2 cups | White or light brown |
| Packed Brown Sugar 🍚 | 1 cup | Light or dark preferred |
| Vegetable Oil 🫒 | 1 cup | Light or canola works best |
| Crushed Pineapple (20 oz can) 🍍 | 20 oz | Undrained, for moisture |
| Fresh Pineapple Chunks 🍍 | 1 ½ cups | Diced small for texture |
| Large Eggs 🥚 | 4 whole | Room temperature preferred |
| Unsweetened Applesauce 🍎 | ½ cup | For moisture, unsweetened |
| Ground Cinnamon 🌿 | 2 tsp | Freshly ground preferred |
| Ground Nutmeg 🌿 | ½ tsp | Freshly grated for warmth |
| Ground Ginger 🌶️ | 1 tsp | Freshly ground for zing |
| Salt 🧂 | 1 tsp | Kosher or sea salt |
| Shredded Carrots 🥕 | 3 cups | Finely grated, no skins |
| Walnuts 🌰 | 1 cup | Chopped, toasted optional |
| Cream Cheese (8 oz block) 🧀 | 8 oz | Full-fat, room temperature |
| Powdered Sugar 🍚 | 1 ½ cups | For filling sweetness |
| Vanilla Extract 🌿 | 1 tbsp | Pure vanilla preferred |
| Butter (unsalted) 🧈 | ½ cup | Softened for spreading |
The pineapple is what makes this cake shine—crushed and fresh chunks give that perfect tropical crunch. Grab Dole or Del Monte crushed pineapple for convenience, but fresh is better if you're feeling fancy. Trader Joe's has the best pre-cut pineapple chunks, and they're cheaper than you'd think. For the carrots, organic is ideal—they grate smoother and have more natural sweetness. Don't skip the walnuts; they add that perfect crunch that balances the soft cake. Toasting them first? Game-changer. And the cream cheese? Philadelphia brand melts the best—never the powdered kind.
No crushed pineapple? Fresh pineapple purée works—just blend and strain. Short on carrots? Sweet potato purée at half the amount adds moisture without overpowering. The walnuts can be swapped for pecans (toast them first!), and if you're nut-free, extra shredded coconut gives that tropical vibe. For the filling, powdered sugar is a must—it dissolves perfectly. No vanilla extract? Vanilla bean paste or even a scraped vanilla pod works. The cake layers are forgiving—if you don't have applesauce, Greek yogurt at half the amount keeps things moist.
This cake tastes even better the next day—cover tightly and store at room temperature for 2 days. For longer storage, wrap each layer in plastic and refrigerate for up to 5 days. The pineapple topping keeps best if you bake it fresh, but you can prep the filling and cake layers a day ahead. Freeze the whole cake (unfrosted) for up to 3 months—just thaw overnight before serving. And trust me, double the batch—it disappears faster than you can say "pineapple caramel."
Why You'll Love This Recipe
- I’ll be real: this recipe stretches my dollar. A single can of pineapple and basic pantry staples mean I’m not breaking the bank for dessert. Plus, leftovers? They disappear faster than I can say “second slice.”
- Pantry-Friendly Magic: I swear by this recipe because it uses what’s already in my cupboards—no specialty ingredients, no last-minute grocery runs. That 20 oz can of crushed pineapple? It’s the secret weapon that cuts down on extra steps (no grating, no peeling), and the oil keeps things moist without fuss.
- Sweet-Tart Surprise: Here’s what sold me—the way the pineapple’s tang cuts through the carrot cake’s richness. The brown sugar adds this deep, molassesy warmth, while the crushed pineapple keeps it from being too heavy. It’s like a hug for your taste buds, but make that a tropical hug.
- Party or Picnic: Between us, this cake is my go-to for birthdays, potlucks, or even a lazy Sunday with coffee. The layers hold up well, so you can slice it ahead—no one will guess it’s not from a bakery. (Yes, even on a Tuesday night.)
Step-by-step instructions for tropical carrot cake
Here's how to create this showstopping two-layer cake with a moist, spiced base and creamy pineapple filling!
👨🍳 Step 1: Mix the Cake Batter Like a Pro
In a large mixing bowl, whisk together the 2.5 cups all-purpose flour, 2 cups granulated sugar, 1 cup packed brown sugar, 2 tsp ground cinnamon, 0.5 tsp ground nutmeg, 1 tsp ground ginger, and 1 tsp salt. This dry mix is your flavor foundation—don't skip measuring accurately or the cake will taste flat.
In a separate bowl, beat the 4 whole large eggs until frothy, then add the 1 cup vegetable oil and mix well. Slowly pour this wet mixture into the dry ingredients while stirring on low speed. The batter will look thick and crumbly—this is normal! Add the 3 cups shredded carrots, 1.5 cups fresh pineapple chunks, and 0.5 cup unsweetened applesauce, mixing just until combined. Overmixing develops gluten, so stop as soon as everything is incorporated.
🍳 Step 2: Bake the First Layer to Golden Perfection
Preheat your oven to 350°F and grease two 9-inch round cake pans with nonstick spray. Divide the batter evenly between the pans. Here's the thing—don't overfill them! The batter should come about ¾ of the way up the sides, or your cake might overflow during baking.
Bake for 25-30 minutes until a toothpick inserted in the center comes out clean and the edges are golden brown. I like to tap the pans gently on the counter—they should sound hollow when done. Let the cakes cool in the pans for 10 minutes, then transfer to a wire rack to cool completely. This cooling step is crucial for clean slicing later.
🥘 Step 3: Prepare the Cream Cheese Filling
While the cakes cool, beat the 8 oz cream cheese and 0.5 cup softened butter together in a medium bowl until smooth and creamy. Here's where it gets fun—add the 1.5 cups powdered sugar and 1 tbsp vanilla extract, then beat until light and fluffy. This is your tropical twist—fold in 1 cup chopped walnuts and 1 cup of the crushed pineapple (with juices) for that perfect balance of sweetness and texture.
I like to add a splash of the pineapple juice from the can if the mixture seems too thick. The filling should be smooth but still hold its shape when spread—this ensures clean layers when you assemble the cake. Taste it now! You can adjust the sweetness with more powdered sugar if needed.
🍰 Step 4: Assemble the Cake with Confidence
Place the first cake layer on a cake stand or plate. Spread about ½ of the cream cheese filling evenly over the top, leaving a ½-inch border uncovered. This prevents filling from oozing out the sides. Here's the trick—use a spatula to create a slight dam around the edges to contain the filling.
Top with the second cake layer and press down gently to create a level surface. Spread the remaining filling over the top and sides, smoothing with an offset spatula. The filling should be visible between the layers when you cut into it—this is what makes it look so professional! Chill the cake in the refrigerator for at least 2 hours before serving. This resting time lets the flavors meld perfectly.
🍽️ Step 5: Serve with Tropical Flair
Slice the cake with a sharp serrated knife that's been dipped in hot water and wiped dry—this ensures clean cuts every time. The layers should reveal that beautiful cream cheese filling speckled with pineapple and walnuts. Serve with a sprinkle of extra walnuts and a dollop of whipped cream if you're feeling fancy.
Each bite delivers that perfect balance of spiced carrot cake, creamy pineapple filling, and nutty crunch. The cake keeps well in the fridge for 3-4 days, though I doubt it'll last that long! Store any leftovers covered tightly to maintain freshness. This tropical twist on a classic carrot cake is sure to become your new favorite dessert.
Pro Tips For Making 2 Layer Carrot Cake Recipe With Pineapple
- DRAIN THE PINEAPPLE—REALLY DRAIN IT: That 20 oz can of crushed pineapple comes with a lot of juice, and skipping this step means a soggy cake. Dump it into a colander, press down with a spoon, and let it drain for 10 minutes. I learned this the hard way—my first batch turned out like a dense, sticky brick because I didn’t.
- BAKE THE LAYERS UNTIL THEY SPRING BACK: A toothpick test alone won’t cut it here. The cake should pull away clean and bounce back slightly when pressed in the center. Overbaking dries it out, but underbaking leaves you with a gummy mess. If the edges look set but the middle feels squishy, add 5-7 minutes—your patience will pay off.
- SWAP BROWN SUGAR FOR WHITE IN THE FROSTING: The frosting’s job is to balance the cake’s sweetness, not overpower it. Replace half the brown sugar with white in the cream cheese frosting—it’ll be smoother, less gritty, and let the pineapple’s tang shine through. Trust me, your taste buds will notice the difference.
- LET THE CAKE COOL IN PANS—BUT NOT TOO LONG: Don’t rush to unmold it hot, but don’t let it sit for hours either. After 20 minutes, run a knife around the edges, then invert onto a wire rack to cool completely. This keeps the layers from collapsing when you slice it. (Yes, even if you’re eager to eat it.)
Best sauces and condiments for these flavors
Caramelized Pineapple Topping
This is the star of the show—a sweet, sticky pineapple glaze that caramelizes beautifully on top of your cake. Start by draining 1 cup of crushed pineapple (with juices) in a small saucepan.
Add 2 tablespoons unsalted butter and 2 tablespoons brown sugar, then simmer over medium heat for 5-7 minutes until thickened and golden. Stir in ½ teaspoon vanilla extract and ¼ teaspoon ground cinnamon for warmth.
Spread this glaze over the top of your assembled cake right before baking it at 350°F for 10 minutes to set. The result? A glossy, caramelized crust that adds texture and tropical flavor. 🍍
Cream Cheese Frosting Upgrade
For an extra-luscious finish, swap the filling for a lighter cream cheese frosting by whipping 8 oz cream cheese, ½ cup softened butter, and 2 cups powdered sugar until smooth. Fold in 1 teaspoon vanilla extract and ½ cup crushed pineapple (with juices) for moisture.
This version is perfect for those who prefer a smoother texture while keeping that pineapple punch. Pipe it over the cake or spread it between layers for a showstopping look. The frosting holds its shape beautifully and pairs perfectly with the caramelized topping.
Spiced Whipped Cream
Elevate your serving with a quick spiced whipped cream—whip 1 cup heavy whipping cream until soft peaks form, then fold in 2 tablespoons powdered sugar, ½ teaspoon vanilla extract, and a pinch of ground cinnamon. Drizzle this over slices or serve as a side for dipping.
The cinnamon adds warmth that complements the carrot cake’s spices, while the cream balances the richness of the filling. For extra flair, dust with toasted coconut flakes or a sprinkle of crushed pineapple on top. 🌟
Vanilla Bean Syrup Drizzle
Add a sophisticated touch with a vanilla bean syrup—simmer ½ cup water, ½ cup granulated sugar, and 1 vanilla bean (or 1 teaspoon vanilla extract) for 5 minutes until the sugar dissolves. Strain and drizzle over the cake before serving.
The syrup enhances the vanilla notes in the filling and adds a subtle sweetness that ties all the flavors together. It’s a simple but elegant way to make your cake feel restaurant-worthy without extra effort.
Coconut Cream Swirl
For a tropical twist, replace the pineapple in the filling with coconut cream**—blend 1 cup full-fat coconut cream (chilled overnight) with ½ cup powdered sugar and 1 teaspoon vanilla extract until smooth. Swirl it into the cream cheese filling before assembling the cake for a marbled effect.
The coconut adds a creamy, slightly sweet contrast to the carrot cake’s spices, and it pairs beautifully with the caramelized pineapple topping. Use a skewer to create pretty swirls for a stunning presentation. 🥥
Nutrition facts
Frequently asked questions
Can I use fresh pineapple instead of crushed pineapple in the cake?
Fresh pineapple works beautifully—just blend 1.5 cups fresh pineapple chunks with 2 tablespoons sugar until smooth, then strain to remove excess liquid. Use this purée to replace the crushed pineapple in both the cake batter and filling. The texture will be slightly different but adds a brighter, more vibrant flavor. For the topping, caramelize 1 cup fresh pineapple chunks with 2 tablespoons brown sugar and 1 tablespoon butter for 5-7 minutes until sticky and golden.
How do I make this cake nut-free?
Skip the walnuts and replace them with ½ cup shredded coconut (toasted for extra flavor) or 1 cup dried cranberries for a fruity crunch. For the filling, omit the walnuts entirely—it’ll still be delicious with just the cream cheese, pineapple, and vanilla. If you want extra texture, try ½ cup mini chocolate chips or 1 cup white chocolate chunks for a decadent twist. The cake’s moisture comes from the applesauce and crushed pineapple, so no adjustments are needed there.
Can I bake this cake in a different pan size?
Yes, but adjust the baking time and temperature. For 8-inch pans, bake at 350°F for 30-35 minutes—the smaller surface area means slightly longer baking. For 10-inch pans, reduce oven temperature to 325°F and bake for 25-30 minutes to prevent over-browning. Always check for doneness with a toothpick. If using odd-shaped pans, aim for ½-inch thick layers and increase baking time by 5-10 minutes. The key is even heat distribution—rotate pans halfway through baking.
Why did my cake turn out dense instead of moist? Dense cake usually means overmixing or insufficient leavening.
Can I make this cake ahead of time?
This cake actually tastes better the next day! Bake the layers and assemble the cake 1 day ahead, then refrigerate uncovered for 24 hours to let flavors meld. For longer storage, wrap each layer individually in plastic wrap and refrigerate for up to 5 days. To serve, bring to room temperature for 30 minutes before slicing. For freezing, wrap the unfrosted cake tightly in plastic and foil, then freeze for up to 3 months. Thaw overnight in the fridge before adding the pineapple topping and serving.
