- Preheat your oven to 350°F (175°C). Grease and flour two 9-inch round cake pans.
- In a large mixing bowl, whisk together the flour, sugar, baking powder, baking soda, salt, cinnamon, and nutmeg.
- In another bowl, beat together the eggs, vegetable oil, and vanilla extract.
- Add the wet ingredients to the dry ingredients and mix until just combined.
- Fold in the grated carrots, crushed pineapple, shredded coconut (if using), and chopped nuts (if using).
- Divide the batter evenly between the prepared cake pans.
- Bake in the preheated oven for 25-30 minutes or until a toothpick inserted into the center comes out clean.
- Allow the cakes to cool in the pans for 10 minutes, then transfer them to a wire rack to cool completely.
For the Cream Cheese Frosting:
- In a large bowl, beat together the cream cheese and butter until creamy and smooth.
- Add the powdered sugar gradually, beating well after each addition.
- Mix in the vanilla extract until well combined.
Assembly:
- Once the cakes are completely cool, spread a layer of cream cheese frosting on top of one cake layer.
- Place the second cake layer on top and frost the top and sides of the entire cake.
- Optional: Garnish with additional chopped nuts or shredded coconut.
- Slice and serve!
Enjoy your homemade carrot cake! Feel free to customize it by adding raisins, adjusting the amount of spice, or including other mix-ins according to your preferences.