Pineapple Carrot Cake with Cream Cheese Frosting

There’s something unforgettable about a really good carrot cake, and this Pineapple Carrot Cake with Cream Cheese Frosting takes everything people love about the classic and makes it even better. It’s soft, deeply moist, warmly spiced, and layered with flavor from freshly grated carrots, crushed pineapple, brown sugar, and chopped walnuts. Then it’s finished with a luscious cream cheese frosting that’s smooth, tangy, and sweet enough to feel special without overpowering the cake itself.

This is the kind of dessert that feels right for almost any occasion. It’s elegant enough for holidays and birthdays, yet simple enough for a weekend bake when you want your kitchen to smell amazing. The pineapple is the secret that makes the crumb especially tender, while the cinnamon, nutmeg, ginger, and cloves create that cozy homemade flavor that keeps everyone coming back for another slice. And because this version is baked in a 9×13-inch pan, it’s easier and more approachable than a layer cake, but still every bit as delicious and impressive.

If you’ve been searching for a super moist carrot cake recipe that’s easy to make, perfect for sharing, and full of classic comfort, this one absolutely deserves a place in your recipe box.

table of contents

Full Recipe

Ingredients

For the Cake

  • 2 and 1/2 cups all-purpose flour
  • 2 teaspoons baking powder
  • 1 teaspoon baking soda
  • 1/2 teaspoon salt
  • 1 and 1/2 teaspoons ground cinnamon
  • 1/2 teaspoon ground cloves
  • 1/2 teaspoon ground ginger
  • 1/2 teaspoon ground nutmeg
  • 1 cup canola or vegetable oil
  • 1 and 1/4 cups packed brown sugar
  • 1/3 cup granulated sugar
  • 4 large eggs, room temperature
  • 1 teaspoon vanilla extract
  • 2 cups freshly shredded carrots
  • 1 cup crushed pineapple, drained
  • 1 cup chopped walnuts

For the Cream Cheese Frosting

  • 8 ounces full-fat block cream cheese, softened
  • 1/2 cup unsalted butter, softened
  • 3 cups confectioners’ sugar
  • 1 teaspoon vanilla extract
  • 1/8 teaspoon salt
  • Optional: extra 1/4 cup confectioners’ sugar for a thicker frosting

Instructions

Step 1: Prepare the Pan and Oven

Preheat your oven to 350°F (177°C). Grease a 9×13-inch baking pan well. A glass baking dish works especially nicely for this cake because it helps you keep an eye on the edges and color as it bakes.

Step 2: Mix the Dry Ingredients

In a large bowl, whisk together the flour, baking powder, baking soda, salt, cinnamon, cloves, ginger, and nutmeg. This step ensures the spices and leavening are evenly distributed, which gives the cake consistent flavor and texture from corner to corner.

Step 3: Mix the Wet Ingredients

In a medium bowl, whisk together the oil, brown sugar, granulated sugar, eggs, and vanilla extract until smooth and fully combined. The mixture should look glossy and rich.

Step 4: Combine the Batter

Pour the wet ingredients into the dry ingredients and whisk until just combined. Then fold in the shredded carrots, drained pineapple, and chopped walnuts. Be gentle here. You want everything evenly mixed, but you do not want to overwork the batter.

Step 5: Bake the Cake

Spread the batter evenly into the prepared pan. Bake for 45 to 55 minutes, or until a toothpick inserted into the center comes out clean. If the top begins browning too quickly, loosely tent the pan with foil during the final part of baking.

Step 6: Cool Completely

Remove the cake from the oven and set it on a wire rack. Let it cool fully before frosting. After about 45 minutes, you can place it in the refrigerator to speed up the cooling process.

Step 7: Make the Cream Cheese Frosting

In a large bowl, beat the cream cheese and butter together until smooth and creamy. Add the confectioners’ sugar, vanilla extract, and salt. Beat on low speed first, then increase to high and beat until fluffy and spreadable. If you want a thicker frosting, add the extra 1/4 cup confectioners’ sugar.

