Go Back
Homemade carrot cake with cream cheese frosting and chopped walnuts on a cake stand, one slice cut

Carrot Cake Recipe

Prep Time 25 minutes
Cook Time 40 minutes
Total Time 1 hour 5 minutes
Servings: 12

Ingredients
  

  • 2 cups all-purpose flour
  • 2 teaspoons baking soda
  • 1 teaspoon baking powder
  • 2 teaspoons ground cinnamon
  • 1/2 teaspoon ground nutmeg
  • 1/2 teaspoon salt
  • 1 1/2 cups granulated sugar
  • 1/2 cup packed light brown sugar
  • 4 large eggs at room temperature
  • 1 1/4 cups vegetable oil
  • 2 teaspoons vanilla extract
  • 3 cups finely grated carrots about 5 medium carrots
  • 1 cup chopped walnuts plus more for the top
  • 1/2 cup raisins optional
  • 16 ounces cream cheese softened (for the frosting)
  • 1/2 cup unsalted butter softened (for the frosting)
  • 3 1/2 cups powdered sugar sifted (for the frosting)
  • 2 teaspoons vanilla extract for the frosting
  • Pinch of salt for the frosting

Method
 

  1. Heat the oven to 350°F (175°C). Grease two 9-inch round cake pans, line the bottoms with parchment, and grease the parchment.
  2. Whisk the flour, baking soda, baking powder, cinnamon, nutmeg, and salt together in a medium bowl.
  3. In a large bowl, whisk the granulated sugar, brown sugar, eggs, oil, and vanilla until smooth and slightly thick.
  4. Add the dry ingredients to the wet mixture and stir just until no flour streaks remain.
  5. Fold in the grated carrots, walnuts, and raisins if using.
  6. Divide the batter evenly between the pans and smooth the tops.
  7. Bake for 35 to 40 minutes, until a toothpick pushed into the center comes out clean.
  8. Cool the cakes in the pans for 10 minutes, then turn them out onto a rack and cool completely.
  9. For the frosting, beat the cream cheese and butter together until smooth, then beat in the powdered sugar a cup at a time, followed by the vanilla and salt.
  10. Spread frosting over the first layer, set the second layer on top, and frost the top and sides. Scatter extra chopped walnuts over the top before serving.