The BEST Carrot Cake and Cream Cheese Frosting Recipe
Introduction
This carrot cake with cream cheese frosting is a crowd-pleasing classic that stays moist and flavorful. It combines spice, tropical pineapple, and coconut with a lush, creamy frosting for a showy, comforting dessert.

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 round cake pans, or line with parchment for easy removal.
- Step 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.
- Step 3: 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.
- Step 4: Bake: 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.
- Step 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.
- 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. Use a spatula to smooth it out or leave it rustic and swirled.
- Step 7: Optional finishing touch: Sprinkle the top with crushed walnuts or a light dusting of cinnamon for extra texture and flavor.
Tips & Variations
- For a lighter option, reduce the sugar slightly or substitute applesauce for part of the oil.
- Keep the cake moist by wrapping cooled layers tightly and refrigerating before frosting if you prefer a colder finish.
- Try adding chopped pecans or walnuts to the batter for added crunch.
Storage
Store refrigerated in an airtight container for up to 4 days. Bring to room temperature before serving for best texture and flavor. The frosting helps keep the cake moist when chilled, but it’s best enjoyed within a couple of days of assembly.
How to Serve

Serve this delicious recipe with your favorite sides.
FAQs
Can I make this ahead of time?
Yes. Bake the cake layers in advance and wrap them well. Frost and assemble shortly before serving for the freshest texture, or refrigerate unfrosted layers and frost the day you plan to serve.
Can I freeze the cake?
Frozen frosting can harden, so it’s best to freeze unfrosted layers separately. Wrap layers tightly and freeze for up to 2 months. Thaw, then frost and assemble for serving.
Print
The BEST Carrot Cake and Cream Cheese Frosting Recipe
- Total Time: 1 hour 25 minutes to 1 hour 40 minutes
- Yield: 12 servings 1x
- Diet: Vegetarian
Description
A moist, crowd-pleasing carrot cake packed with crushed pineapple and shredded coconut, crowned with a rich cream cheese buttercream frosting. Perfect for celebrations or a comforting weekend bake.
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
Instructions
- Preheat and prep, 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.
- Batter assembly, 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, 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.
- Frosting prep, In a stand mixer or with a 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.
- Finishing touches, Optional finishing touch: Sprinkle the top with crushed walnuts or a light dusting of cinnamon for extra texture and flavor.
Notes
- For a taller cake, use 3 cake layers and adjust bake time accordingly.
- Room temperature ingredients help achieve a smooth frosting; if your butter and cream cheese are straight from the fridge, allow extra time to soften.
- To prevent cracking, avoid overmixing the batter once the dry ingredients are added.
- Store leftovers covered in the refrigerator for up to 4 days; bring to room temperature before serving for best flavor.
- Prep Time: 25 minutes
- Cook Time: 25-28 minutes per layer
- Category: Dessert > Cakes
- Method: Baking
- Cuisine: American
Keywords: carrot cake, cream cheese frosting, pineapple, coconut, layered cake, cinnamon, no-special-diet

