Go Back
Frosted two-layer carrot cake with chopped pecans around the top edge on a white cake stand
Emily Hart

Carrot Cake Recipe with Cream Cheese Frosting

A two-layer, oil-based carrot cake with cinnamon and nutmeg, finished with a thick cream cheese frosting.
Prep Time 50 minutes
Cook Time 35 minutes
Total Time 1 hour 25 minutes
Servings: 12 generous slices

Ingredients
  

Cake
  • 2 cups 240 g all-purpose flour, spooned and leveled
  • 1 teaspoon baking soda
  • 1 teaspoon baking powder
  • 3/4 teaspoon fine salt
  • 2 teaspoons ground cinnamon
  • 1/2 teaspoon ground nutmeg
  • 3 large eggs
  • 1 cup 200 g granulated sugar
  • 1/2 cup about 105 g light brown sugar, packed
  • 3/4 cup 180 ml neutral oil
  • 2 teaspoons pure vanilla extract
  • 2 1/2 cups about 275 g finely grated carrots, lightly packed
  • 3/4 cup about 85 g chopped pecans or walnuts, optional
  • Softened butter and parchment paper for the pans
Cream Cheese Frosting
  • 16 ounces 454 g full-fat block cream cheese, softened
  • 1/2 cup 113 g unsalted butter, softened
  • 4 cups about 450 g powdered sugar
  • 2 teaspoons pure vanilla extract
  • 1/4 teaspoon fine salt
To Finish
  • 1/3 cup about 40 g chopped pecans or walnuts, optional

Method
 

  1. Heat the oven to 350°F (175°C) with a rack in the middle. Butter two 9-inch round pans and line the bottoms with parchment.
  2. Peel and finely grate the carrots; measure 2 1/2 cups (about 275 g). Chop the nuts, if using.
  3. Whisk the flour, baking soda, baking powder, salt, cinnamon, and nutmeg in a medium bowl until evenly combined.
  4. In a large bowl, whisk the eggs and both sugars for about 1 minute. Whisk in the oil in a thin stream, then stir in the vanilla, until glossy with no pooled oil.
  5. Add the dry mixture to the wet mixture and fold until a few streaks of flour remain. Add the carrots and nuts and fold just until no dry flour remains.
  6. Divide the batter between the pans, smooth the tops, and bake for 25 to 35 minutes, until a toothpick in the center comes out clean or with a few moist crumbs.
  7. Cool in the pans for 15 minutes. Turn the layers out, peel off the parchment, and cool right side up until completely room temperature, about 1 hour.
  8. Beat the butter and cream cheese until smooth, about 2 minutes. Beat in the powdered sugar, then the vanilla and salt, just until fluffy. If the frosting is too soft to spread, chill it 20 to 30 minutes.
  9. Level the layers if domed. Stack with about one-third of the frosting between the layers, the second layer upside down, then frost the top and sides. Press nuts around the top edge, if using.
  10. Chill the cake for 30 minutes, then slice with a clean, sharp knife.

Notes

Cool about 1 hour 15 minutes before frosting; chill 30 minutes after frosting. Storage: Refrigerate leftovers, covered, for 3 to 4 days.