Moist Coconut Carrot Cake with Cream Cheese Frosting

Coconut Carrot Cake is a rich, tender carrot cake made with shredded coconut in both the cake and the cream cheese frosting. Freshly grated carrots, warm spices, coconut, and walnuts give every bite a soft texture with just the right amount of crunch. If you enjoy classic carrot cake and love coconut, this easy coconut carrot cake recipe is a wonderful dessert to bake and share.

slice of carrot cake with a thick white cream cheese frosting with coconut inside on top.
woman scooping pistachio salad into a parfait dish, with colorful vintage bowls in the background.
A Must-Try Carrot Cake for Coconut Fans

Coconut Carrot Cake has everything people love about a traditional carrot cake: warm cinnamon, nutmeg, cloves, plenty of grated carrots, and a moist, tender crumb. The shredded coconut and chopped walnuts add extra texture, making the cake feel a little more special while still keeping the familiar flavor of a classic carrot cake.

The coconut is used twice in this recipe: once in the cake batter and again in the cream cheese frosting. The frosting is smooth, tangy, and rich, with shredded coconut stirred in for flavor and texture. It complements the spiced carrot cake beautifully without overwhelming it.

This recipe is baked in a 13×9-inch pan, which makes it easy to slice and serve. You can also bake it as a bundt cake, two 9-inch round layers, or cupcakes. Because the cake and frosting are both rich, small slices are usually plenty.

Enjoy! Kate

Kate’s Tips for Making the Cake

  • Set out the cream cheese and butter when you begin making the cake. By the time the cake is ready to frost, they should be softened and easier to beat into a creamy frosting.
  • Do not use pre-shredded carrots from the grocery store. They are usually too thick and dry for this cake. Shred whole carrots with a box grater or a food processor for the best texture.
  • The recipe includes walnuts in both the cake and the frosting. They add crunch and pair well with coconut, but chopped pecans can be used instead. You can also leave the nuts out completely.

Ingredients

shredded carrots, coconut, flour, butter, eggs, and other ingredients.
  • Use a box grater or food processor to shred the carrots. The medium holes of a box grater work well.
  • Unsweetened shredded coconut keeps the cake from becoming overly sweet, but sweetened coconut also works.
  • Full-fat cream cheese gives the frosting the richest flavor and creamiest texture.

How to Make Coconut Carrot Cake

  • shredded carrots near a box grater.
  • yellow cake batter in a metal bowl.
  • flour and cinnamon mixture in a metal bowl.
  • brown batter with cinnamon in a metal bowl.
  • batter with carrots in a metal bowl.
  • baked carrot cake in a white baking dish.
  1. Shred the carrots with a box grater or food processor.
  2. Beat together the oil and sugar, then add the eggs one at a time.
  3. In a separate bowl, whisk together the flour, baking soda, salt, cinnamon, nutmeg, and cloves.
  4. Stir the dry ingredients into the oil and sugar mixture until combined.
  5. Fold in the grated carrots, shredded coconut, and walnuts.
  6. Pour the batter into a greased 13×9-inch pan and bake at 350°F for 42–46 minutes, or until a toothpick inserted in the center comes out clean.

Making the Cream Cheese Frosting with Coconut

  • smooth cream cheese frosting on the beater of a stand mixer.
  • chunky cream cheese frosting with coconut in it, on the beater of a stand mixer.
  • cake frosted with a white coconut cream cheese frosting in a white baking dish.
  • slice of carrot coconut cake with a thick layer of coconut cream cheese frosting.
  1. Beat the softened cream cheese and softened butter until smooth and creamy.
  2. Add the powdered sugar, vanilla, and salt, then beat until fluffy.
  3. Mix in the shredded coconut and chopped walnuts.
  4. Spread the coconut cream cheese frosting over the completely cooled cake.
  5. Slice and serve.

Frequently Asked Questions

What type of coconut should I use?

Sweetened shredded coconut makes the cake a little sweeter, while unsweetened shredded coconut keeps the sweetness more balanced. Either option works in this recipe.

Can I leave out the walnuts or use another nut?

Yes. You can omit the walnuts if you prefer a nut-free cake, though the texture will be softer. Chopped pecans are also a good substitute.

Does the cake taste strongly like coconut?

