Desserts
This 2-layer carrot cake recipe with pineapple transforms a classic dessert into something vibrant and unexpected—moist, tropical layers balanced by tangy cream cheese frosting. 💛 The secret? Caramelizing pineapple chunks for natural sweetness and juiciness that keeps the cake tender, not dry. I developed this version after years of baking carrot cake, always searching for ways to elevate it beyond the ordinary.
The recipe delivers foolproof layers with a simple technique: grated carrots and pineapple folded into a spice-rich batter, baked until golden, then topped with a velvety cream cheese frosting that ties everything together. No fancy equipment needed—just a mixing bowl and patience for the flavors to meld. The pineapple adds a bright contrast to the warm spices, making each bite feel like a little vacation.
What you’ll end up with is a cake that’s rich yet light, with a perfect balance of sweetness and tang. The pineapple layers stay juicy, while the frosting adds that creamy, slightly sweet finish we all love. It’s the kind of dessert that disappears quickly at gatherings but still feels special enough for holidays or Sunday dinners.
Ready to bake? This recipe scales easily, so you can adjust the size for a crowd or keep it intimate for a small gathering. The key is letting the pineapple caramelize just enough to enhance the flavor without overpowering the carrots. Let’s get started!
Ingredients for 2 layer carrot cake recipe with pineapple
Pantry staples meet tropical flavors—this cake delivers juicy layers and creamy frosting without fuss.
| Ingredient | Amount | Notes |
|---|---|---|
| All-Purpose Flour 🌾 | 2 ½ cups | Sifted for light texture |
| Granulated Sugar 🍚 | 2 cups | White or light brown |
| Light Brown Sugar 🍚 | 1 cup | Packed firmly |
| Unsalted Butter 🧈 | 1 cup | Room temperature, full-fat |
| Fresh Pineapple 🍍 | 2 cups | Diced, caramelized (1 tbsp sugar) |
| Organic Carrots 🥕 | 3 cups | Grated, skin on |
| Large Eggs 🥚 | 4 whole | Room temperature |
| Pure Vanilla Extract 🌿 | 2 tsp | High-quality, pure |
| Ground Cinnamon 🌶️ | 2 tsp | Freshly ground preferred |
| Ground Ginger 🌿 | 1 ½ tsp | Freshly grated better |
| Ground Nutmeg 🌶️ | ½ tsp | Freshly grated preferred |
| Baking Soda 🧂 | 1 tsp | Pure, uncoated |
| Salt 🧂 | ½ tsp | Diamond Crystal preferred |
| Walmart Great Value Cream Cheese 🧀 | 16 oz | Room temperature, full-fat |
| Powdered Sugar 🍚 | 3 cups | Sifted for smooth frosting |
| Lemon Juice 🍋 | 1 tbsp | Freshly squeezed |
| Walnuts 🥜 | ½ cup | Toasted, chopped |
The pineapple is non-negotiable for that bright, tropical vibe. Fresh is best—skip the canned stuff, even the fancy brands. Look for yellow-fleshed varieties at Whole Foods or your local farmers market. Caramelizing it with just a touch of sugar (1 tbsp per 2 cups) concentrates the flavor without turning it mushy. The carrots? Organic, skin-on adds natural sweetness and vibrant color. I always grab the 2-pound bags at Trader Joe's—they're pre-washed and consistent. For the spices, Penzeys or the bulk section at Sprouts gives you the freshest ground flavors. Pro tip: Toast your walnuts in a dry pan for 3-4 minutes—they'll taste a million times better.
No fresh pineapple? Canned crushed pineapple, drained well works in a pinch, but toss it with 1 tbsp brown sugar and let it sit for 10 minutes to caramelize. Swapping the cream cheese? Philadelphia is foolproof, but Kite Hill almond-based works for vegan versions. The frosting needs tang, so if you're short on lemon juice, white vinegar at half the amount does the trick. For the cake batter, King Arthur flour or Bob's Red Mill 1-to-1 baking flour keeps things light if you're gluten-sensitive. And if you're out of walnuts, pecans or candied ginger add a nice crunch.
This cake keeps beautifully—3 days at room temperature covered loosely, or 1 week refrigerated in layers separated by parchment. The frosting? 3 days max in the fridge, but it's worth making fresh for gatherings. I always bake the layers the day before, let them cool completely, then frost right before serving. That way, the flavors meld overnight. Freeze the unfrosted layers for up to 3 months—just thaw at room temp before decorating. And if you're making it ahead for a party, the frosting can be whipped a day early and refrigerated, then re-whipped with a splash of milk before using.
Why You'll Love This Recipe
- Here’s what sold me: fresh pineapple adds that restaurant-worthy touch, but it’s cheaper than buying a pre-made cake. The butter and sugar stretch far, and leftovers? They’re even better the next day—if they last that long.
- No Mixer Needed: I swear by this recipe because it’s the one I pull out when I’m too tired to cream butter and sugar by hand. Just grate the carrots, mash the pineapple, and fold—no stand mixer, no fuss. The texture turns out light and fluffy anyway, like magic.
- Pineapple Twist: Honestly, the fresh pineapple changes everything. That bright, juicy bite cuts through the carrot cake’s sweetness, making each forkful feel like a little vacation. (Yes, even on a Tuesday night.)
- Crowd-Pleaser Layers: Between us, this is the dessert I bring to potlucks because it’s easy to double and always gets raved about. The layers—moist cake with creamy frosting—mean you can slice it for a dozen people without anyone feeling shortchanged.
Step-by-step instructions for tropical carrot cake with cream cheese frosting
Here's how to bake a showstopping two-layer carrot cake with juicy pineapple and velvety cream cheese frosting.
👨🍳 Step 1: Prepare the Tropical Carrot Cake Layers
Preheat your oven to 350°F and grease two 9-inch round cake pans with butter, then line the bottoms with parchment paper. In a large bowl, whisk together the 2.5 cups all-purpose flour, 2 cups granulated sugar, 1 cup light brown sugar, 2 tsp ground cinnamon, 1.5 tsp ground ginger, 0.5 tsp ground nutmeg, 1 tsp baking soda, and 0.5 tsp salt. Sift the flour mixture to ensure no lumps remain.
In a separate bowl, cream the 1 cup unsalted butter until light and fluffy, about 3-4 minutes. Add the 4 whole large eggs one at a time, mixing well after each addition. Stir in the 2 tsp pure vanilla extract. Gradually add the dry ingredients to the wet, mixing just until combined. Fold in the 3 cups grated organic carrots and 2 cups diced fresh pineapple (previously caramelized with 1 tbsp sugar). The batter will be thick but moist—this is perfect for that tender crumb.
🔥 Step 2: Bake the Layers to Golden Perfection
Divide the batter evenly between the prepared pans. Sprinkle the tops with the 0.5 cup toasted, chopped walnuts for added crunch. Bake for 25-30 minutes or until a toothpick inserted in the center comes out clean. The edges should be golden brown, but the center should still have a slight bounce—overbaking dries out the cake.
I like to rotate the pans halfway through baking to ensure even browning. As soon as they're done, remove from the oven and let cool in the pans for 10 minutes. Then transfer to a wire rack to cool completely. This resting period prevents the layers from crumbling when you frost them later.
🥘 Step 3: Assemble with Cream Cheese Frosting
While the cakes cool, prepare the frosting by beating the 16 oz room-temperature cream cheese until smooth. Gradually add the 3 cups powdered sugar and 1 tbsp lemon juice, mixing on low speed until creamy. Increase the speed to medium and beat for 2-3 minutes until light and fluffy. This is where the magic happens—the tangy lemon brightens the sweetness, balancing the carrot cake's richness.
Once the cakes are completely cool, level the tops if needed. Place one layer on a serving plate and spread a generous layer of frosting. Top with the second layer and frost the entire cake, creating a smooth finish. For extra flair, pipe decorative swirls around the edges or add a dusting of powdered sugar on top. Chill in the refrigerator for 30 minutes before slicing to let the frosting set.
⏰ Step 4: Final Touches and Serving
The cake tastes best at room temperature, so let it sit for 15-20 minutes before serving. Each slice should reveal a moist, spiced carrot cake layer with juicy pineapple chunks peeking through, topped with a velvety cream cheese frosting. The walnuts add a satisfying crunch that contrasts beautifully with the tender cake.
For the best experience, serve with a dollop of whipped cream or a scoop of vanilla ice cream on the side. This cake keeps well in the refrigerator for up to 5 days, though I doubt it will last that long—it's too delicious to resist!
Pro Tips For Making 2 Layer Carrot Cake Recipe With Pineapple
- BAKE IT COOLER: I learned this the hard way—carrot cake with pineapple needs patience. Bake at 325°F (not 350°F) for even cooking; the pineapple adds moisture, and heat too fast, and you’ll end up with a gummy mess. Check doneness at 45 minutes, not the recipe’s time—this cake’s dense.
- GRATE CARROTS FINE: Skip the food processor unless you want a cake that tastes like carrot salad. Use a box grater for shreds no wider than a dime—this ensures even distribution and prevents dry spots. (Yes, even if you’re impatient like me.)
- DRAIN PINEAPPLE WELL: Fresh pineapple’s juice is sneaky—it’ll make your cake soggy. After chopping, toss it in a colander with a handful of sugar and let it sit for 10 minutes. The sugar draws out moisture, and you’ll have just the right amount of sweetness left.
- LAYER THE FROSTING FAST: Don’t let the cake cool completely before frosting—it’ll be rock-hard by the time you’re done. Spread a thin layer of cream cheese frosting between layers within 20 minutes of baking, then chill briefly. This keeps the cake from turning into a brick. (Your future self will thank you.)
Regional styles of 2 layer carrot cake recipe with pineapple
Southern Comfort Twist
In the South, carrot cake gets a cozy, spiced upgrade with extra ginger and pecans instead of walnuts. I swap the pineapple for candied sweet potatoes—cook them with brown sugar, cinnamon, and a splash of bourbon until tender. The frosting becomes a bourbon cream cheese glaze by adding 1 tbsp bourbon to the powdered sugar mix. This version feels like a hug on a plate, perfect for Thanksgiving gatherings. 🌟
Hawaiian Luau Vibes
For a tropical escape, replace the cream cheese frosting with a coconut-piña colada glaze. Blend 1 cup coconut cream, ½ cup powdered sugar, and 2 tbsp piña colada mix until smooth. Top the cake with toasted coconut flakes and maraschino cherries for a festive touch. The pineapple stays front and center, but the coconut adds a creamy, island-inspired richness. Serve with a side of rum punch for the full experience. 🍍
Midwest Homestyle
In the Midwest, carrot cake often includes raisins or dried cranberries for extra chew. I keep the pineapple but add ½ cup chopped dried cranberries to the batter for a tangy contrast. The frosting stays classic cream cheese, but I fold in 1 tsp orange zest for a bright citrus note. This version is hearty and comforting—ideal for potlucks or family dinners. The walnuts are toasted with a pinch of cinnamon sugar for extra warmth. 🥜
Modern Minimalist
For a sleek, contemporary take, I reduce the spices to just cinnamon and nutmeg, and use white chocolate chunks instead of walnuts. The pineapple is lightly caramelized with honey instead of sugar, and the frosting is a white chocolate ganache—melt 8 oz white chocolate with ½ cup heavy cream and 1 tbsp lemon juice. This version feels lighter but still indulgent, perfect for brunch or dessert parties. The contrast of juicy pineapple and smooth ganache is pure elegance. ✨
Vegan Adaptation
For plant-based bakers, I use Kite Hill almond cream cheese for the frosting and swap butter for coconut oil. The cake batter relies on flax eggs (1 tbsp ground flaxseed + 3 tbsp water per egg) and almond flour for binding. The pineapple stays fresh, but I add 1 tsp apple cider vinegar to the batter for moisture. Top with toasted pecans and a drizzle of agave syrup for a sweet, vegan-friendly twist. It’s just as moist and flavorful—promise! 🌱
Nutrition facts
Frequently asked questions
Can I substitute canned pineapple instead of fresh?
Yes, but with a few adjustments! Use 2 cups drained crushed pineapple and toss it with 1 tbsp brown sugar to caramelize. Let it sit for 10 minutes before folding into the batter. Fresh pineapple gives brighter flavor, but canned works in a pinch—just drain it well to avoid a soggy cake.
Why does my carrot cake turn out dry?
Overbaking is the #1 culprit! Remove the cake from the oven when a toothpick comes out with a few moist crumbs—not completely clean. Also, make sure your pineapple is juicy (not mushy) and your carrots are finely grated. For extra moisture, add 2 tbsp sour cream to the batter. The pineapple helps keep it tender!
How do 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). You may need to add ½ tsp xanthan gum if your blend doesn't contain it. For the frosting, use gluten-free powdered sugar and ensure your cream cheese is certified gluten-free. The texture will be slightly denser but still delicious!
Can I bake this in a single 9x13-inch pan instead of two layers?
Reduce the batter by 25% and bake in a greased 9x13-inch pan for 35-40 minutes at 350°F. The pineapple will still add moisture, but expect a denser texture. Top with extra frosting and toasted nuts for a rustic touch. This works great for sheet cake-style servings!
What's the best way to store leftovers?
Keep the cake layers wrapped in plastic at room temperature for 2 days, or refrigerate for up to 5 days. The frosting stays fresh for 3 days in the fridge—just rewhip if it thickens. For longer storage, freeze the unfrosted layers for 3 months and frost when ready to serve.
