
This moist carrot cake brings together cozy spices, delicate sweetness, and bursts of flavor from pineapple and coconut. With creamy pineapple-laced frosting, it transforms even simple gatherings into special occasions. Each slice is tender, packed with carrots, and finished with a tangy swirl of cream cheese that everyone will love.
From the first time I baked this for my daughter's birthday, it became an instant classic in our kitchen. Now, every family celebration ends up with requests for this cake, and we never have leftovers.
Ingredients
- All purpose flour: gives structure and a tender crumb look for unbleached flour if possible
- Baking powder and baking soda: help the cake rise and stay light
- Salt: balances sweetness and highlights the spices
- Ground cinnamon: warmth and depth making each bite extra cozy
- Ground nutmeg and ground ginger: a subtle kick and heat fresh nutmeg is worth grating at home
- Granulated sugar: for sweetness and moisture
- Brown sugar: richer flavor and extra moisture from molasses
- Vegetable oil: ensures a soft cake use neutral oils with no strong taste
- Large eggs: bind ingredients and add richness use room temperature eggs for easier mixing
- Pure vanilla extract: rounds out flavors opt for real extract over imitation
- Finely grated carrots: keep the cake moist and vibrant
- Walnuts or pecans: gentle crunch and nutty undertones choose fresh and unsalted nuts
- Shredded coconut: mild sweetness and chew both sweetened and unsweetened work but unsweetened gives more control
- Crushed pineapple: distinctive fruity flavor and natural moisture choose pineapple packed in juice
- Cream cheese: the classic base for rich tangy frosting use full fat for best texture
- Unsalted butter: for creaminess and structure
- Powdered sugar: sifted for smoothness check labels for pure cane sugar
- Pineapple juice: bright contrast in the frosting saved from draining canned pineapple
- Crushed pineapple: adds fresh texture and flavor throughout frosting
- Vanilla extract: for rounded sweetness
- Pinch of salt: to enhance frosting flavor
Instructions
- Prepare the Pans:
- Grease two nine inch round cake pans with parchment paper on the bottom to prevent sticking and ensure easy release after baking
- Mix Dry Ingredients:
- In a medium bowl thoroughly whisk together flour baking powder baking soda salt cinnamon nutmeg and ginger so they are evenly distributed without pockets of spice or leavener
- Blend Sugars and Oil:
- In a large bowl combine the granulated sugar brown sugar and oil and beat until silky and well combined which gives the cake its signature moist texture
- Incorporate Eggs and Vanilla:
- Add each egg one at a time mixing well after each addition then stir in vanilla extract to create a smooth glossy batter as this step helps build structure for the cake
- Combine Wet and Dry Mixes:
- Gradually add dry ingredients to the wet mixture mixing only until combined avoid over mixing to ensure a tender crumb
- Fold In Extras:
- Using a rubber spatula gently fold in grated carrots walnuts or pecans coconut and crushed pineapple ensuring even distribution without deflating the batter
- Fill and Level the Pans:
- Divide batter evenly between your prepared pans and use the spatula to smooth the tops for even baking
- Bake to Perfection:
- Slide the pans onto the middle rack and bake for about thirty five to forty minutes test by inserting a toothpick in the center it should come out clean or with a few moist crumbs
- Cool Cakes Properly:
- Let cakes rest in the pans for about ten minutes then turn them out onto wire racks this prevents excess moisture at the edges and speeds up cooling
- Make Pineapple Frosting:
- Beat the softened cream cheese and butter in a large mixing bowl until completely smooth and creamy then gradually incorporate powdered sugar continuing to beat until fluffy
- Flavor and Finish Frosting:
- Add vanilla extract pinch of salt and pineapple juice folding in the well drained crushed pineapple toward the end if frosting is too thin add a little extra powdered sugar
- Layer and Decorate:
- Once cakes are fully cool spread a generous layer of frosting between them then cover top and sides decorate with chopped nuts or carrot curls for a festive finish

I always look forward to folding in pineapple it brightens the entire cake and adds a little surprise every bite. Watching everyone fight for the biggest slice reminds me of birthday parties at my grandma's kitchen table with laughter and cake crumbs everywhere.
Storage Tips
Keep any leftover cake wrapped well or in a sealed container in the fridge for up to four days. You can also freeze slices tightly wrapped for up to three months and thaw at room temperature for best flavor. To protect frosting texture keep the cake chilled and only let it sit out briefly before serving.
Ingredient Substitutions
Swap walnuts for pecans or leave nuts out entirely for a nut free version without sacrificing richness. Coconut is optional but sweetened coconut makes the cake sweeter while unsweetened gives more subtle flavor. Use light olive oil or avocado oil if you prefer a different neutral oil.
Serving Suggestions
This carrot cake stands out beautifully as a centerpiece at brunch or tea. Serve with coffee or spiced chai for balance or pair with fresh fruits. Extra frosting can be piped as rosettes or layered with berries for a fresh twist.
Cultural and Historical Context
Carrot cake became popular in the twentieth century when home bakers used root vegetables for moisture and sweetness. Pineapple in the frosting reflects Southern hospitality and classic American baking traditions the blend of spice fruit and creamy topping makes this a comforting treat across generations.

I learned years ago sticking parchment in the pans is essential for perfect release. Letting the cake cool fully before frosting is the secret to avoiding sliding and melting layers.
Kitchen Guide
- → What makes this carrot cake extra moist?
The combination of grated carrots and crushed pineapple keeps the cake moist and flavorful.
- → Can I make this nut-free?
Yes, simply omit walnuts or pecans for a nut-free version without compromising texture.
- → How can I store leftovers?
Cover and refrigerate the cake for up to three days. Let it come to room temperature before serving.
- → Are there options for added flavor?
Try adding orange zest or a pinch of ground cloves to the batter for subtle citrus or spice notes.
- → Can the frosting be made in advance?
Yes, prepare the pineapple cream cheese frosting and keep refrigerated. Stir before using.
- → What tools do I need?
You'll need round cake pans, mixing bowls, an electric mixer, a rubber spatula, parchment paper, and a cooling rack.