2 Layer Carrot Cake Recipe with Pineapple: Tropical Swirl That Stays Moist for Days

2 Layer Carrot Cake Recipe with Pineapple: Tropical Swirl That Stays Moist for Days

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.

šŸ‘Øā€šŸ³
Difficulty
Medium
🌿
Diet
Vegetarian
šŸ”„
Calories
Med Cal

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.

1

šŸ‘Øā€šŸ³ 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.

2

šŸ³ 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.

3

šŸ”„ 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!

4

🄘 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.

5

ā° 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

Servings 8
Amount Per Serving
Calories 480kcal
% Daily Value *
Total Fat 24g31%
Saturated Fat 12g60%
Cholesterol 85mg28%
Sodium 420mg18%
Total Carbohydrate 68g25%
Dietary Fiber 3g11%
Sugars 52g
Protein 6g12%
* Percent Daily Values are based on a 2,000 calorie diet. Your daily values may be higher or lower depending on your calorie needs.

Frequently asked questions

1

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.

2

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.

3

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.

4

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.

5

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.

ā˜…ā˜…ā˜…ā˜…ā˜…4.6(5 reviews)
Patrick Lewis