Desserts
This 2-layer carrot cake recipe with pineapple brings the cozy warmth of classic carrot cake to life—with a bright, tropical twist that makes every bite feel like a vacation. 🌴 The secret lies in balancing the rich, spiced cake layers with a juicy pineapple filling that cuts through the sweetness, creating a dessert that's both nostalgic and exciting. I've baked this version countless times for gatherings, and it never fails to disappear faster than the coffee cake—though this one has a little more adventure.
The foundation starts with a foolproof creaming method that keeps the cake moist and tender, while the pineapple adds natural sweetness without overpowering the classic carrot flavor. What makes this recipe special is the way the tropical filling—sweetened just enough to complement the cake—soaks into the layers during baking, creating a harmonious blend of textures and flavors. No one will guess it's a healthier, lighter take on the original.
By the time you slice into this cake, you'll have a dessert that's golden on top, perfectly spiced, and bursting with juicy pineapple in every forkful. The frosting—creamy and lightly sweet—ties it all together, making each bite a balance of comfort and surprise. It's the kind of dessert that feels like a hug, but with a little sunshine mixed in.
Perfect for birthdays, holidays, or just because—this cake delivers the best of both worlds: the familiar comfort of carrot cake and the refreshing excitement of pineapple. Let's get baking!
Ingredients for 2 layer carrot cake recipe with pineapple
Twelve ingredients blend tropical brightness with classic carrot cake richness for a dessert that feels like sunshine.
| Ingredient | Amount | Notes |
|---|---|---|
| All-Purpose Flour 🌾 | 2 ½ cups | Sifted for light texture |
| Granulated Sugar 🍚 | 1 ½ cups | Light brown preferred |
| Light Brown Sugar 🍚 | ½ cup | Packed firmly |
| Unsalted Butter 🧈 | 1 cup | Room temperature |
| Large Eggs 🥚 | 3 whole | Room temperature |
| Vanilla Extract 🌿 | 1 tbsp | Pure extract preferred |
| Ground Cinnamon 🌶️ | 1 ½ tsp | Freshly ground preferred |
| Ground Ginger 🌿 | 1 tsp | Freshly ground for warmth |
| Ground Nutmeg 🌿 | ½ tsp | Freshly grated preferred |
| Salt 🧂 | ½ tsp | Fine sea salt |
| Shredded Carrots 🥕 | 3 cups | Finely grated, packed |
| Crushed Pineapple 🍍 | 1 cup | Drained well, fresh or canned |
| Pineapple Juice 🍍 | ½ cup | Freshly squeezed preferred |
| Cream Cheese 🧈 | 8 oz | Room temperature |
| Powdered Sugar 🍚 | 2 cups | Sifted for smooth frosting |
| Heavy Whipping Cream 🥛 | 1 cup | Cold for whipping |
| Walnuts 🌰 | ½ cup | Toasted, chopped |
The cream cheese is the secret weapon here—room temperature is non-negotiable for a smooth frosting. Grab the block variety from the deli counter at Whole Foods or Trader Joe's for the best texture, not the tub kind. For the pineapple, fresh is ideal, but Dole crushed pineapple works in a pinch—just drain it thoroughly. The walnuts should be toasted until fragrant, which takes about 5 minutes in a dry pan. If you're short on time, pre-toasted walnuts from the baking aisle are fine, but they lack that fresh-from-the-oven aroma. The vanilla extract should be pure, not imitation—McCormick or Nielsen-Massey are reliable brands for consistent quality. The cinnamon matters too; Penzeys or the bulk section at Sprouts offer freshly ground options that elevate the spice profile.
No fresh pineapple? Canned crushed pineapple with no added sugar works, but you'll need to adjust the sugar in the filling to taste. Running short on cream cheese? Substitute with an equal weight of softened butter, though the frosting will be slightly lighter. The brown sugar can be swapped for white sugar if needed, but the moisture and caramel notes are worth the effort. For the spices, if you're missing nutmeg, allspice at half the amount gives a similar warmth. The walnuts can be omitted for a nut-free version, but they add a lovely crunch that balances the cake's richness. If you're baking for a crowd, double the frosting ingredients—it disappears faster than the cake itself.
Store the cake layers separately in an airtight container for up to 3 days at room temperature, or freeze for 3 months. The frosting keeps 5 days in the fridge, though it's best used within 2 days for optimal texture. To assemble, spread the frosting between layers and on top, then chill for 30 minutes before slicing. Leftovers reheat beautifully in the microwave for 10-15 seconds to restore moisture. For a make-ahead option, bake the cake layers 1 day ahead, wrap tightly, and store at room temperature. The pineapple filling can be prepped 24 hours early and refrigerated, covered.
Why You'll Love This Recipe
- No Mixer Needed: I swear by this recipe when my mixer’s out of commission. The butter and sugars get creamed by hand in minutes—no electric whirring, no fuss—just a bowl and a wooden spoon. That pineapple? It’s pre-diced in a can, so no chopping either. Honestly, it’s the kind of recipe that makes me feel accomplished even on lazy afternoons.
- Sweet-Savory Magic: The brown sugar caramelizes just enough to balance the bright, tangy pineapple—trust me, it’s not too sweet. And the eggs? They keep the layers moist without being dense, while the flour gives it that perfect crumb. It’s the kind of flavor combo that makes me reach for seconds, no frosting required.
- Party in a Pan: This cake is my go-to for birthdays, potlucks, or even a "I just want dessert" Sunday. The two layers mean you can stack it high or slice it thin for cupcakes—either way, it feeds a crowd without looking like a bakery bought it. Between us, my in-laws keep asking for the recipe.
- Budget-Friendly Luxury: Pineapple in a can? Check. Pantry staples like flour and sugar? Check. This recipe costs me less than half of what store-bought cake does, but it tastes like I slaved over it. The leftovers? They stay fresh for days, and I’ve even reheated slices in the oven for breakfast—yes, really. It’s dessert that doesn’t break the bank.
Step-by-step instructions for 2 layer carrot cake with pineapple
Here's the method for a moist, spiced carrot cake with tropical pineapple layers and velvety cream cheese frosting.
👨🍳 Step 1: Prepare the Tropical 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, 1.5 cups granulated sugar, 0.5 cup light brown sugar, 1.5 tsp ground cinnamon, 1 tsp ground ginger, 0.5 tsp ground nutmeg, and 0.5 tsp salt. Whisk until thoroughly mixed and no flour pockets remain.
In a separate bowl, cream the 1 cup unsalted butter (room temperature) with the 3 whole large eggs (room temperature) and 1 tbsp vanilla extract on medium speed until light and fluffy, about 3-4 minutes. Gradually add the dry ingredients to the wet, mixing on low speed just until combined. Fold in the 3 cups shredded carrots and 1 cup crushed pineapple (drained well) using a spatula, being careful not to overmix.
🍳 Step 2: Bake the Layers and Add Pineapple Juice
Divide the batter evenly between the prepared cake pans. Bake for 25-30 minutes or until a toothpick inserted in the center comes out clean. While the cakes bake, heat the 0.5 cup pineapple juice in a small saucepan over medium heat until warm. Brush this juice evenly over each cake layer immediately after removing them from the oven—this keeps them moist and adds subtle pineapple flavor.
Allow the cakes to cool in their pans for 10 minutes before transferring to a wire rack to cool completely. This gradual cooling prevents cracking. I like to run a thin knife around the edges while the cakes are still slightly warm to ensure clean separation when layering.
🥘 Step 3: Create the Cream Cheese Frosting
In a medium bowl, beat the 8 oz cream cheese (room temperature) and 2 cups powdered sugar with an electric mixer on medium speed until smooth and creamy. Add the 1 cup heavy whipping cream (cold) and mix until stiff peaks form. The frosting should be thick enough to hold its shape but still spreadable—this is crucial for clean layering.
Fold in the 0.5 cup toasted, chopped walnuts at the end to distribute them evenly throughout the frosting. If the frosting is too thick, add 1 tsp pineapple juice at a time until you reach the perfect consistency. This step is where the tropical twist really shines through the classic carrot cake profile.
🥘 Step 4: Assemble the Two-Layer Cake
Place the first cake layer on a cake stand or plate. Spread an even layer of frosting over the top, leaving a ½-inch border unfrosted. This creates a clean base for the second layer. Place the second cake layer on top and press down gently to level the cake.
Spread the remaining frosting over the top and sides of the cake, using a spatula to create smooth, even strokes. For a polished finish, dip the spatula in warm water between strokes to help the frosting adhere better. Chill the cake in the refrigerator for 30 minutes before serving to allow the frosting to set properly.
Pro Tips For Making 2 Layer Carrot Cake Recipe With Pineapple
- STOP CREAMING THE BUTTER: I learned this the hard way—overmixing the butter with sugar for the cake batter turns it into buttercream. Beat them together until light and fluffy (about 3-4 minutes), but stop as soon as the mixture holds soft peaks. Overdoing it adds air that collapses when you fold in the eggs, leading to a dense cake. (Yes, even if you're impatient like me.)
- DRAIN AND RINSE THE PINEAPPLE: Skipping this step is how you end up with a soggy cake. Drain the canned pineapple well, then rinse it under cold water to remove excess syrup. Pat it dry with paper towels—this cuts down on moisture in the cake layer and keeps the frosting from sliding off. (Your future self will thank you.)
- BAKE THE LAYERS UNTIL SPRINGY: The cake is done when a toothpick comes out clean and the center springs back when pressed. I used to pull them too soon, thinking they were dry, but that’s how you get a cake that cracks or dries out. Let the layers cool in the pan for 10 minutes first—this prevents them from collapsing when you transfer them.
- USE ROOM-TEMP BUTTER FOR FROSTING: Cold butter in the frosting makes it grainy and hard to spread. Take the butter out of the fridge 30 minutes before you plan to frost, or microwave it in 5-second bursts until it’s soft but not melted. This ensures a smooth, spreadable frosting that won’t melt all over your hands—or the cake. (Sounds weird, but it works.)
Pro cooking tips for great 2 layer carrot cake recipe with pineapple
Pineapple Juice Secret
The ½ cup pineapple juice brushed over the warm cake layers isn’t just for flavor—it’s a game-changer for moisture. I’ve found that pineapple contains bromelain, an enzyme that tenderizes the cake’s structure while keeping it ultra-moist. Heat the juice just until warm (not boiling!) to preserve its enzymes, then brush it generously. For extra shine, add 1 tsp lemon juice to the mixture—it brightens the pineapple flavor and adds a subtle tang. 💫
Room Temperature Matters
Never skip letting your butter, eggs, and cream cheese come to room temperature before mixing. Cold butter creates dense cake layers, while cold cream cheese won’t whip properly. I place my 1 cup butter and 8 oz cream cheese on a plate and let them sit for 30-45 minutes at room temperature. For the 3 eggs, I crack them into a bowl and let them sit for 10 minutes before using. Pro tip: If you’re in a hurry, microwave the butter for 10 seconds on low power—just don’t overdo it!
Gradual Mixing Technique
Overmixing the batter is the #1 mistake that leads to dense, tough cake. Once you’ve combined the wet and dry ingredients, fold in the shredded carrots and pineapple gently with a spatula—just until everything is evenly distributed. I use a rubber spatula and
Even Baking Time
Both cake layers should bake for the same amount of time, even if one pan looks slightly darker. Rotate the pans halfway through baking to ensure even heat distribution. I check for doneness at 25 minutes—if the toothpick comes out clean, the cake is ready. If not, bake for 2-3 more minutes. The pineapple juice brush is key here: apply it immediately after removing the cakes from the oven while they’re still warm. This step locks in moisture and flavor, making the cake stay fresh for days. ⏱️
Frosting Consistency Fix
If your frosting is too thick, add pineapple juice 1 tsp at a time until it reaches a spreadable consistency. Too thin? Chill the bowl for 10 minutes to help it firm up. I’ve learned that room temperature cream cheese is crucial—if it’s even slightly cold, the frosting will seize up. For extra stability, I sometimes add ½ tsp vanilla extract to the frosting to enhance the tropical theme. The walnuts should be folded in last to keep them whole and crunchy. 🌰
Chilling for Clean Slices
Never skip the 30-minute chill before slicing! This allows the frosting to set properly, preventing messy crumbs and ensuring clean, elegant slices. I like to place the cake in the fridge for 20 minutes, then finish chilling on the counter for another 10 minutes. For a polished look, run a hot knife (dipped in hot water) through the cake before serving—this melts any frosting on the blade and gives you perfectly clean edges every time. 🔪
Nutrition facts
Frequently asked questions
Can I substitute fresh pineapple for canned in this recipe?
Use 1.5 cups finely diced fresh pineapple (about 1 small pineapple) instead of the canned version. Drain it well to remove excess liquid, then measure it before adding to the batter. For the filling, blend 1 cup fresh pineapple chunks with 0.25 cup juice to replace the crushed pineapple and juice called for. Fresh pineapple adds a brighter, more vibrant flavor to the cake layers.
How do I adjust this recipe for a smaller or larger cake?
For a 6-inch single-layer cake, reduce all ingredients by 50% and bake in one pan for 20-25 minutes at 350°F. For a 3-layer 8-inch cake, increase batter by 33% and frosting by 50%, using three 8-inch pans and baking each layer for 25-30 minutes. Always adjust baking time slightly based on your oven—check with a toothpick at 25 minutes.
Why did my cake turn out dense instead of moist?
Dense cake usually happens from overmixing or cold ingredients. Make sure your butter, eggs, and cream cheese are fully room temperature, and mix the batter just until combined—stop as soon as the flour disappears. Also, don't skip the pineapple juice brushing step after baking, as this keeps the layers tender. If your oven runs hot, reduce temperature to 325°F and bake for 5-10 minutes longer.
Can I make this cake ahead of time?
Yes! Bake the cake layers 1 day ahead and store them wrapped tightly at room temperature. Assemble the cake 4-6 hours before serving to let the frosting set properly. For best results, refrigerate the assembled cake for 1 hour before slicing to prevent crumbs. The flavors actually improve overnight as the pineapple and spices meld together.
What's the best way to store leftovers?
Keep the cake in an airtight container at room temperature for up to 3 days, or freeze for 3 months. To reheat, microwave slices for 10-15 seconds to restore moisture. For the frosting, store it separately in the fridge for up to 5 days—just give it a quick whip with a fork before using to restore its texture. The pineapple filling stays fresh for 3 days in the fridge if stored covered.