Step 8: Frost and Chill

Spread the frosting evenly over the cooled cake. Refrigerate for about 30 minutes before slicing. This helps the frosting set and gives you cleaner, prettier slices.

Tips & Tricks

The most important tip for this cake is to use freshly shredded carrots. Store-bought pre-shredded carrots tend to be dry and coarse, which can affect the moisture and texture of the cake. Freshly grated carrots blend into the batter much better and create a softer crumb.

Drain the pineapple, but not too aggressively. You want to remove excess liquid so the cake does not become soggy, but you still want the pineapple to stay juicy enough to contribute moisture. Think damp, not dripping.

If you want a slightly lighter version without sacrificing moisture, you can replace half of the oil with unsweetened applesauce. The cake will still be wonderfully tender, and the applesauce adds a subtle fruity depth that works beautifully with the spices and pineapple.

Avoid overmixing once the flour is added. Carrot cake should be soft and tender, not tough. Mix only until the ingredients come together, then stop.

Cream cheese frosting can soften quickly, especially in a warm kitchen. If yours feels too loose, chill it for 10 to 15 minutes before spreading. That small pause makes it much easier to work with.

For the best flavor, let the frosted cake sit in the refrigerator for a bit before serving. The spices deepen, the frosting sets, and the whole cake tastes even more cohesive.

Variations

One of the easiest ways to change this cake is by swapping the walnuts for pecans. Pecans give the cake a slightly sweeter, more buttery nut flavor that pairs beautifully with the pineapple and spice. If you love Southern-style cakes, pecans are an especially delicious choice.

You can also turn this recipe into cupcakes. The batter makes around 24 to 28 cupcakes, which is perfect for parties, bake sales, or spring gatherings. Bake them for about 19 to 22 minutes at the same temperature, then frost once cooled. This version is ideal when you want the flavor of a sheet cake in a portable, shareable form.

For a more dramatic presentation, bake it as a Bundt cake. The texture stays incredibly moist, and the finished cake looks beautiful with a simple cream cheese glaze or a thick frosting drizzle. A Bundt version feels slightly more elegant while still keeping that familiar homemade flavor.

If you enjoy extra texture, you can add a small amount of shredded coconut or raisins. Just keep the total add-ins balanced so the batter does not become too heavy. Coconut adds a tropical note, while raisins bring little bursts of sweetness throughout the cake.

You can even make it as a layer cake using the same batter approach adapted for round pans. That version is perfect for birthdays or holidays when you want a more formal dessert centerpiece.

Serving Ideas

This cake is wonderful served chilled or slightly closer to room temperature. When cold, the frosting is firmer and the slices are very neat. When allowed to warm slightly, the crumb becomes extra soft and the frosting turns silkier.

Serve it with coffee, chai, hot tea, or even a glass of cold milk. The warm spices make it especially cozy with hot drinks, while the pineapple and cream cheese frosting keep it fresh and balanced.

For brunch tables or spring celebrations, garnish the top with extra chopped walnuts, a light dusting of cinnamon, or a few carrot shreds for a rustic finish. For holidays and birthdays, you can pipe decorative swirls around the edges to make it feel more polished.

This is also a fantastic make-ahead dessert for potlucks and family gatherings because it slices neatly, travels well, and tastes just as good the next day.

Storage Tips

Cover the cake tightly and store it in the refrigerator for up to 5 days. Because of the cream cheese frosting, it should remain chilled.

You can make the cake ahead before frosting it. Once cooled, wrap it tightly and refrigerate for up to 2 days or freeze for up to 3 months.

Frosted cake can also be frozen. Wrap slices or the whole cake well, then thaw overnight in the refrigerator. It can be served cold or brought closer to room temperature before serving.

For the best texture after chilling, let individual slices sit out briefly before eating.

FAQs

Can I use canned pineapple chunks instead of crushed pineapple?

Yes, but crush them first or chop them finely. Crushed pineapple blends more evenly into the batter and keeps the cake moist throughout.

