There’s something about a slice of moist, flavorful carrot cake topped with luscious cream cheese frosting that makes any gathering unforgettable. This classic dessert recipe delivers a perfect balance of sweetness, warmth, and a subtle tang.
But what makes this carrot cake stand out? It’s not just the fluffy texture or the rich, creamy frosting—it’s the combination of flavors that truly makes this dessert recipe exceptional.
Why This Carrot Cake Is a Must-Try Dessert Recipe

- Unmatched Moisture: The secret to this carrot cake’s perfect texture is the combination of ingredients—vegetable oil keeps it soft, while crushed pineapple adds a juicy burst of flavor.
- Tropical Twist: Unlike ordinary carrot cakes, this recipe includes sweetened shredded coconut and pineapple, giving it a touch of island-inspired flavor that’s impossible to resist.
- Perfectly Spiced: With a blend of cinnamon and vanilla, each bite has a warm, comforting spice that’s just right without overpowering the other flavors.
- Incredible Cream Cheese Frosting: This dessert recipe wouldn’t be complete without a thick layer of tangy cream cheese frosting. It’s creamy, smooth, and perfectly sweetened to balance the cake.
Essential Tips for Baking the Perfect Carrot Cake
- Use Fresh Carrots: Grate your own fresh carrots for the best texture and flavor. Pre-shredded carrots are often too dry.
- Don’t Overmix: When combining the dry and wet ingredients, mix just until combined. Overmixing can make the cake dense.
- Cool Completely Before Frosting: Make sure your cakes are fully cooled before adding the cream cheese frosting. Warm cakes can cause the frosting to melt.
- Customize the Add-Ins: Not a fan of raisins? Leave them out. Want extra crunch? Add a handful of chopped walnuts or pecans.
Serving Suggestions
This carrot cake is perfect for any occasion, but it’s especially ideal for:
- Birthdays and Celebrations: A double-layered beauty that looks stunning on any dessert table.
- Brunch Gatherings: Serve it alongside fresh fruit and coffee for a sweet start to the day.
- Holidays: It’s a fantastic addition to your Easter, Thanksgiving, or Christmas dessert spread.
For an extra special touch, garnish the top of your frosted cake with a light sprinkle of shredded coconut, a few walnut halves, or even a dash of cinnamon for added flair.
Storing & Making Ahead
If you have any leftovers (which is unlikely), store the cake in an airtight container in the refrigerator. The cream cheese frosting means it should be kept cool. It can stay fresh for up to five days this way.
For those planning ahead, you can bake the cake layers a day in advance. Wrap them in plastic wrap and store them at room temperature. Frost the cake just before serving for the freshest flavor.
Variations to Try

- Nut-Free Version: Skip the optional chopped walnuts for a nut-free dessert.
- Gluten-Free Option: Swap out the all-purpose flour for a gluten-free flour blend that’s designed for baking.
- Vegan Alternative: Use a dairy-free cream cheese and plant-based butter for the frosting. Replace eggs with a flaxseed egg substitute.
- Extra Tangy Frosting: Add a little fresh lemon juice to the cream cheese frosting for a citrusy kick.
This carrot cake isn’t just a dessert—it’s an experience. Each bite brings together the best of warm spices, tropical flavors, and that unbeatable cream cheese frosting.
This is a cake recipe you’ll find yourself making again and again, whether it’s for family celebrations or a quiet moment of indulgence.

Carrot Cake with Cream Cheese Frosting
Ingredients
For the Cake:
- 2 cups finely shredded carrots
- 4 large eggs at room temperature
- 1 cup granulated sugar
- ¾ cup vegetable oil
- 1 8-ounce can crushed pineapple, drained (about ¾ cup)
- 1 cup sweetened shredded coconut
- ½ cup raisins optional; can be omitted if preferred
- 2 teaspoons vanilla extract
- 2 cups all-purpose flour
- 2 teaspoons ground cinnamon
- 1 ½ teaspoons baking powder
- 1 teaspoon baking soda
- ¾ teaspoon salt
For the Cream Cheese Frosting:
- 1 cup (2 sticks) unsalted butter, at room temperature
- 8 ounces cream cheese at room temperature
- 5 cups confectioners’ sugar
- 2 teaspoons vanilla extract
- ½ teaspoon salt
Optional Topping:
- ¼ cup coarsely chopped walnuts
Instructions
Prepare for Baking:
- Preheat your oven to 350°F.
- Line the bottoms of two 8-inch round cake pans with parchment paper and lightly grease the sides with nonstick spray.
Make the Cake Batter:
- In a medium bowl, mix the shredded carrots, eggs, sugar, vegetable oil, crushed pineapple, shredded coconut, raisins (if using), and vanilla extract until combined.
- In another large bowl, combine the flour, cinnamon, baking powder, baking soda, and salt.
- Create a well in the dry ingredients and pour the wet mixture into the center. Mix until just combined, avoiding overmixing.
Bake the Cakes:
- Evenly divide the batter between the two prepared pans.
- Bake for 25 to 30 minutes, or until a toothpick inserted in the center comes out mostly clean (a few moist crumbs are fine).
- Allow the cakes to cool in the pans for a few minutes before turning them out onto a wire rack. Let them cool completely for about 1 hour.
Make the Cream Cheese Frosting:
- In a stand mixer, beat the butter and cream cheese together at medium speed until smooth.
- Gradually add the confectioners’ sugar, vanilla extract, and salt, mixing until the frosting is light, fluffy, and smooth.
Assemble the Cake:
- Place one cake layer on a serving plate and spread a generous amount of frosting on top.
- Add the second cake layer and apply the remaining frosting, covering the top and sides.
- If desired, sprinkle with chopped walnuts for added texture and flavor.
Slice and Serve:
- Cut the frosted cake into slices and serve.
Notes
- You can omit the raisins if you prefer a smoother texture.
- The walnuts on top are optional, but they add a delightful crunch and flavor contrast.
- Make sure to fully cool the cakes before frosting to prevent the frosting from melting.
Davin is a jack-of-all-trades but has professional training and experience in various home and garden subjects. He leans on other experts when needed and edits and fact-checks all articles. Also an aspiring cook we he researches and tries all kinds of different food recipes and shares what works best.

