If you’re craving a dessert that’s rich, moist, and just bursting with flavor, this Easy Carrot Cake with Pineapple and Coconut is calling your name. It’s everything you want in a classic carrot cake, but with a sunny, tropical twist thanks to crushed pineapple and sweet coconut. The result? A cake that’s irresistibly tender, warmly spiced, and topped with the most luscious cream cheese frosting you’ve ever had. Whether it’s for Easter, a birthday, or just an ordinary Tuesday, this cake is guaranteed to steal the show.
You’ll love how easy this is to make—and how quickly it disappears at gatherings. Let’s dive in!
Ingredients
Let’s start with what you’ll need. This recipe comes together with pantry staples, fresh produce, and just the right touch of sweetness.
For the Cake:
- 2 cups all-purpose flour
- 2 teaspoons baking soda
- ½ teaspoon salt
- 2 teaspoons ground cinnamon
- ½ teaspoon ground nutmeg
- ½ teaspoon ground ginger (optional but adds depth)
- 1¼ cups vegetable oil (or any neutral oil)
- 1 cup granulated sugar
- 1 cup packed brown sugar
- 4 large eggs
- 2 teaspoons vanilla extract
- 2 cups freshly grated carrots (don’t use pre-shredded)
- 1 cup crushed pineapple, well-drained
- 1 cup sweetened shredded coconut
- 1 cup chopped walnuts or pecans (optional, but adds crunch)
For the Cream Cheese Frosting:
- 8 oz cream cheese, softened
- ½ cup (1 stick) unsalted butter, softened
- 3½ cups powdered sugar
- 1½ teaspoons vanilla extract
- Pinch of salt
How to Make It
Making this carrot cake is as simple as mixing dry ingredients, blending wet ones, and bringing it all together. It’s a straightforward process with absolutely delicious results.
Preheat and Prepare
Preheat your oven to 350°F (175°C). Grease and flour two 9-inch round cake pans or line the bottoms with parchment paper for easier removal. You can also bake this as a 9×13-inch sheet cake or as cupcakes—more on that in the variations below.
Mix the Dry Ingredients
In a medium bowl, whisk together the flour, baking soda, salt, cinnamon, nutmeg, and ginger. This spice blend is what gives the cake its warm, cozy flavor, so don’t skimp on it.
Blend the Wet Ingredients
In a large mixing bowl, beat together the vegetable oil, granulated sugar, and brown sugar until smooth and glossy. Then add the eggs, one at a time, beating well after each addition. Stir in the vanilla extract.
This combo creates a rich, sweet base that will give the cake its signature moist crumb.
Add the Fruits and Veggies
Now stir in the grated carrots, crushed pineapple, and shredded coconut. These add not just moisture and texture, but also natural sweetness and flavor. Fold them in until evenly distributed—you’ll notice the batter gets delightfully chunky.
Combine Wet and Dry
Add the dry mixture to the wet ingredients in two or three batches, mixing gently until just combined. Don’t overmix—doing so could make the cake tough. Finally, fold in chopped nuts if you’re using them.
Bake the Cake
Divide the batter evenly between your prepared pans and smooth the tops. Bake for 30–35 minutes, or until a toothpick inserted in the center comes out clean or with just a few moist crumbs.
Let the cakes cool in their pans for about 10 minutes, then carefully transfer them to a wire rack to cool completely before frosting. Warm cakes and cream cheese frosting don’t mix—patience is key!
Make the Cream Cheese Frosting
In a large bowl, beat together the cream cheese and butter until smooth and creamy. Gradually add the powdered sugar, then stir in the vanilla extract and a pinch of salt. Beat until fluffy and light.
This frosting is tangy, rich, and just sweet enough to balance the spiced cake.
Assemble and Decorate
Once your cakes are fully cooled, place one layer on your serving platter. Spread a generous layer of frosting over the top, then place the second layer on top. Frost the top and sides of the cake.
Garnish with extra shredded coconut or chopped nuts if you like. Toasting the coconut first gives it a toasty, nutty flavor that adds a little extra magic.
Tips and Tricks
- Grate fresh carrots using the fine side of a box grater. Pre-shredded carrots tend to be dry and don’t melt into the batter the same way.
- Drain your pineapple well. Too much liquid can throw off the texture of your cake.
- If your cake domes in the oven, slice off the top to make even layers before frosting.
- For a smoother finish, chill the cake briefly after applying a crumb coat (a thin initial layer of frosting), then frost fully.
- Don’t skip the salt in the frosting—it balances the sweetness beautifully.
Variations
- Nut-Free: Omit the walnuts or pecans for an allergy-friendly version.
- Make Cupcakes: Divide batter into lined muffin tins and bake at 350°F for 18–22 minutes.
- Add Raisins: A ½ cup of raisins adds extra chew and sweetness.
- Vegan Version: Use flax eggs, dairy-free cream cheese and butter, and ensure your sugar is vegan-friendly.
- Loaf Cake: Bake in a greased loaf pan for 45–55 minutes, testing with a toothpick.
Storage Instructions
This cake stores wonderfully, making it perfect for preparing ahead.
- Refrigerate: Store in an airtight container in the fridge for up to 5 days. The flavors deepen and get even better after the first day!
- Freeze: You can freeze unfrosted cake layers tightly wrapped in plastic for up to 2 months. Thaw at room temperature, then frost and serve.
- Frosting Storage: Cream cheese frosting will keep for up to 5 days in the fridge. Let it come to room temperature and re-whip if needed before using.
Serving Suggestions
This tropical carrot cake is the star of any dessert table. Serve it:
- As a celebration cake for birthdays, Easter, or Mother’s Day
- With a scoop of vanilla ice cream for extra indulgence
- Topped with a drizzle of caramel sauce or a sprinkle of toasted coconut
- Alongside a cup of hot coffee or spiced chai tea for an afternoon pick-me-up
This recipe will quickly become a favorite in your kitchen! The layers are soft and tender, the frosting is creamy and decadent, and every bite has that perfect mix of warm spice, sweetness, and tropical flair.
Make it once, and you’ll be asked to bring it to every gathering from here on out. Trust me, this carrot cake with pineapple and coconut is unforgettable.
Carrot Cake with Pineapple and Coconut
Ingredients
- 2 cups all-purpose flour
- 2 teaspoons baking soda
- 1/2 teaspoon salt
- 2 teaspoons ground cinnamon
- 1/2 teaspoon ground nutmeg
- 1/2 teaspoon ground ginger
- 1 1/4 cups vegetable oil
- 1 cup granulated sugar
- 1 cup packed brown sugar
- 4 large eggs
- 2 teaspoons vanilla extract
- 2 cups grated carrots
- 1 cup crushed pineapple, drained
- 1 cup shredded sweetened coconut
- 1 cup chopped walnuts or pecans (optional)
Instructions
- Preheat oven to 350°F (175°C). Grease and flour two 9-inch round cake pans.
- In a medium bowl, whisk together flour, baking soda, salt, cinnamon, nutmeg, and ginger.
- In a large bowl, beat together oil, granulated sugar, and brown sugar until combined. Add eggs one at a time, then stir in vanilla extract.
- Gradually mix dry ingredients into wet ingredients until just combined.
- Fold in grated carrots, pineapple, coconut, and nuts (if using).
- Divide batter evenly between prepared pans. Bake for 30–35 minutes or until a toothpick inserted comes out clean.
- Cool cakes in pans for 10 minutes, then transfer to wire racks to cool completely before frosting.
- Frost with cream cheese frosting and decorate with additional nuts or coconut if desired.





