A two-layer carrot cake with cream cheese frosting and pecans, a slice cut showing the moist spiced layers

Carrot Cake with Cream Cheese Frosting

Desserts

Carrot Cake with Cream Cheese Frosting

By SamuelNovember 26, 2026

A great Carrot Cake with Cream Cheese Frosting is the cake that makes people ask for the recipe before they’ve finished their slice. Deeply moist, warmly spiced, studded with toasted pecans, and…

A two-layer carrot cake with cream cheese frosting and pecans, a slice cut showing the moist spiced layers

A great Carrot Cake with Cream Cheese Frosting is the cake that makes people ask for the recipe before they’ve finished their slice. Deeply moist, warmly spiced, studded with toasted pecans, and covered in tangy cream cheese frosting — it’s a celebration cake that tastes like home.

I’m Samuel, and here at Samuel’s Recipes this is the carrot cake I bake for Easter, for birthdays, and for no reason at all. The secrets are simple: freshly grated carrots (never the bagged kind), oil instead of butter for a crumb that stays moist for days, and a frosting with just enough tang to balance the sweetness.

Below you’ll find the complete recipe with step-by-step instructions, tips for level layers and smooth frosting, make-ahead guidance, and storage advice. Put the coffee on — let’s grate some carrots and get baking.

Yield: 12 to 14Prep: 30 minCook: 35 minTotal: 1 hr 15 min

Why You’ll Love This Recipe

  • Incredibly moist crumb: oil and plenty of fresh carrots keep this cake tender for days — it actually improves overnight.
  • Warm, balanced spice: cinnamon with a touch of ginger and nutmeg gives flavor that supports the carrots instead of overwhelming them.
  • Real cream cheese frosting: tangy, smooth and spreadable, with the right ratio of butter to cream cheese so it holds its shape.
  • Two handsome layers: bakes up level and sturdy, perfect for stacking, frosting and slicing cleanly.
  • Make-ahead friendly: bake the layers a day early, frost the next — the cake is better for the rest.
  • A crowd favorite: this is the cake that disappears first at potlucks, church suppers and family birthdays.

Ingredients

For the Carrot Cake

  • 2 cups (250 g) all-purpose flour
  • 2 teaspoons baking soda
  • 1 1/2 teaspoons ground cinnamon
  • 1/2 teaspoon ground ginger
  • 1/4 teaspoon ground nutmeg
  • 1 teaspoon fine salt
  • 1 1/4 cups (300 ml) neutral vegetable oil
  • 1 cup (200 g) granulated sugar
  • 1 cup (200 g) packed light brown sugar
  • 4 large eggs, at room temperature
  • 2 teaspoons vanilla extract
  • 3 cups (about 300 g) freshly grated carrots (from about 5–6 medium carrots)
  • 1 cup (110 g) chopped pecans, toasted, plus more for decorating
  • 1/2 cup (80 g) raisins (optional)

For the Cream Cheese Frosting

  • 16 oz (450 g) full-fat cream cheese, at room temperature
  • 8 tablespoons (115 g) unsalted butter, at room temperature
  • 3 1/2 to 4 cups (420–480 g) powdered sugar, sifted
  • 2 teaspoons vanilla extract
  • Pinch of fine salt
  • 1 to 2 tablespoons milk or cream, as needed
Ingredients for carrot cake with cream cheese frosting laid out and labeled

Instructions

Step 1: Heat the oven to 350°F (175°C). Grease two 9-inch (23 cm) round cake pans, line the bottoms with parchment circles, and grease the parchment. This little insurance policy guarantees the layers release cleanly every time.

Step 2: Peel and grate the carrots on the medium holes of a box grater — you want fine shreds, not long ribbons. Set aside. If you’re toasting the pecans (and I hope you are), spread them on a small pan and toast in the heating oven for 6 to 8 minutes, until fragrant, then chop and let cool.

Grating fresh carrots on a box grater over a bowl of carrot shreds

Step 3: In a medium bowl, whisk together the flour, baking soda, cinnamon, ginger, nutmeg and salt until evenly combined. Set aside.

