This classic carrot cake is wonderfully moist and warmly spiced, topped with rich cream cheese frosting. It's a timeless favorite perfect for any celebration.
Preheat your oven to 350°F (175°C). Grease two 9-inch round cake pans and line the bottoms with parchment paper rounds.
In a medium bowl, whisk together the flour, baking soda, cinnamon, nutmeg, and salt. Set aside.
In a large bowl, whisk the vegetable oil, granulated sugar, brown sugar, eggs, and vanilla extract until smooth and well combined.
Add the dry ingredients to the wet ingredients and stir until just combined. Fold in the grated carrots and chopped pecans until evenly distributed throughout the batter.
Divide the batter evenly between the two prepared pans. Bake for 30 to 35 minutes, until a toothpick inserted into the center comes out clean.
Let the cakes cool in the pans for 10 minutes, then turn them out onto wire racks. Remove the parchment paper and let the layers cool completely before frosting.
Make the frosting by beating the cream cheese and butter together on medium speed until light and fluffy, about 2 minutes. Add the powdered sugar and vanilla extract, then beat on low speed until combined. Increase to medium-high and beat for another minute until smooth and creamy.
Place one cake layer on a serving plate and spread a thick, even layer of frosting on top. Set the second layer on top and frost the top and sides generously. For a rustic look, use the back of a spoon to create gentle swirls in the frosting.