The coconut and carrot cake recipe has become one of my favorite ways to turn simple pantry ingredients into a special homemade dessert.
I love the soft carrot cake layers with crushed pineapple, coconut, warm spices, and crunchy nuts, especially when they are covered with creamy cream cheese frosting.
While testing the recipe, I found that finely grated carrots give the cake a softer and more even crumb than thicker shreds. That little detail made a noticeable difference in the finished cake.
The coconut coating adds a pretty finish and a little extra texture, making this coconut and carrot cake recipe I’m always happy to bring to the table.
About This Coconut And Carrot Cake Recipe
This coconut and carrot cake recipe has a classic homemade character with a generous layer of cream cheese frosting and coconut around the outside.
The flavor develops from the gentle warmth of cinnamon and ginger, while chopped nuts add little bits of contrast throughout the soft crumb.
I find the finished cake especially enjoyable after the frosting has had time to settle over the layers. The coconut gives the surface a delicate chew instead of making it overly sweet.
The coconut and carrot cake recipe is also a useful recipe for using pantry staples in a dessert that feels special enough for a family table.
Recipe Overview
Preparation Time: 25 minutes
Baking Time: 40 minutes
Total Time: About 1 hour 15 minutes, plus cooling
Course: Dessert
Difficulty: Easy
Cuisine: American
Cooking Style: Oven-baked
Recipe Type: Layer Cake
Main Ingredient: Carrots
Best Served: Chilled or at cool room temperature
Yield: 12 servings
Serving Size: 1 slice
Main Kitchen Utensils
- Two 9-inch round cake pans
- Mixing bowls
- Hand mixer or stand mixer
- Box grater
- Rubber spatula
- Measuring cups and spoons
- Whisk
- Cooling rack
- Offset spatula
- Cake turntable or serving plate

