Cakes · Updated August 22, 2026

Classic Carrot Cake with Cream Cheese Frosting

5 from 2 ratings

A moist, warmly spiced carrot cake topped with tangy cream cheese frosting. Made in a 9x13 pan for easy slicing and sharing - classic, reliable, and always crowd-pleasing.

Prep time 25 min
Cook time 40 min
Total time 1 hr 5 min
Servings 16
Cuisine American
Jump to Recipe

Carrot cake is one of those recipes that earns its place by being genuinely good – not flashy, not complicated, just a cake that tastes like someone actually made it with care. The carrots keep the crumb moist for days, the warm spices give it depth without being heavy-handed, and the cream cheese frosting brings a tangy richness that makes the whole thing feel complete. This version is baked in a 9×13 pan, which means clean squares, easy serving, and none of the stress that comes with stacking layers.

The most important thing to get right here is the carrots. Freshly grated is non-negotiable – the pre-shredded bags from the grocery store are too dry and too thick, and they don’t hydrate properly during baking. Use a box grater and grate them yourself. It takes about five minutes, and the difference in moisture is real. You want approximately three large carrots, packed loosely into the measuring cup for two cups total.

The oil in this recipe does a lot of work. Unlike butter, oil keeps the cake moist at room temperature, which is part of why carrot cake holds so well the next day – or the day after that. Neutral oils like vegetable or canola are traditional, but melted coconut oil works too if you want a very slight background flavor. Avoid olive oil; it pushes the flavor somewhere unexpected.

For the spices, cinnamon does the heavy lifting and nutmeg brings warmth without drawing attention to itself. Some carrot cake recipes pile in cardamom, allspice, cloves, and ginger all at once, which can start to taste muddled. Two spices, used well, is usually better than six used cautiously.

A word on mix-ins: chopped walnuts or pecans are the classic addition, stirred directly into the batter. If you want to add them, a cup of coarsely chopped nuts folded in just before pouring works perfectly. Raisins divide opinion – add them if you love them, skip them if you don’t, the cake is equally good either way.

The frosting is cream cheese-based and slightly tart, which cuts through the sweetness of the cake. Make sure both the cream cheese and butter are fully at room temperature before you start – cold cream cheese stays lumpy no matter how long you beat it, and that texture never quite smooths out. Beat the cream cheese and butter together first until completely smooth, then add the powdered sugar gradually so it incorporates without seizing up.

The most common mistake with carrot cake is under-grating the carrots, thinking thicker shreds will give more texture. Finely grated carrots melt into the batter during baking and keep it uniformly moist, while thick shreds stay chunky and can make the texture uneven. Grate them fine, and the cake takes care of itself.

If warmly spiced layer cakes are your thing, my Hummingbird Cake and Carrot Honey Cake are both worth a look – they share the same kind of generous, honest sweetness.

Ingredients for Classic Carrot Cake with Cream Cheese Frosting

  • For the cake:
  • 2 cups all-purpose flour
  • 2 teaspoons baking soda
  • 1 teaspoon baking powder
  • 1/2 teaspoon salt
  • 2 teaspoons ground cinnamon
  • 1/2 teaspoon ground nutmeg
  • 4 large eggs, room temperature
  • 1 1/2 cups granulated sugar
  • 1/2 cup packed brown sugar
  • 1 cup vegetable oil
  • 2 teaspoons pure vanilla extract
  • 2 cups finely grated fresh carrots (about 3 large)
  • For the cream cheese frosting:
  • 16 oz (450g) cream cheese, fully softened
  • 1/2 cup (115g) unsalted butter, fully softened
  • 4 cups (480g) powdered sugar, sifted
  • 2 teaspoons pure vanilla extract
  • 1/4 teaspoon salt

