Directions
Step 1
Preheat your oven to 350°F (175°C). Grease two 9-inch cake pans or one 9x13 inch baking dish with butter or cooking spray.
Step 2
In a medium bowl, sift together the flour, baking powder, baking soda, cinnamon, nutmeg, and salt. Mix well and set aside.
Step 3
In a large mixing bowl, beat together the grated carrots, vegetable oil, granulated sugar, brown sugar, eggs, and vanilla extract until well combined.
Step 4
Add the dry ingredients to the wet ingredients, mixing until just combined. Stir in the chopped walnuts (if using).
Step 5
Pour the batter into the prepared cake pans or baking dish.
Step 6
Bake for 25-30 minutes for the cake pans or 35-40 minutes for the baking dish, or until a toothpick inserted into the center of the cake comes out clean.
Step 7
Let the cakes cool completely in the pans before removing and frosting.
Step 8
Spread a layer of cream cheese frosting over one cake layer, then place the second cake layer on top and frost the top and sides of the cake.
Step 9
Serve and enjoy your delicious carrot cake!