Pineapple Carrot Cake Frosting

Featured in Sweet treats for any occasion.

This pineapple carrot cake blends crushed pineapple, fresh carrots, and warm spices for a moist, tender crumb. A creamy cream cheese frosting completes the perfect balance of flavors. Great for any occasion, it can be made as a layer cake, cupcakes, or a Bundt version.
A woman in an apron is preparing a meal in a sunny kitchen filled with fresh vegetables and herbs.
Updated on Wed, 19 Mar 2025 03:44:22 GMT
A slice of cake with white frosting. pin it
A slice of cake with white frosting. | tastelikemagic.com

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.
A slice of cake on a plate. pin it
A slice of cake on a plate. | tastelikemagic.com

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.

A piece of cake with white frosting and orange sprinkles. pin it
A piece of cake with white frosting and orange sprinkles. | tastelikemagic.com

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.

Pineapple Carrot Cake Frosting

Moist and spiced pineapple carrot cake topped with velvety cream cheese frosting.

Prep Time
30 Minutes
Cook Time
55 Minutes
Total Time
85 Minutes
By: Zaho

Category: Desserts

Difficulty: Intermediate

Cuisine: American

Yield: 15 Servings

Dietary: Vegetarian

Ingredients

→ Dry Ingredients

01 2 and 1/2 cups (312g) all-purpose flour
02 2 teaspoons baking powder
03 1 teaspoon baking soda
04 1/2 teaspoon salt
05 1 and 1/2 teaspoons ground cinnamon
06 1/2 teaspoon ground cloves
07 1/2 teaspoon ground ginger
08 1/2 teaspoon ground nutmeg

→ Wet Ingredients

09 1 cup (240ml) canola oil or vegetable oil
10 1 and 1/4 cups (250g) packed light or dark brown sugar
11 1/3 cup (67g) granulated sugar
12 4 large eggs, at room temperature
13 1 teaspoon pure vanilla extract

→ Add-Ins

14 2 cups (260g) shredded carrots
15 1 cup (8 ounces) crushed pineapple, drained
16 1 cup (125g) chopped walnuts

→ Cream Cheese Frosting

17 8 ounces (226g) full-fat brick cream cheese, softened
18 1/2 cup (113g) unsalted butter, softened
19 3 cups (360g) confectioners’ sugar, plus extra 1/4 cup if needed
20 1 teaspoon pure vanilla extract
21 1/8 teaspoon salt

Instructions

Step 01

Preheat the oven to 350°F (177°C) and grease a 9×13-inch baking pan.

Step 02

Whisk together the flour, baking powder, baking soda, salt, cinnamon, cloves, ginger, and nutmeg in a large bowl. Set aside.

Step 03

In a medium bowl, whisk canola oil, brown sugar, granulated sugar, eggs, and vanilla extract until smooth.

Step 04

Pour wet ingredients into the dry ingredients and mix until combined. Fold in shredded carrots, crushed pineapple, and chopped walnuts.

Step 05

Spread the batter evenly into the prepared baking pan. Bake for 45-55 minutes until a toothpick inserted in the center comes out clean. Cover loosely with aluminum foil if the top browns too quickly.

Step 06

Remove from oven and set the pan on a wire rack. Cool completely for about 45 minutes, or refrigerate to speed up cooling.

Step 07

Using an electric mixer, beat cream cheese and butter together on high speed until smooth. Add confectioners’ sugar, vanilla, and salt, beating on low speed for 30 seconds, then high speed for 2 minutes. Adjust texture with additional confectioners' sugar if needed.

Step 08

Spread frosting on the cooled cake and refrigerate for 30 minutes to set before serving.

Notes

  1. Use freshly grated carrots instead of pre-shredded ones for optimal moisture.
  2. Canned crushed pineapple keeps the cake tender, but fresh pineapple can be crushed and used as well.
  3. Store covered leftovers in the refrigerator for up to 5 days.

Tools You'll Need

  • Electric mixer (handheld or stand)
  • Glass mixing bowl
  • Whisk
  • 9×13-inch baking dish
  • Box grater
  • Wire rack
  • Icing spatula

Allergy Information

Please check ingredients for potential allergens and consult a health professional if in doubt.
  • Contains dairy from cream cheese and butter.
  • Contains tree nuts (walnuts).
  • Contains gluten from all-purpose flour.
  • Contains eggs.

Nutrition Facts (Per Serving)

It is important to consider this information as approximate and not to use it as definitive health advice.
  • Calories: ~
  • Total Fat: ~
  • Total Carbohydrate: ~
  • Protein: ~