Ever found yourself at a party, bypassing the chocolate desserts and making a beeline for that humble-looking carrot cake? Then watching as your fork sinks through layers of spiced cake and tangy frosting, thinking, “This is what dreams are made of”? Yeah, me too. Let’s be honest – carrot cake is the dessert that pretends to be healthy (it has vegetables!) while secretly being one of the most indulgent treats around. And today, I’m sharing my absolute favorite version that will make your eyes roll back in your head with pure joy.
Why This Carrot Cake Will Ruin All Others For You

This isn’t just carrot cake. This is THE carrot cake – the one that strikes the perfect balance between moist and light, the one where the spices complement rather than overwhelm, and the one topped with a cream cheese frosting so good you’ll be tempted to eat it with a spoon (go ahead, I won’t judge). The texture is what really sets it apart – tender crumb studded with just the right amount of carrots, nuts, and yes, even pineapple for that secret moisture boost. Whether you’re an Easter traditionalist or just someone who appreciates the finer things in life (like vegetables masquerading as dessert), this recipe deserves a spot in your permanent collection.

Carrot Cake with Cream Cheese Frosting
Equipment
- Two 9-inch round cake pans
- Box grater or food processor
- Electric mixer
- Mixing bowls
- Rubber spatula
- Cooling rack
Ingredients
For the Cake
- 2½ cups all-purpose flour
- 2 tsp baking powder
- 1 tsp baking soda
- 2 tsp ground cinnamon
- ½ tsp ground nutmeg
- ½ tsp ground ginger
- ¼ tsp ground cloves
- ½ tsp salt
- 1 cup granulated sugar
- 1 cup light brown sugar, packed
- 1 cup vegetable oil
- 4 large eggs, room temperature
- 2 tsp vanilla extract
- 3 cups finely grated carrots (about 6 medium carrots)
- 1 cup chopped walnuts or pecans (plus extra for garnish)
- ½ cup crushed pineapple, drained
- ½ cup raisins (optional, but recommended)
For the Cream Cheese Frosting
- 16 oz cream cheese, softened (two 8-oz blocks)
- ½ cup unsalted butter, softened (1 stick)
- 4 cups powdered sugar, sifted
- 2 tsp vanilla extract
- Pinch of salt
Instructions
- Prep your battlestation. Preheat your oven to 350°F (175°C). Grease and flour two 9-inch round cake pans, or line them with parchment paper. A stuck cake is a sad cake.
- Mix the dry team. In a medium bowl, whisk together flour, baking powder, baking soda, cinnamon, nutmeg, ginger, cloves, and salt. Set aside. (I know, this step seems boring, but proper distribution of leavening agents and spices is what separates good carrot cake from great carrot cake.)
- Blend the wet squad. In a large bowl, beat together granulated sugar, brown sugar, and oil until well combined. Add eggs one at a time, beating well after each. Stir in vanilla extract. Your mixture should look like a golden, glossy dream.
- Unite the ingredients. Gradually add the dry ingredients to the wet ingredients, mixing just until combined. No overmixing! That leads to tough cake, and we want tender cake.
- Fold in the fun stuff. Gently fold in the grated carrots, nuts, drained pineapple, and raisins (if using). The batter will be thick and textured – that's exactly what you want.
- Divide and conquer. Distribute the batter evenly between your prepared pans. Give them a gentle tap on the counter to remove air bubbles.
- Bake to perfection. Slide those pans into the oven and bake for 30-35 minutes, or until a toothpick inserted in the center comes out clean or with a few moist crumbs. The tops should spring back when lightly pressed.
- Cool your jets. Allow cakes to cool in pans for 15 minutes, then turn out onto wire racks to cool completely. Patience is a virtue here – frosting a warm cake is a disaster waiting to happen.
- Make that heavenly frosting. In a large bowl, beat cream cheese and butter until smooth and creamy, about 2 minutes. Add powdered sugar one cup at a time, beating well after each addition. Mix in vanilla and salt. Beat for an additional 2-3 minutes until fluffy and smooth. Try not to face-plant directly into the bowl.
- Assemble your masterpiece. Place one cake layer on your serving plate. Spread a generous layer of frosting on top. Place the second cake layer on top and frost the top and sides of the cake. Get creative with swirls and peaks, or go for a smooth finish. Decorate the sides with extra chopped nuts if desired.
Notes
- The carrot question: Hand-grate for texture, food processor for speed. Just don’t use pre-shredded carrots – they’re too dry.
- Make ahead: The cake layers can be baked a day ahead, wrapped tightly, and stored at room temperature. The frosting can be made a day ahead and refrigerated – just let it come to room temperature before using.
- For extra moisture: Don’t squeeze the pineapple completely dry – a little juice adds wonderful moisture to the cake.
- Cream cheese tip: For the smoothest frosting, make sure your cream cheese and butter are properly softened but not melted. About 1 hour at room temperature is perfect.
Common Mistakes to Avoid
- Grating carrots too coarsely. Big chunks of carrot won’t cook through properly. Aim for fine to medium grate for the best texture.
- Overmixing the batter. Once the flour goes in, mix just until combined. Overmixing develops gluten, which makes for tough cake. Nobody wants tough cake.
- Frosting too soon. I know it’s tempting to frost right away, but you’ll end up with a melty mess. Wait until the cake is COMPLETELY cool – as in, no trace of warmth when you touch the center.
Variations & Customizations
- Tropical Twist: Replace the raisins with chopped dried mango and add ½ cup toasted coconut to the batter. Top the frosted cake with toasted coconut flakes for an island vibe.
- Spice Lover’s Version: Double the spices and add ¼ teaspoon of cardamom for a more complex flavor profile that’ll make people ask, “What’s your secret?”
- Gluten-Free Option: Substitute the all-purpose flour with your favorite 1:1 gluten-free flour blend. Add an extra egg for binding power, and you’re good to go!
Frequently Asked Questions
Can I make this as a sheet cake instead of layers?
Absolutely! Use a 9×13 inch pan and bake for 35-40 minutes. You’ll need less frosting, so consider reducing the frosting recipe by one-third.
How do I store leftovers?
Because of the cream cheese frosting, store this cake in the refrigerator, covered, for up to 5 days. Let slices come to room temperature for about 30 minutes before serving for the best flavor and texture.
Can I freeze this cake?
Yes! Freeze unfrosted layers wrapped tightly in plastic wrap and foil for up to 3 months. The frosted cake can be frozen too – just place it in the freezer unwrapped until firm, then wrap tightly. Thaw overnight in the refrigerator.
Final Thoughts
There’s something magical about a really good carrot cake – it brings together so many seemingly contradictory elements: vegetables in dessert, spices with sweetness, density with tenderness. This recipe honors the classic while elevating it to something truly special. Whether you’re serving it for Easter, a birthday, or just because it’s Wednesday and you deserve cake, this carrot cake with its crown of cream cheese frosting is guaranteed to bring smiles. And isn’t that what baking is all about? Creating something delicious that makes people happy? I think so. Now go grate some carrots!