Spiced, fruity, sweet, and full of texture—just the way carrot cake should be! This Carrot Cake with Pineapple and Coconut is a cozy-meets-tropical dessert with the perfect balance of flavor and comfort. It’s the kind of cake that feels right at home at a holiday table or wrapped up for a sweet weekday dessert.

Jump to:
Meet me at the corner where cozy meets fresh, and classic comfort gets some tropical flair. This carrot cake recipe with pineapple and coconut has been a go-to in my kitchen for years. It’s super moist, packed with texture from carrots, crushed pineapple, shredded coconut, and a hint of zesty orange—like the classic version cake you love, but with a bright, island-inspired spin.
And of course, we can’t forget the most classic elements of all: tangy cream cheese frosting and crunchy walnuts. Whether you’re baking it for a holiday, a get-together, or just because you’re needing something sweet and spiced, this cake doesn’t disappoint.
Craving more cake? Try our Chocolate Mint Cake, Banana Layer Cake, or this festive Gingerbread Cake next!
Why You’ll Love this Recipe
- Classic Favorite: Recognized by many, this cake recipe is a time-honored dessert that’s always a hit. It never fails to get rave reviews.
- Exceptionally Moist: Crushed pineapple and shredded carrots don’t just bring sweetness—they make this cake ultra-moist with a soft, tender crumb. No dry bites here!
- Tons of Texture: From chewy coconut and crunchy walnuts to the rich, soft cake, every bite delivers big on texture. And of course, it’s all topped with a thick layer of tangy and velvety cream cheese frosting.

Ingredients
- Flour and Baking Soda: All-purpose flour gives the pineapple carrot cake structure, while baking soda acts as the leavening agent, reacting with the acidic ingredients to create a light and fluffy texture.
- Eggs: The main binder in the batter, eggs help the cake hold its shape while adding richness, moisture, and a bit of density.
- Buttermilk: Lightens up the batter for a fluffier crumb and adds just the right tang to balance all that sweetness. Don’t have buttermilk? Add ¾ tablespoon lemon juice or vinegar to ¾ cup milk and let it sit for 10 minutes—boom, homemade buttermilk!
- Oil and Butter: Vegetable oil keeps the cake tender and prevents it from drying out, while butter is essential for the smooth, rich consistency of the cream cheese frosting.
- Cream Cheese: The signature ingredient of that classic frosting! It brings tangy flavor and velvety texture that pairs perfectly with the warm spices in the cake.
- Sugars: Granulated sugar sweetens the batter, retains moisture, and helps create a tender crumb. Powdered sugar sweetens and thickens the cream cheese frosting for that perfectly smooth finish.
- Cake Mix-Ins: Crushed pineapple and shredded carrots make the cake extra soft and moist, while coconut flakes add subtle sweetness and walnuts bring that satisfying nutty crunch.
- Vanilla and Orange Zest: Vanilla adds warmth and depth to both the cake and frosting, while orange zest brings a bright, citrusy zing and more color.
- Salt and Spice: A pinch of salt balances all the sweet flavors, and cinnamon adds that cozy, familiar spice that makes this cake so cozy.
See the recipe card below for exact ingredient amounts, nutritional information, and detailed instructions.
Variations
- Nut- or Coconut-Free: Skip the walnuts if you’re baking for someone with allergies or just not a fan—there’s still plenty of texture from the carrots and pineapple. Not into coconut? Simply leave it out; the cake will still be moist and flavorful without it.
- Add Dried Fruit: Want a chewy bite and extra sweetness? Fold in raisins, golden raisins, dried cranberries, or even chopped dried pineapple for a fun, fruity spin.
- Amp up the Spice: For bolder flavor, boost the cinnamon and add a pinch of nutmeg, cloves, allspice, or ginger. It adds depth and warmth to every slice.
- Different Cake Styles: Bake it your way! Turn it into a 9×13 sheet cake, make cupcakes for easy serving, or go all-out with a two- or three-layer cake. Just keep an eye on the bake time based on your pan size.

How to Make Carrot Cake with Crushed Pineapple and Coconut
It may look bakery-worthy, but it’s surprisingly simple to make! With a few basic ingredients, fun mix-ins, and easy steps, this cake might just become favorite! Preheat your oven to 350ºF, lightly grease a tube pan with cooking spray, gather your ingredients, and let’s get baking:
- Step 1: Mix the Dry Ingredients. Whisk together the flour, baking soda, salt, and cinnamon in a medium mixing bowl.
- Step 2: Combine the Wet Ingredients. Beat the eggs, vegetable oil, buttermilk, sugar, and vanilla in another mixing bowl on low speed until well combined.
- Step 3: Make the Batter. Gradually mix the dry ingredients into the wet ingredients until smooth. Gently fold in the grated carrots, shredded coconut, crushed pineapple, and chopped walnuts until evenly distributed.
- Step 4: Prep and Bake. Pour the batter into the greased tube pan and bake at 350ºF for 50–55 minutes, or until a toothpick inserted into the center comes out clean.
- Step 5: Make the Frosting. While the cake bakes, beat the butter and cream cheese in a medium bowl until light and fluffy. Then, add the vanilla and powdered sugar, and beat again until smooth and creamy.
- Step 6: Cool, Decorate and Serve. Let the cake cool completely in the pan, then carefully turn it out onto a serving plate. Frost as thick or thin as you like, sprinkle with extra walnuts, and slice it up!
Expert Tips
- Shred Finely: For the best texture, use the fine side of a grater when shredding carrots. Smaller shreds blend into the batter better, making the cake ultra-moist without big carrot chunks. If you like a more rustic texture, feel free to use the side with the larger holes!
- Drain the Pineapple Well: Pineapple adds amazing flavor and moisture, but too much juice can affect the cake’s texture. To drain it well, line a colander with paper towels and add the pineapple. Gently blot the top of the pineapple with another paper towel.
- Press the Walnuts: To decorate with walnuts, wash and dry your hands, then gently press the chopped walnuts into the frosting and sprinkle a few over the top.
- Storing and Freezing: Store leftover cake in an airtight container in the fridge for up to 6 days. Since the frosting has cream cheese, refrigeration is best. To freeze, chill the cake first, wrap it in plastic wrap, and place in a freezer-safe container. It’ll keep for up to 3 months.