Step 4: In a large bowl, whisk the oil, granulated sugar and brown sugar until smooth and glossy. Add the eggs one at a time, whisking well after each, then whisk in the vanilla. The mixture should look thick and emulsified, like a loose caramel.

Step 5: Add the dry ingredients to the wet in two additions, folding gently with a spatula until just combined — a few small streaks of flour are fine at this point. Fold in the grated carrots, toasted pecans and raisins (if using) until evenly distributed. The batter will be loose and generously flecked with orange.

Step 6: Divide the batter evenly between the prepared pans — about 700 g per pan if you have a scale — and smooth the tops. Give each pan a gentle tap on the counter to settle the batter.

Two cake pans filled with carrot cake batter ready for the oven

Step 7: Bake for 33 to 38 minutes, rotating the pans halfway, until the tops spring back when lightly pressed and a toothpick inserted in the center comes out clean or with a few moist crumbs. The edges will just begin to pull away from the sides of the pan.

Step 8: Cool the layers in their pans on a wire rack for 15 minutes, then run a knife around the edges, turn them out, peel off the parchment, and cool completely — at least 1 hour. Frosting a warm cake is a heartbreak I want to save you from; the layers must be fully cool.

Step 9: Make the frosting: beat the cream cheese and butter together on medium speed until completely smooth and fluffy, about 2 minutes. Add the powdered sugar a cup at a time on low speed, then the vanilla and salt. Beat on medium for 1 minute more, adding a spoonful of milk if needed, until the frosting is smooth, thick and spreadable. It should hold soft peaks, not slump.

Step 10: Place the first layer on a serving plate, top-down for a flat surface. Spread about 1 1/2 cups of frosting evenly over it. Set the second layer on top, also top-down, and frost the top and sides with the remaining frosting, using an offset spatula to make gentle swirls. Press extra chopped toasted pecans around the sides or sprinkle them over the top, as you like.

Spreading cream cheese frosting over a stacked carrot cake with an offset spatula

Step 11: Refrigerate the frosted cake for at least 30 minutes before slicing — this sets the frosting and gives you clean cuts. For the best flavor and texture, let slices stand at room temperature for about 20 minutes before serving.

Try this nextChristmas Cranberry Pistachio Coral Lace Cups

Tips for the Best Carrot Cake

  • Grate carrots fresh: pre-shredded bagged carrots are dry and thick, and they make a drier, stringier cake. Freshly grated carrots melt right into the crumb.
  • Don’t squeeze the carrots: their moisture is the whole point. Grate them and fold them in with all their juices.
  • Room-temperature frosting ingredients: cold cream cheese makes lumpy frosting; too-warm butter makes soupy frosting. Both should give slightly when pressed.
  • Sift the powdered sugar: two minutes of sifting saves you from chasing lumps through finished frosting.
  • Weigh the batter between pans: even layers bake evenly and stack straight. A kitchen scale earns its drawer space here.

Easy Variations

Carrot Sheet Cake

Bake the batter in a greased 9×13-inch (23×33 cm) pan for 40 to 45 minutes and frost right in the pan. Perfect for potlucks and easy transport.

Pineapple Carrot Cake

Fold in 1/2 cup (about 120 g) of well-drained crushed pineapple with the carrots and reduce the granulated sugar by 2 tablespoons. The cake will be extra moist with a gentle tropical note.

Carrot Cupcakes

Divide the batter among 24 lined muffin cups and bake for 20 to 24 minutes. Pipe the frosting on top for individual treats that travel beautifully.

How to Store and Make Ahead

Refrigerator: because of the cream cheese frosting, store the cake covered in the refrigerator for up to 5 days. Let slices warm up a little at room temperature before eating for the best texture.

Freezer: unfrosted layers freeze wonderfully for up to 3 months — wrap them tightly in plastic and foil. The frosted cake also freezes well; thaw overnight in the refrigerator.

Make ahead: bake the layers a day ahead, wrap and refrigerate them (cold layers are easier to frost), and make the frosting the day you assemble. The assembled cake tastes even better on day two, when the spices have had time to settle in.

