The BEST Carrot Cake and Cream Cheese Frosting Recipe
Introduction
This carrot cake with cream cheese frosting is a crowd-pleaser that stays moist and flavorful from the first bite to the last. Shredded carrot, pineapple, and coconut give it tropical warmth, while a plush cream cheese frosting brings a perfect tang. It’s a classic dessert that comes together with reliable, home-kitchen ease.

Ingredients
- 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
- 2 8 oz blocks cream cheese, softened to room temperature
- ½ cup (1 stick) unsalted butter, softened
- 1 tsp vanilla extract
- 2 cups powdered sugar, sifted
Instructions
- Step 1: Preheat the oven to 350°F (175°C). Grease and flour two 8-inch (or 9-inch) round cake pans, or line with parchment for easy removal.
- Step 2: Make the batter: in a large bowl, combine the shredded carrots, pineapple, coconut, both sugars, oil, eggs, and vanilla. Mix until smooth and well blended.
- Step 3: In a separate bowl, whisk together the flour, baking powder, baking soda, cinnamon, and salt. Gradually stir the dry ingredients into the wet ingredients, mixing just until incorporated. Do not overmix.
- Step 4: Bake: Divide the batter evenly between the prepared pans. Bake 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, then transfer to a wire rack to cool completely.
- Step 5: Prepare the frosting: In a stand mixer or with a hand mixer, beat the cream cheese and butter 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 smooth and creamy.
- Step 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. Smooth with a spatula or leave it rustic and swirled.
- Step 7: Optional finishing touch: Sprinkle crushed walnuts or a light dusting of cinnamon on top for extra texture and flavor.
Tips & Variations
- For extra moistness, substitute half of the oil with applesauce or yogurt.
- To save time, you can bake a single 9-inch cake and slice it into layers, or freeze baked layers for later assembly.
- Dusting the frosting with a pinch of cinnamon adds warm aroma without overpowering sweetness.
Storage
Store the cake tightly wrapped in the refrigerator for up to 4 days. Bring to room temperature before serving for best texture and cream cheese flavor.
How to Serve

Serve this delicious recipe with your favorite sides.
FAQs
Can I use fresh pineapple instead of canned?
Yes, you can use fresh pineapple, but drain well and chop finely to remove excess moisture. You may need to reduce the moist ingredients slightly to keep the batter from becoming too loose.
Can I make this cake ahead of time?
Yes. Bake and cool the cake layers, then refrigerate wrapped layers up to 2 days before frosting and assembling. The frosting can be prepared a day ahead and kept refrigerated.
PrintThe BEST Carrot Cake and Cream Cheese Frosting Recipe
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.
- Prep Time: 20 minutes
- Cook Time: 28 minutes
- Total Time: 48 minutes
- Yield: 12 servings 1x
- Category: Dessert
- Method: Baking
- Cuisine: American
- Diet: Vegetarian
Ingredients
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
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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