Do I have to use walnuts?

No. You can leave them out completely or replace them with pecans. The cake will still be moist and flavorful.

Why is my carrot cake dense?

A dense cake usually comes from overmixing or adding too much flour. Measure carefully and mix only until combined.

Disclaimer

This recipe is provided for general informational purposes. Baking results can vary based on ingredient brands, pan material, oven accuracy, and measuring methods.

zinaba word

Pineapple Carrot Cake with Cream Cheese Frosting

This pineapple carrot cake is ultra-moist, warmly spiced, and packed with shredded carrots, crushed pineapple, and chopped walnuts. Finished with a rich cream cheese frosting, it is baked in an easy 9×13-inch pan for a bakery-worthy dessert.
Prep Time 20 minutes
Cook Time 55 minutes
Chilling Time 30 minutes
Total Time 1 hour 15 minutes
Servings: 12 pieces
Course: Dessert
Cuisine: American
Calories: 613

Ingredients
  

  • 2 1/2 cups all-purpose flour
  • 2 teaspoons baking powder
  • 1 teaspoon baking soda
  • 1/2 teaspoon salt
  • 1 1/2 teaspoons ground cinnamon
  • 1/2 teaspoon ground cloves
  • 1/2 teaspoon ground ginger
  • 1/2 teaspoon ground nutmeg
  • 1 cup canola or vegetable oil
  • 1 1/4 cups brown sugar
  • 1/3 cup granulated sugar
  • 4 large eggs
  • 1 teaspoon vanilla extract
  • 2 cups shredded carrots
  • 1 cup crushed pineapple, drained
  • 1 cup chopped walnuts
  • 8 ounces cream cheese, softened
  • 1/2 cup unsalted butter, softened
  • 3 cups confectioners’ sugar
  • 1 teaspoon vanilla extract
  • 1/8 teaspoon salt

Equipment

  • 9×13-inch baking pan
  • Mixing bowls
  • Whisk
  • spatula
  • electric mixer for the frosting

Method
 

  1. Preheat oven to 350°F and grease a 9×13-inch pan.
  2. Whisk together flour, baking powder, baking soda, salt, cinnamon, cloves, ginger, and nutmeg.
  3. In another bowl, whisk oil, brown sugar, granulated sugar, eggs, and vanilla.
  4. Pour wet ingredients into dry ingredients and whisk until combined.
  5. Fold in shredded carrots, drained pineapple, and walnuts.
  6. Spread batter into prepared pan and bake for 45 to 55 minutes.
  7. Cool the cake completely.
  8. Beat cream cheese and butter until smooth, then add confectioners’ sugar, vanilla, and salt.
  9. Spread frosting over the cooled cake and chill for 30 minutes before serving.

Nutrition

Calories: 613kcalCarbohydrates: 61gProtein: 6gFat: 39gSaturated Fat: 9gPolyunsaturated Fat: 12gMonounsaturated Fat: 16gCholesterol: 78mgSodium: 292mgPotassium: 204mgFiber: 2gSugar: 42gVitamin A: 3643IUVitamin C: 3mgCalcium: 67mgIron: 2mg

Notes

The unfrosted cake can be made ahead and frosted later. Fresh pineapple can be used if it is crushed and not too wet. Peeled carrots give the best texture. Store the frosted cake covered in the refrigerator for up to 5 days. Chill for 30 minutes before serving for cleaner slices.

Tried this recipe?

Let us know how it was!

Conclusion

Pineapple Carrot Cake with Cream Cheese Frosting is one of those desserts that manages to feel both comforting and celebration-worthy at the same time. It’s moist, warmly spiced, easy to serve, and full of the kind of homemade flavor people remember. The carrots and pineapple keep it tender, the walnuts add texture, and the cream cheese frosting brings everything together in the most classic way. Whether you bake it for Easter, a birthday, a potluck, or just because you’re craving a truly good cake, this is the kind of recipe that turns into a favorite after just one bite.