Frequently Asked Questions

Can I make this cake without nuts?

Certainly. Leave the pecans out entirely, or replace them with an equal amount of extra raisins or shredded sweetened coconut. The cake will still be moist and full of flavor.

Why is my cream cheese frosting runny?

Usually the butter was too soft, or low-fat cream cheese was used — it contains more water and will not hold up. Use full-fat block cream cheese, keep ingredients cool-room-temperature, and chill the frosting for 15 minutes if it needs firming.

Can I use butter instead of oil in the cake?

You can, but the crumb will be firmer and drier by the second day. Oil is what gives carrot cake its signature days-long moistness, so I recommend keeping it.

How fine should I grate the carrots?

Use the medium shredding side of a box grater. Very fine grating turns them to mush, and thick shreds stay stringy. Medium shreds soften into the crumb and nearly disappear, leaving moisture and sweetness behind.

Does carrot cake need to be refrigerated?

Once frosted, yes — cream cheese frosting should not sit out for more than about 2 hours. Unfrosted layers can stay wrapped at room temperature for a day.

Final Thoughts

This carrot cake is everything I want in a celebration cake: moist, warmly spiced, generously frosted, and somehow even better the next day. It has graced more of my family’s birthdays and spring tables than any other cake I bake, and it has never once let me down.

Bake it for your next gathering, frost it with a generous hand, and come back to tell me in the comments how you decorated yours. Happy cooking!

Samuel

Carrot Cake with Cream Cheese Frosting

A great Carrot Cake with Cream Cheese Frosting is the cake that makes people ask for the recipe before they’ve finished their slice. Deeply moist, warmly spiced, studded with toasted pecans, and…

Pin recipe
A two-layer carrot cake with cream cheese frosting and pecans, a slice cut showing the moist spiced layers
prep time30 min
cook time35 min
total time1 hr 15 min
Servings: 12 to 14Course: DessertsCuisine: AmericanLevel: Medium

Ingredients

Carrot Cake

Cream Cheese Frosting

Method

  1. 1
    Heat the oven to 350°F (175°C). Grease two 9-inch (23 cm) round cake pans, line the bottoms with parchment circles, and grease the parchment. This little insurance policy guarantees the layers release cleanly every time.
  2. 2
    Peel and grate the carrots on the medium holes of a box grater — you want fine shreds, not long ribbons. Set aside. If you’re toasting the pecans (and I hope you are), spread them on a small pan and toast in the heating oven for 6 to 8 minutes, until fragrant, then chop and let cool.
  3. 3
    In a medium bowl, whisk together the flour, baking soda, cinnamon, ginger, nutmeg and salt until evenly combined. Set aside.
  4. 4
    In a large bowl, whisk the oil, granulated sugar and brown sugar until smooth and glossy. Add the eggs one at a time, whisking well after each, then whisk in the vanilla. The mixture should look thick and emulsified, like a loose caramel.
  5. 5
    Add the dry ingredients to the wet in two additions, folding gently with a spatula until just combined — a few small streaks of flour are fine at this point. Fold in the grated carrots, toasted pecans and raisins (if using) until evenly distributed. The batter will be loose and generously flecked with orange.
  6. 6
    Divide the batter evenly between the prepared pans — about 700 g per pan if you have a scale — and smooth the tops. Give each pan a gentle tap on the counter to settle the batter.
  7. 7
    Bake for 33 to 38 minutes, rotating the pans halfway, until the tops spring back when lightly pressed and a toothpick inserted in the center comes out clean or with a few moist crumbs. The edges will just begin to pull away from the sides of the pan.
  8. 8
    Cool the layers in their pans on a wire rack for 15 minutes, then run a knife around the edges, turn them out, peel off the parchment, and cool completely — at least 1 hour. Frosting a warm cake is a heartbreak I want to save you from; the layers must be fully cool.
  9. 9
    Make the frosting: beat the cream cheese and butter together on medium speed until completely smooth and fluffy, about 2 minutes. Add the powdered sugar a cup at a time on low speed, then the vanilla and salt. Beat on medium for 1 minute more, adding a spoonful of milk if needed, until the frosting is smooth, thick and spreadable. It should hold soft peaks, not slump.
  10. 10
    Place the first layer on a serving plate, top-down for a flat surface. Spread about 1 1/2 cups of frosting evenly over it. Set the second layer on top, also top-down, and frost the top and sides with the remaining frosting, using an offset spatula to make gentle swirls. Press extra chopped toasted pecans around the sides or sprinkle them over the top, as you like.
  11. 11
    Refrigerate the frosted cake for at least 30 minutes before slicing — this sets the frosting and gives you clean cuts. For the best flavor and texture, let slices stand at room temperature for about 20 minutes before serving.