Serving Suggestions
This coconut carrot cake holds its own—just slice and serve! It’s rich, flavorful, and satisfying all by itself. But if you’re feeling a little fancy or just need some serving inspiration, here are a few delicious ways to pair it:
- Serve each slice with pineapple chunks, or a sprinkle of toasted coconut for a more festive touch.
- Keep the tropical theme going with a refreshing drink like blackberry lemonade, a pineapple milkshake, or this strawberry peach smoothie.
- Build a dessert spread to please every sweet tooth with treats like peanut butter butterscotch chocolate crispies, apple fritter bites, and brownie cookies.
- Multitask your next meal—while the cake bakes, whip up easy air fryer favorites like French bread pizza, smoked sausage, or chicken flautas.
Recipe FAQs
Walnuts are the classic pick, but pecans or sliced almonds are great swaps. They bring a similar buttery crunch and pair perfectly with the warm spices and tropical mix-ins.
Absolutely! This cake holds up well if you bake it a day or two in advance and store it in the fridge. For the best texture and presentation, wait to frost it until you’re ready to serve—and be sure to bring the frosting to room temperature first so it spreads easily.
For neat slices, chill the cake in the fridge for at least 30 minutes before cutting—it helps firm up the frosting. Then, use a sharp knife dipped in hot water and wiped clean between slices.
Try This Tropical Carrot Cake for Yourself
This tropical version of a classic is absolutely one of the best recipes you’ll ever try. The pineapple, coconut, and orange zest add an incredible depth of flavor, and the pineapple adds such a moistness to the cake. It’s so good! Give this recipe a try, and I’m sure your family will be begging for it again and again.

More Fruit-Inspired Dessert Recipes
This cake is adapted from Great Grub, Delicious Treats.
If you try this recipe and love it, please be sure to leave a 5 ⭐️⭐️⭐️⭐️⭐️ rating below and comment! You can also pin it to save it for later. Also, you can follow us on Pinterest, Facebook, Instagram and YouTube. Remember to “like” or “follow” us on all social media.

Carrot Cake with Pineapple and Coconut
Ingredients
For the Cake
- 2 cups all purpose flour
- 2 tsp baking soda
- ½ tsp salt
- 2 tsp cinnamon
- 3 eggs, slightly beaten
- ¾ cups vegetable oil
- ¾ cup buttermilk
- 2 cups sugar
- 2 tsp vanilla
- 20 oz crushed pineapple, drained
- 2 cups carrots, finely shredded
- 1½ cups coconut flakes
- 1 tsp orange zest
- 1 cup walnuts, chopped, plus additional for topping
For the Cream Cheese Frosting
- ½ cup butter, room temperature
- 8 oz cream cheese, room temperature
- 1 tsp vanilla
- 2 cups powdered sugar
Instructions
For the Cake
- Preheat oven to 350º and spray a tube pan with cooking spray.
- In a medium bowl whisk flour, baking soda, salt, and cinnamon together.
- In a large bowl combine eggs, vegetable oil, buttermilk, sugar, and vanilla. Beat on low until well combined.
- Add dry ingredients into the large bowl. Mix on low until fully combined with wet ingredients.
- Fold in grated carrots, coconut, pineapple, and chopped walnuts and stir.
- Pour batter into prepared tube pan and bake for 50-55 minutes or until toothpick inserted into the cake comes out clean.
- Remove from oven and let cool completely before adding frosting and additional walnuts, if desired.
For the Buttercream Frosting
- In a medium bowl beat butter and cream cheese until light and fluffy.
- Add vanilla and powdered sugar, beat until smooth.
Video
Notes
- Finely shred carrots for a smoother, ultra-moist cake. Larger shreds give a more rustic texture—your choice!
- Drain pineapple well to avoid excess moisture.
- Press chopped walnuts into the frosting for easy decorating, then sprinkle a few on top.
- Store in the fridge for up to 6 days. To freeze, chill first, wrap well, and store for up to 3 months.












I LOVE carrot cake! This looks so moist and delicious! What a perfect dessert ^_^