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.


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.
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

- 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
- Shred the carrots with a box grater or food processor.
- Beat together the oil and sugar, then add the eggs one at a time.
- In a separate bowl, whisk together the flour, baking soda, salt, cinnamon, nutmeg, and cloves.
- Stir the dry ingredients into the oil and sugar mixture until combined.
- Fold in the grated carrots, shredded coconut, and walnuts.
- 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
- Beat the softened cream cheese and softened butter until smooth and creamy.
- Add the powdered sugar, vanilla, and salt, then beat until fluffy.
- Mix in the shredded coconut and chopped walnuts.
- Spread the coconut cream cheese frosting over the completely cooled cake.
- Slice and serve.
Frequently Asked Questions
Sweetened shredded coconut makes the cake a little sweeter, while unsweetened shredded coconut keeps the sweetness more balanced. Either option works in this recipe.
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.
No. The coconut adds gentle flavor and chewy texture, but the cake still tastes like classic spiced carrot cake.
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.

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

Coconut Carrot Cake Recipe with Coconut Frosting
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
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
More Treats for Coconut Fans
-
Coconut Pineapple Poke Cake
-
Twinkie Cake
-
Coconut Poke Cake
-
Grandma’s Chewy Coconut Bars