Ingredients
For the Cake
- 1 ¼ cups canned crushed pineapple, undrained
- 4 large eggs, room temperature
- 2 ¾ cups all-purpose flour
- 2 teaspoons baking soda
- 1 cup vegetable oil
- 1 ¾ cups white granulated sugar
- 2 ½ cups freshly shredded carrots
- ¾ cup sweetened shredded coconut
- 2 teaspoons vanilla extract
- ¾ cup chopped walnuts or pecans
- 1 ½ teaspoons ground cinnamon
- ½ teaspoon ground ginger
- 1 teaspoon baking powder
- ½ teaspoon salt
For the Cream Cheese Frosting
- ¾ cup unsalted butter, room temperature
- 8 ounces cream cheese, softened
- 3 ½ cups confectioners’ sugar
- 2 teaspoons vanilla extract
- 1 small pinch of salt
- 8 ounces unsweetened shredded coconut
Instructions
Step 1
Set the oven to 350°F (175°C). Grease two 9-inch round cake pans, then line the bottoms with parchment paper. Lightly grease the parchment so the baked layers release cleanly.
Step 2
Whisk the flour, baking soda, baking powder, cinnamon, ginger, and salt in a medium bowl. Break up any small lumps so the leavening and spices spread evenly through the flour.
Step 3
In a large bowl, whisk the eggs, sugar, vegetable oil, vanilla, and undrained crushed pineapple until blended. The pineapple liquid stays in the batter and contributes moisture.
Step 4
Add the dry mixture to the wet ingredients in portions, stirring gently after each addition. Fold in the shredded carrots, coconut, and chopped nuts with a spatula. Stop mixing as soon as no dry flour remains.
Step 5
Divide the batter evenly between the prepared pans and smooth the tops. Bake for 35 to 40 minutes, or until a toothpick inserted into the center comes out with only a few moist crumbs. Let the cakes rest in their pans for about 10 minutes.
Step 6
Turn the cakes onto a cooling rack and remove the parchment. Leave them until completely cool before adding the frosting. Warm cake can soften the cream cheese mixture and make the layers difficult to finish.
Step 7
Beat the softened butter and cream cheese until creamy. Add the confectioners’ sugar gradually, followed by vanilla and the pinch of salt. Continue mixing until smooth and thick enough to spread. If needed, let the frosting stand briefly at room temperature until it firms slightly.
Step 8
Place one cake layer on a serving plate and spread a layer of frosting over the top. Set the second layer above it and cover the top and sides with the remaining frosting. Press the unsweetened shredded coconut gently over the surface. Refrigerate the finished cake before slicing if a firmer frosting is preferred.
Nutrition Facts Of Coconut And Carrot Cake Recipe
| Calories | 620 calories |
| Protein | 7 grams |
| Carbohydrates | 78 grams |
| Fat | 32 grams |
| Saturated Fat | 14 grams |
| Cholesterol | 0.12 grams |
| Sodium | 0.42 grams |
| Fiber | 4 grams |
| Total Sugars | 53 grams |
What Makes It Special
The creamy frosting and lightly chewy coconut topping give this cake a lovely contrast in texture. The soft cake has enough structure to hold a generous layer of frosting while still cutting into neat slices.
Chopped nuts add little pockets of crunch throughout the tender crumb, while cinnamon and ginger bring a gentle warmth that balances the sweetness.
The crushed pineapple also helps keep the cake moist without making the crumb too dense. Finished with cream cheese frosting and coconut, the cake has a beautiful homemade look that feels special without needing complicated decoration.
Why People Like This Recipe
People like this coconut and carrot cake recipe because it feels homemade without requiring unusual ingredients or complicated decorating skills.
The generous size makes it useful when several people are coming over, and the finished cake can be prepared ahead for a gathering. It also gives plenty of room to adjust the nuts to suit different tastes.
For anyone who enjoys traditional carrot cake but wants something a little more generous, this version offers a familiar flavor with a fuller finish.
Expert Baking Tips
1. Grate the carrots fresh rather than using packaged shredded carrots. The fresh ones blend into the batter much better.
2. Let the eggs come to room temperature before mixing. Cold eggs can make the batter less smooth.
3. Once the flour goes in, mix only until everything comes together. Overmixing can make the cake heavier.
4. Give the pineapple a quick stir before measuring it so the fruit and juice are evenly distributed.
5. Start checking the cake near the end of the baking time. Every oven heats a little differently, so the toothpick test is more useful than relying only on the clock.
6. Make sure the cake layers are fully cool before frosting. I learned that even slightly warm cake can make the frosting slide around.
7. Keep the frosting slightly chilled while working with it. It spreads more neatly and gives the finished cake a cleaner appearance.

