Preheat oven to 350°F (175°C).
In a medium bowl, whisk together flour, baking powder, baking soda, cinnamon, nutmeg, and salt.
In a separate large bowl, beat eggs, sugar, and oil until smooth.
Fold the dry ingredients into the wet mixture until just combined.
Stir in grated carrots and optional nuts or raisins.
2. Bake
Pour the batter into a greased 9×13-inch or round cake pan.
Bake for 30–35 minutes, or until a toothpick inserted in the center comes out clean.
Let the cake cool completely before frosting.
3. Make the Frosting
In a bowl, beat cream cheese and butter until smooth and creamy.
Gradually add powdered sugar and vanilla extract, mixing until fully combined.
4. Frost and Serve
Spread frosting evenly over the cooled cake.
Sprinkle with extra chopped nuts if desired.
Slice, serve, and enjoy this classic, moist, and flavorful carrot cake.