No. The coconut adds gentle flavor and chewy texture, but the cake still tastes like classic spiced carrot cake.

Can I make this into a layer cake or cupcakes?

Yes. Bake the batter in two 9-inch round cake pans for about 35–40 minutes, or divide it among 24 muffin cups and bake for 20–24 minutes. There is enough frosting for either option.

square slice of carrot cake with a coconut cream cheese frosting spread on top.

Storing and Serving the Cake

This coconut carrot cake can be served shortly after frosting, or it can be refrigerated until you are ready to serve it. For the best frosting texture, let the refrigerated cake sit at room temperature for about 20–30 minutes before slicing. Store any leftovers in the refrigerator because of the cream cheese frosting.

For a simple decoration, sprinkle extra chopped walnuts or toasted coconut over the top before serving. The cake is rich, moist, and easy to cut into small squares, making it a great dessert for gatherings, holidays, or any occasion when you want a homemade carrot cake with coconut.

📖 Recipe

slice of carrot cake with a thick white cream cheese frosting with coconut inside on top.

Coconut Carrot Cake Recipe with Coconut Frosting

Published by Kate
Double the coconut makes this classic carrot cake extra flavorful. It is moist, spiced, and topped with a fluffy coconut cream cheese frosting.
Prep Time 20 mins
Cook Time 42 mins
Total Time 1 hr 2 mins
Course Dessert
Cuisine American
Servings 20 servings
Calories 518 kcal

Ingredients

For the cake:

  • 2 cups sugar
  • 1 cup vegetable oil
  • 4 eggs
  • 2 cups flour
  • 2 teaspoons baking soda
  • 1 teaspoon salt
  • 2 teaspoons cinnamon
  • 1 teaspoon ground nutmeg
  • 1 teaspoon cloves
  • 3 cups grated carrots, loosely packed, about 12 oz
  • ½ cup finely chopped walnuts
  • ½ cup shredded coconut

For the frosting:

  • 8 oz cream cheese, softened
  • ½ cup butter, softened
  • 4 cups powdered sugar
  • 1 teaspoon vanilla
  • ⅛ teaspoon salt
  • 1 cup finely chopped walnuts
  • 1 cup shredded coconut

Instructions

  • Preheat the oven to 350°F.
  • In a large bowl, beat the sugar and vegetable oil together. Add the eggs one at a time, beating after each addition.
  • In another large bowl, whisk together the flour, baking soda, salt, cinnamon, nutmeg, and cloves.
  • Stir the flour mixture into the sugar mixture just until combined.
  • Fold in the grated carrots, chopped walnuts, and shredded coconut.
  • Pour the batter into a greased 13×9-inch pan.
  • Bake for 42–46 minutes, or until a toothpick inserted in the center comes out clean. Cool for 10 minutes in the pan, then invert onto a wire rack and cool completely.
  • For the frosting, beat the softened cream cheese and softened butter until creamy. Add the powdered sugar, vanilla, and salt, and beat until fluffy. Stir in the chopped walnuts and shredded coconut.
  • Spread the frosting over the cooled cake.
  • Chill until ready to serve. For the best texture, let the cake sit at room temperature before serving.

Notes

Remove the cake from the refrigerator about 30 minutes before serving for the best frosting texture.

If you do not want to use walnuts, substitute pecans or leave the nuts out completely.

Cooking times for different pans:

  • Two 9-inch round cake pans: 35–40 minutes
  • 24 muffin cups for cupcakes: 20–24 minutes
  • Bundt pan: 45–48 minutes

There is plenty of frosting for any of these options.

Nutrition

Calories: 518 kcal
Carbohydrates: 59 g
Protein: 5 g
Fat: 31 g
Saturated Fat: 12 g
Polyunsaturated Fat: 11 g
Monounsaturated Fat: 6 g
Trans Fat: 0.3 g
Cholesterol: 56 mg
Sodium: 306 mg
Potassium: 183 mg
Fiber: 3 g
Sugar: 46 g
Vitamin A: 3552 IU
Vitamin C: 1 mg
Calcium: 39 mg
Iron: 1 mg
Keyword coconut carrot cake

More Treats for Coconut Fans

  • Coconut Pineapple Poke Cake
  • Twinkie Cake
  • Coconut Poke Cake
  • Grandma’s Chewy Coconut Bars