Serving Recommendations
Serve this coconut and carrot cake recipe in neat wedges on a dessert plate with a cup of coffee or tea. For a holiday table, add a few walnut or pecan pieces beside each slice for a little extra crunch.
For a richer dessert plate, pair a slice with a small scoop of vanilla ice cream. The cool ice cream works nicely with the spiced cake and creamy topping.
This coconut and carrot cake recipe also works well for Easter gatherings, birthdays, potlucks, afternoon tea, and family dinners.
For the cleanest presentation, use a sharp knife and wipe the blade between cuts. This keeps the layers looking tidy instead of dragging frosting across the sides.
Health Benefits
Carrots provide beta-carotene and other nutrients that support normal eye and immune function. Pineapple contributes vitamin C, while pecans or walnuts add unsaturated fats and a small amount of plant protein.
Coconut provides some fiber and minerals as well. Because this is still a frosted cake containing sugar, butter, and cream cheese, it is best enjoyed as a dessert rather than treated as a health food.
A modest slice can provide some nutrients from the fruit, vegetables, and nuts while keeping the portion reasonable.
Best Variations
1. Pineapple Pecan Carrot Cake
Replace the ¾ cup chopped walnuts or pecans with ¾ cup chopped pecans. For a slightly richer nut flavor, toast the pecans for 5–7 minutes at 350°F, then cool and chop them before adding them to the batter.
2. Raisin Coconut Carrot Cake
Add ½ cup raisins to the batter along with the shredded coconut. For softer raisins, soak them in warm water for 10 minutes, drain thoroughly, and pat them dry before stirring them into the mixture.
3. Orange Carrot Cake
Add 1 tablespoon finely grated orange zest to the wet ingredients. You can also add 1 tablespoon fresh orange juice, but avoid adding more because extra liquid can change the batter consistency.
4. Apple Carrot Cake
Peel and finely dice 1 small apple, about ½ cup, then fold it into the batter with the carrots. A firm apple such as Granny Smith works well because it holds its shape during baking without turning completely soft.
5. Extra-Spiced Carrot Cake
Keep the original 1½ teaspoons cinnamon and ½ teaspoon ginger, then add ¼ teaspoon ground nutmeg and ⅛ teaspoon ground cloves. These small additions give the cake a warmer spice profile without making the seasoning too strong.
Substitutions
➤ Fresh Carrots: If fresh carrots are not available, use 2½ cups finely grated zucchini. Squeeze out only the excess moisture before adding it to the batter.
➤ Ground Ginger: Replace ½ teaspoon ground ginger with 1 teaspoon freshly grated ginger. Add it with the wet ingredients so its flavor spreads evenly.
➤ Baking Soda: If needed, replace the 2 teaspoons baking soda with 6 teaspoons baking powder. Keep in mind that this can slightly change the cake’s texture and browning.
➤ Vanilla Extract: Use 2 teaspoons vanilla bean paste instead of vanilla extract. It provides a similar vanilla flavor with small vanilla-speckled pieces throughout the frosting or batter.
➤ Cream Cheese Frosting: For a lighter-tasting topping, replace the 8 ounces cream cheese with 8 ounces full-fat Greek yogurt. Drain the yogurt first until thick, then beat it with the butter and confectioners’ sugar.
Storage Recommendations
This coconut and carrot cake recipe has cream cheese frosting; keep it covered and refrigerated. Store it in an airtight container or cake carrier and enjoy it within 4 to 5 days.
For freezing, wrap unfrosted cake layers tightly in plastic wrap and place them in a freezer-safe bag or container. They can be frozen for up to 2 months. The frosting can be prepared separately and refrigerated until needed.
Take a refrigerated slice out about 15 to 20 minutes before serving so the coconut and carrot cake recipe can soften slightly while the frosting remains cool.
Frequently Asked Questions
Can I make this cake without nuts?
Yes. Simply leave out the walnuts or pecans. The cake will still have plenty of flavor from the carrots, pineapple, coconut, and spices.
Should I drain the crushed pineapple?
No. Use the pineapple with its juice as listed in the recipe. The liquid contributes moisture to the cake batter.
Can I use pre-shredded carrots?
Freshly grated carrots are preferable because they are more tender and moist. If using packaged shreds, grate them smaller before adding them.
Why did my cake sink slightly in the middle?
This can happen when the center has not baked fully or the oven door is opened too early. Check the middle with a toothpick near the end of the baking time and avoid opening the oven during the first part of baking.
Can I prepare the cake layers ahead of time?
Yes. Once completely cool, wrap the individual layers well and keep them refrigerated until you are ready to frost and assemble the cake.
Conclusion
This coconut and carrot cake recipe is a lovely one to keep in the recipe collection when a homemade dessert needs a little extra charm. The creamy topping, tender center, and coconut finish make it inviting from the first slice to the last.
Take your time with the cooling stage, since that small pause makes assembling the cake much easier. Once decorated, the coconut and carrot cake recipe is ready for a family dessert table, afternoon coffee, or a special celebration.
I hope this coconut and carrot cake recipe becomes one you return to whenever you want to bake something generous, comforting, and worth sharing.
Discover More Delicious Recipes
French Poodle Vinaigrette Recipe | Easy Homemade
Moist Luby’s Carrot Cake Recipe
Best Juicy Delmonico Roast Recipe
Old-Fashioned Butterscotch Bundt Cake Recipe

