Print

The Ultimate Moist Carrot Cake with Classic Cream Cheese Frosting Recipe

Close-up of a thick slice of moist carrot cake recipe layered with cream cheese frosting.

5 Stars 4 Stars 3 Stars 2 Stars 1 Star

No reviews

Follow this reliable recipe to bake the best homemade carrot cake, guaranteed to be incredibly moist and perfectly spiced. We include the steps for the classic, creamy cream cheese frosting that makes this dessert a family favorite.

Ingredients

Scale
  • 2 cups all-purpose flour
  • 2 cups granulated sugar
  • 1 teaspoon baking soda
  • 1 teaspoon baking powder
  • 1 teaspoon ground cinnamon
  • 1/2 teaspoon ground nutmeg
  • 1/2 teaspoon salt
  • 4 large eggs
  • 1 cup vegetable oil
  • 2 cups finely grated carrots (about 45 medium carrots)
  • 1/2 cup chopped walnuts or pecans (optional)
  • 1/2 cup raisins (optional)

For the Cream Cheese Frosting

  • 8 ounces cream cheese, softened
  • 1/2 cup unsalted butter, softened
  • 4 cups powdered sugar, sifted
  • 1 teaspoon vanilla extract
  • 1 tablespoon milk (if needed for consistency)

Instructions

  1. Preheat your oven to 350°F (175°C). Grease and flour two 9-inch round cake pans or line them with parchment paper.
  2. In a large bowl, whisk together the flour, sugar, baking soda, baking powder, cinnamon, nutmeg, and salt.
  3. In a separate bowl, lightly beat the eggs, then whisk in the vegetable oil until combined.
  4. Pour the wet ingredients into the dry ingredients. Mix on low speed until just combined. Do not overmix.
  5. Gently fold in the grated carrots, nuts, and raisins, if using. The batter will be thick.
  6. Divide the batter evenly between the prepared cake pans.
  7. Bake for 30 to 35 minutes, or until a wooden pick inserted into the center comes out clean.
  8. Let the cakes cool in the pans for 10 minutes before inverting them onto a wire rack to cool completely.
  9. While the cakes cool, prepare the frosting: Beat the softened cream cheese and butter together in a medium bowl until smooth and creamy.
  10. Gradually add the sifted powdered sugar, mixing until fully incorporated.
  11. Beat in the vanilla extract. If the frosting is too thick, add milk one teaspoon at a time until you reach a smooth, spreadable consistency.
  12. Once the cakes are completely cool, place one layer on a serving plate. Spread about one-third of the frosting over the first layer. Top with the second cake layer.
  13. Frost the top and sides of the entire cake with the remaining cream cheese frosting.

Notes

  • For the moist carrot cake secret: Use vegetable oil instead of butter in the cake batter; the oil keeps the cake tender longer.
  • Grate your carrots finely; this helps them blend into the batter and adds moisture without large chunks.
  • To ensure a flavorful cake, use fresh spices like cinnamon and nutmeg.
  • If you skip the nuts and raisins, add 1/4 cup of crushed pineapple (drained well) to the batter for extra moisture and flavor.

Nutrition