
This pineapple carrot cake with cream cheese frosting transforms simple ingredients into a moist, spice-infused dessert that's perfect for any occasion. The combination of freshly grated carrots and crushed pineapple creates an irresistibly tender crumb that stays moist for days.
I first made this cake for my daughter's spring birthday and it's become our family's most requested celebration dessert. Even my father-in-law who claims to dislike carrot cake asks for seconds when I serve this version.
Ingredients
- All purpose flour: Provides the perfect structure for this moist cake
- Baking powder and baking soda: Work together for the ideal rise
- Cinnamon, ground cloves, ginger, and nutmeg: Create a warm spice profile
- Canola oil: Keeps the cake incredibly moist for days
- Brown sugar: Adds moisture and deep caramel notes
- Granulated sugar: Balances the sweetness perfectly
- Room temperature eggs: Provide structure and richness
- Pure vanilla extract: Enhances all the flavors
- Freshly shredded carrots: Are non-negotiable for moisture and flavor
- Crushed pineapple: Is the secret to this cake's incredible texture
- Chopped walnuts: Add wonderful texture contrast and nutty flavor
- Full-fat cream cheese: Makes for the best frosting texture
- Unsalted butter: Allows you to control the saltiness in the frosting
- Confectioners sugar: Provides the perfect sweetness and stability
Step-by-Step Instructions
- Prepare Your Workspace:
- Preheat your oven to a perfect 350°F and thoroughly grease your 9×13 baking pan. Use a glass pan if possible as it conducts heat more evenly for this moisture-rich cake. Gather all ingredients measured and at room temperature for the best results.
- Mix Dry Ingredients:
- Whisk together the flour, baking powder, baking soda, salt, and all spices in a large bowl until completely combined. This thorough mixing ensures even distribution of the leavening agents and spices throughout the cake for consistent flavor in every bite.
- Combine Wet Ingredients:
- In a separate medium bowl, whisk together the oil, brown sugar, granulated sugar, eggs, and vanilla until the mixture becomes smooth and well incorporated. The oil rather than butter keeps this cake exceptionally moist while the combination of sugars creates depth of flavor.
- Create The Batter:
- Pour your wet ingredients into the dry ingredient bowl and whisk gently until just combined. Overmixing will develop too much gluten making your cake tough. Fold in the freshly grated carrots, crushed pineapple, and walnuts with a spatula using a gentle hand to maintain airiness.
- Bake To Perfection:
- Spread the batter evenly in your prepared pan and bake for 45 to 55 minutes. You'll know it's done when a toothpick inserted in the center comes out clean. If the top begins browning too quickly, loosely cover with foil to prevent burning while allowing the center to finish cooking.
- Frost And Finish:
- After cooling completely, prepare the cream cheese frosting by beating cream cheese and butter until fluffy then gradually adding sugar, vanilla, and salt. Spread generously over the cooled cake and refrigerate for 30 minutes before serving to allow the frosting to set for clean slices.

The freshly grated carrots are truly the star of this recipe. I once tried using pre-shredded carrots from the produce section and the cake turned out noticeably drier. Taking those extra few minutes to grate your own carrots makes all the difference in creating that signature moisture that makes people go back for seconds.
Make Ahead Options
This cake is perfect for busy schedules and planning ahead. You can prepare the entire cake without frosting and refrigerate it for up to two days or freeze it for three months. The frosting itself can be made a day ahead and stored separately in the refrigerator. Just bring it to room temperature and whip it briefly before spreading on your cake. I often make this cake on Friday for weekend gatherings and it tastes even better after the flavors have had time to meld.
Smart Substitutions
If you're looking to reduce the oil in this recipe, replace half the oil with unsweetened applesauce. The cake maintains its moisture while cutting some calories. For those with nut allergies, simply omit the walnuts or replace them with raisins or shredded coconut for texture. Gluten-free bakers can substitute a high-quality cup-for-cup gluten-free flour blend with excellent results. I've tested this with Bob's Red Mill 1-to-1 Baking Flour and guests couldn't tell the difference.
Serving Suggestions
This versatile cake works beautifully for various occasions. For an elegant dessert, dust individual slices with powdered sugar and serve with a small scoop of vanilla bean ice cream. At brunch, pair thin slices with fresh fruit and coffee. For children's parties, decorate with small carrot shapes made from orange-tinted frosting. My favorite way to serve it is slightly chilled with a hot cup of chai tea on a Sunday afternoon, letting the spices in both complement each other perfectly.
The History Behind The Cake
Carrot cake has evolved significantly since its origins. During World War II when sugar was rationed, carrots were used as a natural sweetener in desserts. The addition of pineapple came later, likely in the 1960s when tropical flavors became trendy in American cooking. The cream cheese frosting became the standard topping in the 1960s, replacing more traditional boiled icings. This particular recipe combines all these historical elements into one perfect modern dessert that honors its practical roots while delivering luxurious flavor.

Frequently Asked Questions
- → How do I keep this cake moist?
- The combination of crushed pineapple, freshly grated carrots, and oil ensures the cake stays moist. Avoid using pre-shredded carrots as they can be too dry.
- → Can I use fresh pineapple instead of canned?
- Yes, you can use fresh pineapple. Simply crush it into a wet consistency to keep the cake tender. An alternative is to include chunks for added texture.
- → What can I substitute for oil?
- You can replace half the oil with unsweetened applesauce for a lighter option. This substitution still keeps the cake moist while reducing fat content.
- → Can this cake be made ahead of time?
- Yes, you can bake the cake in advance and store it, unfrosted, in the fridge for up to 2 days or freeze it for up to 3 months. Frosting can be made fresh before serving.
- → What variations can I try with this recipe?
- You can bake the batter as cupcakes, a layer cake, or even a Bundt cake. Adjust baking times and enjoy versatile serving options.
- → How long should I refrigerate the cake before serving?
- Chilling the cake in the refrigerator for about 30 minutes after frosting helps set the topping and makes slicing easier.