Coconut And Carrot Cake Recipe
Equipment
- Two 9-inch round cake pans
- Mixing bowls
- Hand mixer or stand mixer
- Box grater
- Rubber spatula
- Measuring cups and spoons
- Whisk
- Cooling rack
- Offset spatula
- Offset spatula
Ingredients
For the Cake
- 1 ¼ cups canned crushed pineapple undrained
- 4 large eggs room temperature
- 2 ¾ cups all-purpose flour
- 2 teaspoons baking soda
- 1 cup vegetable oil
- 1 ¾ cups white granulated sugar
- 2 ½ cups freshly shredded carrots
- ¾ cup sweetened shredded coconut
- 2 teaspoons vanilla extract
- ¾ cup chopped walnuts or pecans
- 1 ½ teaspoons ground cinnamon
- ½ teaspoon ground ginger
- 1 teaspoon baking powder
- ½ teaspoon salt
For the Cream Cheese Frosting
- ¾ cup unsalted butter room temperature
- 8 ounces cream cheese softened
- 3 ½ cups confectioners’ sugar
- 2 teaspoons vanilla extract
- 1 small pinch of salt
- 8 ounces unsweetened shredded coconut
Instructions
Step 1
- Set the oven to 350°F (175°C). Grease two 9-inch round cake pans, then line the bottoms with parchment paper. Lightly grease the parchment so the baked layers release cleanly.
Step 2
- Whisk the flour, baking soda, baking powder, cinnamon, ginger, and salt in a medium bowl. Break up any small lumps so the leavening and spices spread evenly through the flour.
Step 3
- In a large bowl, whisk the eggs, sugar, vegetable oil, vanilla, and undrained crushed pineapple until blended. The pineapple liquid stays in the batter and contributes moisture.
Step 4
- Add the dry mixture to the wet ingredients in portions, stirring gently after each addition. Fold in the shredded carrots, coconut, and chopped nuts with a spatula. Stop mixing as soon as no dry flour remains.
Step 5
- Divide the batter evenly between the prepared pans and smooth the tops. Bake for 35 to 40 minutes, or until a toothpick inserted into the center comes out with only a few moist crumbs. Let the cakes rest in their pans for about 10 minutes.
Step 6
- Turn the cakes onto a cooling rack and remove the parchment. Leave them until completely cool before adding the frosting. Warm cake can soften the cream cheese mixture and make the layers difficult to finish.
Step 7
- Beat the softened butter and cream cheese until creamy. Add the confectioners’ sugar gradually, followed by vanilla and the pinch of salt. Continue mixing until smooth and thick enough to spread. If needed, let the frosting stand briefly at room temperature until it firms slightly.
Step 8
- Place one cake layer on a serving plate and spread a layer of frosting over the top. Set the second layer above it and cover the top and sides with the remaining frosting. Press the unsweetened shredded coconut gently over the surface. Refrigerate the finished cake before slicing if a firmer frosting is preferred.
Notes
Nutrition Facts Of Coconut And Carrot Cake Recipe
Calories: 620 calories | Protein: 7 grams | Carbohydrates: 78 grams | Fat: 32 grams | Saturated Fat: 14 grams | Cholesterol: 0.12 grams | Sodium: 0.42 grams | Fiber: 4 grams | Total Sugars: 53 grams
Welcome! I’m Lipia, but my friends call me Koley, and you can, too! I’m a professionally trained recipe creator. Baking, cooking, writing, and teaching are my greatest passions, and I love sharing practical techniques that make every recipe easier to prepare.
My home in Bellville, Texas. I spend my days creating, testing, and refining dishes that bring people together around the table. My goal is to inspire confidence in the kitchen and help you enjoy homemade meals and desserts every day.