Notes

Refrigerator: because of the cream cheese frosting, store the cake covered in the refrigerator for up to 5 days. Let slices warm up a little at room temperature before eating for the best texture. Freezer: unfrosted layers freeze wonderfully for up to 3 months — wrap them tightly in plastic and foil. The frosted cake also freezes well; thaw overnight in the refrigerator.

Similar Posts

  • Chocolate Orange Truffle Lace Cups

    Home›Desserts›Chocolate Orange Truffle Lace CupsDessertsChocolate Orange Truffle Lace CupsBy SamuelNovember 26, 2026If you love the combination of chocolate and orange, these Chocolate Orange Truffle Lace Cups are about to become your new favorite party dessert. A shatteringly crisp chocolate lace cup — made…Jump to recipePin recipeIf you love the combination of chocolate and orange, these…

  • Cranberry Santa Hat Cheesecake Coral Lace Cups

    Home›Desserts›Cranberry Santa Hat Cheesecake Coral Lace CupsDessertsCranberry Santa Hat Cheesecake Coral Lace CupsBy SamuelNovember 26, 2026If you want one Christmas dessert that makes the whole table stop and stare, this is it. These Cranberry Santa Hat Cheesecake Coral Lace Cups pair shatteringly crisp, ruby-red lace cups with…Pin recipeIf you want one Christmas dessert that makes…

  • Red Velvet Cake

    Home›Desserts›Red Velvet CakeDessertsRed Velvet CakeBy SamuelNovember 26, 2026There is no cake quite like a Red Velvet Cake. Those deep crimson layers, that tender, velvety crumb with just a whisper of cocoa, and a thick swirl of tangy cream cheese…Jump to recipePin recipeThere is no cake quite like a Red Velvet Cake. Those deep crimson layers,…

  • Fudgy Brownies

    Home›Desserts›Fudgy BrowniesDessertsFudgy BrowniesBy SamuelNovember 26, 2026There are two kinds of brownies in this world — cakey and fudgy — and these Fudgy Brownies plant their flag firmly, proudly, in the fudgy camp. Dense and rich with a…Jump to recipePin recipeThere are two kinds of brownies in this world — cakey and fudgy — and these…

  • Pistachio Raspberry Lace Baskets

    Home›Desserts›Pistachio Raspberry Lace BasketsDessertsPistachio Raspberry Lace BasketsBy SamuelNovember 26, 2026Some desserts are pretty, and some are unforgettable — these Pistachio Raspberry Lace Baskets are both. A shatteringly crisp golden lace-cookie shell, a cloud of pistachio mascarpone cream, jewel-bright fresh raspberries and…Pin recipeSome desserts are pretty, and some are unforgettable — these Pistachio Raspberry Lace Baskets…

  • The Best Chewy Chocolate Chip Cookies

    Home›Desserts›The Best Chewy Chocolate Chip CookiesDessertsThe Best Chewy Chocolate Chip CookiesBy SamuelNovember 26, 2026Ask a room full of people to name their favorite cookie and you’ll hear the same answer most of the time: The Best Chewy Chocolate Chip Cookies — crisp golden edges, soft…Jump to recipePin recipeAsk a room full of people to name…

Leave a Reply

Your email address will not be published. Required fields are marked *