Step 1: Preheat and Prepare
Preheat your oven to 350°F (175°C). Grease and flour two 9-inch round cake pans or line them with parchment paper.
Step 2: Mix the Dry Ingredients
In a large bowl, whisk together the flour, baking powder, baking soda, salt, cinnamon, and nutmeg.
Step 3: Mix the Wet Ingredients
In another bowl, beat the sugar, eggs, and oil until well combined. Stir in the vanilla extract.
Step 4: Combine and Fold
Gradually mix the dry ingredients into the wet mixture. Fold in the grated carrots and chopped nuts (if using) until evenly distributed.
Step 5: Bake the Cake
Divide the batter evenly between the prepared pans. Bake for 30-35 minutes, or until a toothpick inserted in the center comes out clean. Let the cakes cool in the pans for 10 minutes, then transfer to a wire rack to cool completely.
Step 6: Make the Frosting
Beat the cream cheese and butter together until smooth. Gradually add the powdered sugar and vanilla extract, beating until creamy and spreadable.
Step 7: Assemble and Frost
Place one cake layer on a serving plate, spread some frosting on top, then add the second layer. Frost the top and sides evenly.
Step 8: Serve and Enjoy
Slice and serve your delicious Classic Carrot Cake!