Print

The BEST Carrot Cake and Cream Cheese Frosting Recipe

★★★★★

4.7 from 63 reviews

A decadent two-layer carrot cake soaked with crushed pineapple and coconut, finished with a rich cream cheese frosting. Moist, spicy, and perfectly sweet, this classic dessert is finished with optional walnuts for a crunchy finish.

Ingredients

Scale

Cake Batter

  • 2 cups shredded carrots
  • 8 oz canned crushed pineapple, drained
  • 1 cup sweetened shredded coconut
  • 1 cup granulated sugar
  • ½ cup brown sugar
  • 1 cup vegetable oil
  • 4 large eggs, room temperature
  • 2 tsp vanilla extract
  • 2 cups all-purpose flour
  • 2 tsp baking powder
  • 2 tsp baking soda
  • 1½ tsp ground cinnamon
  • 1 tsp salt

Cream Cheese Frosting

  • 2 8 oz blocks cream cheese, softened to room temperature
  • ½ cup unsalted butter, softened
  • 1 tsp vanilla extract
  • 2 cups powdered sugar, sifted

Optional Toppings

  • Crushed walnuts or a light dusting of cinnamon

Instructions

  1. Preheat and prepare pans, Preheat the oven to 350°F (175°C). Grease and flour two 8-inch (or 9-inch) round cake pans, or line with parchment paper for easy removal.
  2. Make the batter, In a large mixing bowl, combine the shredded carrots, pineapple, coconut, both sugars, oil, eggs, and vanilla. Mix until smooth and well combined.
  3. Combine dry ingredients, In a separate bowl, whisk together the flour, baking powder, baking soda, cinnamon, and salt. Gradually stir the dry mixture into the wet ingredients, mixing until just incorporated. Be careful not to overmix.
  4. Bake the cake, Divide the batter evenly between the prepared pans. Bake for 25 to 28 minutes, or until a toothpick inserted in the center comes out clean. Let the cakes cool in the pans for 10 minutes before transferring to a wire rack to cool completely.
  5. Prepare the frosting, Using a stand mixer or hand mixer, beat the cream cheese and butter together on high speed until light and fluffy, about 5 minutes. Add the vanilla and sifted powdered sugar, then continue mixing for another 2 minutes until the frosting is smooth and creamy.
  6. Assemble the cake, Place one cooled cake layer on a serving plate. Spread a generous layer of frosting over the top. Add the second cake layer, then frost the top and sides of the cake. Use a spatula to smooth it out or leave it rustic and swirled.
  7. Finish, Optional finishing touch: Sprinkle the top with crushed walnuts or a light dusting of cinnamon for extra texture and flavor.

Notes

  • Let the cream cheese frosting come to room temperature before using for easier spreading.
  • For a taller cake, you can double the recipe and bake in three 8-inch pans, adjusting bake time to 22–26 minutes.
  • Store leftovers covered in the refrigerator for up to 4 days; bring to room temperature before serving for best texture.

Keywords: carrot cake, cream cheese frosting, pineapple, coconut, walnuts, dessert