How to Make Classic Carrot Cake with Cream Cheese Frosting

  1. 1

    Preheat oven to 350°F (175°C). Grease a 9x13 inch baking pan and line the bottom with parchment paper.

  2. 2

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

  3. 3

    In a large bowl, whisk the eggs, granulated sugar, and brown sugar together until smooth and slightly lightened in color, about 1 minute.

  4. 4

    Whisk in the vegetable oil and vanilla extract until fully combined.

  5. 5

    Add the dry ingredients to the wet ingredients and stir with a spatula until just combined - a few streaks of flour are fine at this point.

  6. 6

    Fold in the grated carrots until evenly distributed throughout the batter.

  7. 7

    Pour the batter into the prepared pan and spread to an even layer.

  8. 8

    Bake for 38-42 minutes, until a toothpick inserted into the center comes out clean and the edges pull slightly from the sides of the pan.

  9. 9

    Let the cake cool completely in the pan on a wire rack - at least 1 hour. Do not frost while warm.

  10. 10

    Make the frosting: beat the softened cream cheese and butter together on medium-high speed until completely smooth and fluffy, about 3 minutes.

  11. 11

    Reduce speed to low and add the powdered sugar gradually, about 1 cup at a time, beating between additions.

  12. 12

    Add the vanilla and salt, then beat on medium-high for 1 minute until light and smooth.

  13. 13

    Spread the frosting evenly over the cooled cake. Slice into squares and serve.

Nutrition (per serving)

Calories 480
Fat 27g
Carbs 55g
Protein 5g

Where the calories come from

  • Carbs 55g · 46%
  • Protein 5g · 4%
  • Fat 27g · 50%

Nutrition Disclosure

Tips & FAQ

Why does carrot cake use oil instead of butter?
Oil keeps carrot cake moist for longer than butter does, because oil does not solidify when the cake is refrigerated (butter does). A butter-based carrot cake would be noticeably drier after a day in the fridge - oil is the right choice here.
How finely should I grate the carrots?
Medium-fine is ideal. Very finely grated carrots almost disappear into the batter, while coarsely grated pieces stay visible as distinct chunks. The medium grater gives you moisture and flavour without noticeable texture in the finished cake.
Can I add raisins or pineapple?
Both are popular additions. Crushed pineapple (well drained) adds moisture and sweetness. Raisins add chewy texture and depth. Neither is mandatory - the recipe works beautifully without either, and both are easy to add to taste.
Why is my cream cheese frosting too runny?
Usually the cream cheese was too soft or warm before beating. Bring it to room temperature but not until it is melting. Beat the cream cheese and butter first until smooth, then add the sugar gradually. If still too soft, refrigerate for 20 minutes before spreading.
How long does carrot cake with cream cheese frosting keep?
Refrigerate it - cream cheese frosting needs to be kept cold. It keeps very well for 4-5 days in the fridge. Unlike butter-based cakes, carrot cake is often considered better on day 2 as the moisture redistributes through the crumb.

More Cakes

Taiwanese souffle castella cake with a golden top

Cakes · 1 hr 10 min

5 from 1 rating

Taiwanese Souffle Castella Cake

A soft, impossibly jiggly Taiwanese castella cake made with a butter-milk base, four eggs, and a soft meringue. Baked low and slow in a water bath for a cloud-like crumb with zero dryness.

Stacked Czech Kolonáda hazelnut spa wafer cake with dulce de leche and walnut filling

Cakes · 4 hrs 15 min

5 from 3 ratings

Czech Hazelnut Wafer Cake (Oplatky)

A no-bake Czech classic made with Kolonáda spa hazelnut wafers, mascarpone, dulce de leche, and walnuts. Stack, chill, and slice - the layers soften into something rich and quietly addictive.

Classic Napoleon cake showing thin flaky pastry layers with custard cream

Cakes · 2 hrs 30 min

5 from 2 ratings

Classic Napoleon Cake (Mille-Feuille)

Dozens of paper-thin, flaky pastry layers soaked overnight in silky vanilla custard - this is the Napoleon cake from every Ukrainian grandmother's recipe box, always made the day before and always worth the wait.

Related searches

carrot cake cream cheese frosting easy carrot cake 9x13 carrot cake moist carrot cake homemade carrot cake American cake classic carrot cake