
This 2-layer carrot cake recipe with pineapple delivers the perfect balance of moist, spiced cake and tropical sweetness that keeps everyone asking for seconds. š The secret lies in a simple yet effective technique: a pineapple filling swirled between layers that stays juicy for days, not dry.
Iāve baked this version countless times for birthdays and holidays, and itās become my go-to showstopper dessertāno one can resist the vibrant colors or the perfect texture.
The beauty of this recipe is its beginner-friendly approach. Youāll mix up two simple cake batters (one for each layer), bake them separately, then assemble with a creamy pineapple layer that adds moisture and a bright, tropical twist.
The cream cheese frosting ties everything together with a smooth, tangy finish that complements the warm spices in the cake. No fancy equipment or advanced skills requiredājust a few key steps and patience for the layers to set.
What makes this carrot cake truly special is how it stays moist long after baking. The pineapple filling acts like a built-in moisture barrier, while the cream cheese frosting seals in freshness.
Each slice delivers tender crumbs, bursts of pineapple sweetness, and a hint of cinnamon that makes it feel like a hug in dessert form. Perfect for celebrations or a cozy weekend treat, this cake is sure to become a favorite.
Ready to bake? The recipe scales easily for crowds, and leftovers keep well for up to three daysāif they last that long. Garnish with toasted coconut or extra pineapple slices for a festive touch. Letās get started on a dessert thatās as beautiful as it is delicious.
Ingredients for 2 layer carrot cake recipe with pineapple
Tropical twist on a classicāthese 18 ingredients create a showstopping carrot cake with juicy pineapple swirl.
| Ingredient | Amount | Notes |
|---|---|---|
| All-Purpose Flour š¾ | 2 ½ cups | Sifted for light texture |
| Granulated Sugar š | 2 cups | White or light brown |
| Packed Brown Sugar š | 1 cup | Light or dark variety |
| Unsalted Butter š§ | 1 cup | Room temperature, softened |
| Large Eggs š„ | 4 whole | Room temperature preferred |
| Vegetable Oil š« | ½ cup | For extra moisture |
| Crushed Pineapple š | 1 can | 20 oz, well-drained |
| Pineapple Juice š§ | ½ cup | From same can |
| Ground Cinnamon šæ | 2 tsp | Freshly ground preferred |
| Ground Ginger š¶ļø | 1 tsp | Freshly ground preferred |
| Ground Nutmeg š¶ļø | ½ tsp | Freshly grated preferred |
| Salt š§ | 1 tsp | Kosher or sea salt |
| Shredded Carrots š„ | 3 cups | Freshly grated, fine |
| Walnuts š„ | 1 cup | Chopped, toasted optional |
| Cream Cheese š§ | 8 oz | Room temperature, softened |
| Powdered Sugar š | 3 cups | For smooth frosting |
| Vanilla Extract šæ | 1 tbsp | Pure vanilla preferred |
| Toasted Coconut š„„ | ¼ cup | For garnish, optional |
The crushed pineapple is the secret weapon here. Trader Joe’s has the best canned pineappleālook for the vibrant orange color and no added sugar if you want to control sweetness. Drain it well, but save that juiceāitās the magic behind the moist layers. For the carrots, freshly grated makes all the difference (the bagged kind gets watery). I usually buy a big bag of carrots and grate them myselfātakes 5 minutes and tastes like heaven. The walnuts? Toast them for an extra layer of flavor, but no biggie if you skip it. Costco sells them in bulk for a great price.
No crushed pineapple? Fresh pineapple works tooājust blend it until smooth and strain out the pulp. Short on walnuts? Pecans or almonds are great swaps. The cream cheese frosting is non-negotiable for that tangy contrast, but if youāre dairy-free, vegan cream cheese does the trick. For the spices, Penzeys or bulk bins at natural food stores have the freshest ground spicesātoss any that smell musty. The cake layers can be baked a day ahead and stored at room temp, which actually improves the flavor as the spices mingle.
This cake keeps beautifullyā3 days at room temperature covered loosely, or 1 week in the fridge. For extra freshness, store the layers separately with parchment between them. The frosting can be made a day ahead and chilledāit actually gets smoother. Garnish with toasted coconut or extra pineapple slices right before serving. Freezes well too: wrap tightly and thaw overnight in the fridge. The pineapple filling stays juicy for days, so donāt worry about making it aheadāitās the star of this show.
Why You’ll Love This Recipe
- No Mixer Needed: I swear by this recipe because itās one-bowl magicājust cream the butter and sugars until fluffy, then fold in the eggs and dry ingredients. The pineappleās sweetness cuts through the richness, so you donāt even need to overthink it. (Yes, even if your mixerās on strike.)
- Sweet-Savory Balance: That caramelized brown sugar in the frosting? Itās the secret weapon. The pineapple chunks add a bright, juicy contrast to the spiced cake layers, and the cream cheese frosting ties it all togetherālike a hug for your taste buds. Honestly, itās the kind of dessert that makes people ask for the recipe before the first bite.
- Birthday or Boredom: This cake is my go-to for anythingābirthday parties, potlucks, or when I just need a reason to bake on a Tuesday. The two layers mean you can slice it into neat squares for easy serving, and the pineapple keeps it feeling special without being fussy.
- Leftovers? No Problem: I make this just for me and my family, and itās always gone in two daysāif not sooner. The frosting stays creamy, the cake holds its shape, and itās cheap enough that I donāt feel guilty about freezing half for later. (Between us, the second day is almost as good as the first.)
Step-by-step instructions for 2 layer carrot cake with pineapple swirl
This tropical twist keeps your cake wonderfully moist while delivering that perfect carrot cake texture.
šØāš³ Step 1: Mix the Carrot Cake Batter
Preheat your oven to 350°F and grease two 9-inch round cake pans, lining the bottoms with parchment paper. In a large mixing bowl, combine the 2.5 cups all-purpose flour, 2 cups granulated sugar, 1 cup packed brown sugar, 2 tsp ground cinnamon, 1 tsp ground ginger, 0.5 tsp ground nutmeg, and 1 tsp salt. Whisk until evenly distributed.
In a separate bowl, beat the 1 cup unsalted butter and 0.5 cup vegetable oil until smooth. Add the 4 whole large eggs one at a time, mixing well after each addition. Pour the wet ingredients into the dry ingredients and mix on low speed until just combined. Fold in the 3 cups shredded carrots and 1 cup chopped walnuts using a spatulaādon’t overmix or the cake will be dense.
š³ Step 2: Prepare the Pineapple Swirl Filling
In a medium bowl, combine the 1 can crushed pineapple (well-drained) with the 0.5 cup pineapple juice. Stir in 1 tbsp vanilla extract and set aside. This filling will give your cake that tropical twist while keeping it moist for days.
Divide the carrot cake batter evenly between the two prepared pans. Spoon the pineapple mixture over the first layer, spreading it evenly. Pour the remaining batter over the pineapple layer, gently swirling with a knife to create marbled patterns. This ensures every bite has that sweet pineapple surprise.
š„ Step 3: Bake to Golden Perfection
Bake the cakes for 25-30 minutes or until a toothpick inserted into the center comes out clean. I like to check at the 25-minute markāthe edges should be golden brown while the center still has a slight bounce. Rotate the pans halfway through baking for even cooking.
Let the cakes cool in their pans for 10 minutes before transferring to a wire rack to cool completely. This gradual cooling prevents cracking and helps the layers set properly. While they cool, you can prepare the frostingātrust me, it’ll be ready just in time!
š„ Step 4: Make the Cream Cheese Frosting
In a large bowl, beat the 8 oz cream cheese and 1 cup unsalted butter together until smooth and creamy. Gradually add the 3 cups powdered sugar, mixing on low speed until combined. Add the 1 tbsp vanilla extract and beat until light and fluffyāthis should take about 3-4 minutes.
Once your cakes are completely cool, spread a thin layer of frosting between the layers to act as a “glue.” Then, frost the top and sides of the entire cake. For that tropical touch, sprinkle the 0.25 cup toasted coconut on top while the frosting is still slightly soft so it sticks.
ā° Step 5: Chill and Serve
Refrigerate the cake for at least 1 hour before slicingāthis helps the frosting set and makes for cleaner cuts. The flavors will meld beautifully during this time, giving you that perfect balance of carrot cake and pineapple sweetness.
Slice into 8 generous servings and serve with a cup of coffee or tea. This cake stays moist for days, so you can enjoy it as a treat throughout the week. The secret to its moisture? The pineapple juice in the filling and the vegetable oil in the batterāboth work together to keep every bite tender and delicious.
Pro Tips For Making 2 Layer Carrot Cake Recipe With Pineapple
- Preheat to 325°F: DESCRIPTION: I learned this the hard wayā350°F makes the top brown too fast while the center stays doughy. This lower temp gives the layers time to set evenly, especially with pineapple chunks that need time to soften without turning mushy. Trust me, your cake will thank you.
- Grate Carrots Fine: DESCRIPTION: Skip the food processorācoarse shreds make the texture uneven. Use a box grater for uniform, fine shreds that blend into the batter smoothly. (Yes, it takes 5 minutes, but the result is worth it.)
- Drain Pineapple Twice: DESCRIPTION: The first drain removes juice, but the secondāafter pressing with a paper towelācuts excess moisture. Wet pineapple makes the cake dense. Do this step, or youāll end up with a sponge that feels like a brick.
- Mix Wet Ingredients First: DESCRIPTION: Beat the butter, sugars, and eggs until light and fluffy before adding dry ingredients. This ensures a tender crumb, especially with the dense pineapple. (I used to skip thisānow my cake has that perfect, airy bite.)
Make-ahead tips for leftovers
Batter Prep Ahead
Mix the carrot cake batter up to 24 hours ahead and store it in an airtight container in the fridge. The flavors deepen overnight, and the batter will be perfectly chilled for baking.
I like to cover it with plastic wrap pressed directly on the surface to prevent a skin from forming. When ready to bake, let it sit at room temperature for 30 minutes before dividing into pansāthis ensures even distribution. š«
Pineapple Filling Prep
The pineapple filling can be made 1 day ahead and stored in the fridge. Keep it in a sealed container with the juiceāthis prevents drying out. For extra flavor, add a pinch of ground cinnamon (about ¼ tsp) to the filling when you mix it.
I often prepare this while the cake batter rests, making assembly even easier on baking day. Just give it a quick stir before using.
Layer Assembly Shortcut
Bake just one cake layer at a time if you’re short on oven space. Cool the first layer completely, then spread a thin layer of frosting on top and refrigerate for 30 minutes to set. This creates a stable base for the second layer.
When you’re ready to assemble, simply add the pineapple filling and top layerāno waiting required! This method also works well if you’re baking for a crowd and need to space out your baking sessions. āØ
Frosting Make-Ahead
Prepare the cream cheese frosting 1 day ahead and store it in the fridge in an airtight container. The flavors meld beautifully, and it actually becomes smoother after chilling. When ready to use, let it sit at room temperature for 15-20 minutes before beating againāthis ensures it’s perfectly spreadable.
I often make this while the cakes are cooling, so it’s ready to go when assembly time comes.
Full Cake Assembly
Assemble the entire cake 4 hours ahead and refrigerate it uncovered. The frosting will develop a slight sheen, and the flavors will intensify. To prevent drying, cover the cake loosely with plastic wrap only when storing overnight.
This method works perfectly for special occasions when you need the cake to look its best hours before serving. The pineapple filling stays juicy, and the frosting maintains its perfect consistency. š
Freezing Tips
Freeze the fully assembled cake (without the toasted coconut garnish) for up to 1 month. Wrap it tightly in plastic wrap, followed by aluminum foil, to prevent freezer burn. Thaw overnight in the fridgeāthis gradual process preserves moisture.
The texture may be slightly denser after freezing, but a quick warm-up in the oven at 300°F for 10 minutes restores that perfect cake texture. Garnish with fresh coconut right before serving. āļø
Nutrition facts
Frequently asked questions
Can I substitute fresh pineapple for the canned version?
Use 2 cups fresh pineapple (peeled, cored, and finely chopped) instead of the canned version. Blend it until smooth, then strain out the excess liquid to get about 1 cup pineapple puree. Add 1 tbsp lemon juice to prevent browning. The texture will be slightly different but still deliciousājust be sure to drain it well to avoid a soggy cake.
Why does my carrot cake turn out dry?
Dry cake usually happens from overbaking or skipping the oil. This recipe uses 0.5 cup vegetable oil for moistureādonāt substitute with melted butter. Also, check for doneness at 25 minutes (a toothpick should come out with moist crumbs, not dry). For extra moisture, brush warm layers with pineapple juice before frosting.
Can I make this cake gluten-free?
Yes! Replace the 2.5 cups all-purpose flour with a 1:1 gluten-free baking blend (like Bobās Red Mill). Add 1 tsp xanthan gum if your blend doesnāt include it. For the pineapple filling, use a gluten-free thickener if needed. The texture will be slightly denser, but the tropical flavor stays intact. Always check your gluten-free flourās baking instructions first.
How do I prevent the pineapple filling from leaking?
Spread the pineapple filling evenly and thinly (about ¼ inch thick) between layers. Chill the cake for 1 hour before frosting to help the layers set. For extra stability, add a thin layer of frosting as a “glue” between the cake and filling. This method keeps the filling contained while still delivering that juicy surprise in every bite.
Whatās the best way to serve this cake?
Slice into 8 generous wedges and serve with warm coffee, tea, or vanilla ice cream. For a festive touch, garnish with toasted coconut flakes** or fresh pineapple slices. This cake also makes a stunning dessert for birthdays, brunch, or holiday gatheringsājust add a sprinkle of cinnamon on top for extra warmth.
- 2 Layer Carrot Cake Recipe with Pineapple: Tropical Swirl That Stays Moist for Days - September 26, 2026
- 40 30 30 Chili Recipe: Meat-Packed Heartiness in One Pot - September 26, 2026
- 5-Star Chili Relleno Recipe: Crispy Panko-Crusted Stuffed Peppers - September 26, 2026