Print

The Ultimate Moist Carrot Cake Recipe – With Cream Cheese Frosting!

5 Stars 4 Stars 3 Stars 2 Stars 1 Star

No reviews

This classic moist carrot cake recipe features tender layers packed with freshly grated carrots, warm spices, walnuts, and pineapple, all topped with the most incredible tangy cream cheese frosting. Perfect for any celebration!

Ingredients

Scale

For the Carrot Cake:

  • 2 cups all-purpose flour
  • 2 teaspoons baking powder
  • 1½ teaspoons baking soda
  • 1 teaspoon salt
  • 2 teaspoons ground cinnamon
  • ½ teaspoon ground nutmeg
  • ¼ teaspoon ground ginger
  • 4 large eggs, room temperature
  • 1½ cups granulated sugar
  • ½ cup packed light brown sugar
  • 1 cup vegetable oil
  • 2 teaspoons pure vanilla extract
  • 3 cups freshly grated carrots (about 5-6 medium carrots)
  • 1 cup crushed pineapple with juice (8 oz can)
  • 1 cup chopped walnuts, toasted
  • ½ cup sweetened shredded coconut (optional)

For the Cream Cheese Frosting:

  • 16 oz cream cheese, softened to room temperature
  • ½ cup unsalted butter, softened to room temperature
  • 4 cups powdered sugar, sifted
  • 2 teaspoons pure vanilla extract
  • Pinch of salt

Instructions

Prepare the Cake:

  1. Preheat and prep: Preheat your oven to 350°F (175°C). Grease two 9-inch round cake pans with butter or cooking spray, line the bottoms with parchment paper circles, and grease the parchment. Lightly dust with flour and tap out excess.
  2. Mix dry ingredients: In a large bowl, whisk together the flour, baking powder, baking soda, salt, cinnamon, nutmeg, and ginger until well combined with no lumps. Set aside.
  3. Combine wet ingredients: In another large bowl, whisk together the eggs, granulated sugar, and brown sugar until well combined and slightly lightened, about 1-2 minutes. Add the oil and vanilla extract, whisking until smooth and emulsified.
  4. Combine wet and dry: Pour the wet ingredients into the dry ingredients. Using a wooden spoon or rubber spatula, gently fold together until just combined. Don’t overmix—a few small lumps are fine. Overmixing will result in a tough cake.
  5. Add the mix-ins: Gently fold in the grated carrots, crushed pineapple with its juice, toasted walnuts, and coconut (if using). Fold until everything is evenly distributed throughout the batter. The batter will be thick and chunky—this is perfect!
  6. Divide and bake: Divide the batter evenly between the prepared pans, smoothing the tops with a spatula. Tap the pans gently on the counter a few times to release any air bubbles. Bake for 30-35 minutes, or until a toothpick inserted into the center comes out clean or with just a few moist crumbs. The cakes should spring back when gently pressed.
  7. Cool completely: Let the cakes cool in the pans on wire racks for 15 minutes. Then carefully run a knife around the edges and invert the cakes onto the racks. Remove the parchment paper and let them cool completely before frosting—at least 1 hour. This is crucial! Frosting warm cake will result in a melty mess.

Make the Cream Cheese Frosting:

  1. Beat cream cheese and butter: In a large bowl using an electric mixer, beat the softened cream cheese and butter together on medium-high speed until completely smooth and creamy, about 2-3 minutes. Scrape down the sides of the bowl as needed.
  2. Add sugar and vanilla: With the mixer on low speed, gradually add the sifted powdered sugar, about 1 cup at a time, mixing well after each addition. Add the vanilla extract and a pinch of salt. Once all the sugar is incorporated, increase speed to medium-high and beat for 2-3 minutes until the frosting is light, fluffy, and perfectly smooth.

Assemble the Cake:

  1. Level the cakes (optional): If your cakes have domed tops, use a serrated knife to carefully level them for easier stacking.
  2. Frost the first layer: Place one cake layer on a serving plate or cake stand. Spread about 1½ cups of frosting evenly over the top, going all the way to the edges.
  3. Add second layer: Carefully place the second cake layer on top, flat side up. Gently press down to secure.
  4. Frost the outside: Use the remaining frosting to cover the top and sides of the cake. Start with a thin crumb coat (a very thin layer to seal in crumbs), then chill for 15 minutes. Apply the final layer of frosting, swirling it decoratively with an offset spatula or the back of a spoon.
  5. Decorate and chill: Garnish with additional chopped walnuts, a sprinkle of cinnamon, or carrot decorations if desired. Refrigerate the cake for at least 30 minutes before slicing for clean, beautiful cuts.

Notes

  • Room temperature ingredients: Make sure your eggs, cream cheese, and butter are truly at room temperature for the best texture. Cold ingredients won’t incorporate properly.
  • Don’t overmix: Once you add the wet ingredients to dry, mix only until just combined. Overmixing develops gluten and creates a tough, dense cake.
  • Fresh carrots are essential: Pre-shredded carrots are too dry. Grate your own carrots for maximum moisture.
  • Toast your nuts: Toasting walnuts at 350°F for 8-10 minutes brings out their flavor and adds extra crunch.
  • Cake keeps beautifully: Store covered in the refrigerator for up to 5 days. The flavor actually improves after a day!
  • Make it ahead: Bake the cake layers a day in advance, wrap tightly, and frost the next day for easier party prep.

Nutrition