Start by preheating your oven to 350°F (175°C). Prepare your baking pans of choice by greasing and flouring two 9-inch round pans or a 9x13-inch pan.
In a large bowl, whisk together the flour, sugar, baking soda, cinnamon, baking powder, and salt.
In a separate bowl, blend oil, eggs, and vanilla extract. Gradually incorporate into dry ingredients until just mixed.
Gently fold in the grated carrots and, if desired, walnuts.
Divide the batter evenly among the prepared pans. Bake for 30-35 minutes (round pans) or 40-45 minutes (9x13-inch pan), until a toothpick comes out clean from the center. Let the cakes cool fully before applying frosting.
Beat cream cheese and butter in a large bowl until smooth. Slowly mix in powdered sugar and vanilla extract. Adjust with milk for desired frosting thickness.
Once cooled, generously spread frosting over cake layers, ensuring even coverage. Add additional frosting between layers for a layer cake.
Recipe Video
Notes
This scrumptious carrot cake pairs perfectly with hot beverages or can be savored as the grand finale of any meal.