There’s something wonderfully nostalgic about a homemade carrot cake . The warm spices, sweet carrots, and creamy frosting feel like spring on a plate. This Best Carrot Cake with Pineapple and Coconut takes the classic recipe to the next level by adding crushed pineapple for moisture and shredded coconut for a subtle tropical sweetness.
I’m Chef James from Tiramisucake.com — home of beloved desserts like our Classic Tiramisu Recipe — and this carrot cake is one of my favorite holiday desserts. It’s incredibly moist, perfectly spiced, and topped with a luscious cream cheese frosting that makes every slice unforgettable.
The pineapple keeps the crumb tender, the coconut adds texture, and the carrots bring natural sweetness and color. It’s the kind of cake that disappears quickly at brunch, spring gatherings, or family dinners.
Because this recipe contains eggs, dairy, and cream cheese frosting, proper storage is important. According to the USDA, desserts containing dairy should be refrigerated if not consumed within two hours. For official food safety recommendations visit:
https://www.fsis.usda.gov/
Let’s bake a cake that’s perfect for celebrating spring.
Table of Contents
ToggleWhy You’ll Love This Carrot Cake
- Incredibly moist texture
- Sweet pineapple flavor
- Coconut adds light tropical sweetness
- Perfectly spiced cake layers
- Rich cream cheese frosting
- Ideal centerpiece for dessert tables
This cake captures everything we love about traditional carrot cake — but even better.
What Makes This Carrot Cake So Moist
Three ingredients make this cake extra tender:
Pineapple
Crushed pineapple adds natural sweetness and moisture.
Vegetable Oil
Oil creates a softer crumb than butter-based cakes.
Freshly Grated Carrots
Fresh carrots release moisture while baking, making the cake incredibly soft.
Chef James Tip: Always grate carrots fresh for the best texture.

Ingredients
Carrot Cake Batter
- 2 cups (250g) all-purpose flour
- 2 tsp baking powder
- 1 tsp baking soda
- ½ tsp salt
- 2 tsp ground cinnamon
- ½ tsp nutmeg
- ¾ cup vegetable oil
- 1 cup granulated sugar
- ½ cup brown sugar
- 3 large eggs
- 1 tsp vanilla extract
- 2 cups freshly grated carrots
- 1 cup crushed pineapple, drained
- ½ cup shredded coconut
- ½ cup chopped walnuts or pecans (optional)
Cream Cheese Frosting
- 8 oz (226g) cream cheese, softened
- ½ cup (113g) unsalted butter, softened
- 3 cups powdered sugar
- 1 tsp vanilla extract
This frosting is tangy, creamy, and perfectly balanced with the sweet cake.

Step-by-Step Instructions
Step 1 – Prepare the Oven
Preheat oven to 350°F (175°C).
Grease and line two 9-inch round cake pans.
Step 2 – Mix Dry Ingredients
In a bowl whisk together:
- flour
- baking powder
- baking soda
- salt
- cinnamon
- nutmeg
Set aside.
Step 3 – Combine Wet Ingredients
In a large bowl whisk:
- oil
- granulated sugar
- brown sugar
- eggs
- vanilla extract
Mix until smooth.
Step 4 – Add Carrots and Pineapple
Fold in:
- grated carrots
- crushed pineapple
- shredded coconut
Chef James Tip: Gently fold ingredients to keep the batter light.
Step 5 – Combine Batter
Add dry ingredients gradually.
Mix until just combined.
Do not overmix.
Step 6 – Bake the Cake
Divide batter between cake pans.
Bake 30–35 minutes or until a toothpick inserted comes out clean.
Allow cakes to cool completely.

Making the Cream Cheese Frosting
Beat cream cheese and butter until smooth.
Add powdered sugar gradually.
Mix in vanilla extract.
Beat until creamy and fluffy.
Assembling the Cake
Step 1 – Layer the Cake
Place the first cake layer on a serving plate.
Spread a thick layer of cream cheese frosting.
Step 2 – Add Second Layer
Place the second cake layer on top.
Frost the top and sides of the cake.
Step 3 – Decorate
Top the cake with:
- chopped nuts
- shredded coconut
- carrot shavings
The decoration gives the cake a beautiful look.

Flavor Variations
Coconut Carrot Cake
Add extra coconut and coconut extract.
Pineapple Carrot Cake
Increase pineapple to 1½ cups.
Raisin Carrot Cake
Add ½ cup golden raisins.
Orange Carrot Cake
Add orange zest to the batter.
Tips for Perfect Carrot Cake
- Use freshly grated carrots.
- Drain pineapple well.
- Let cake cool completely before frosting.
- Store refrigerated because of the frosting.
Storage & Food Safety
Refrigerator
Store cake covered for 4–5 days.
Freezer
Freeze unfrosted cake layers up to 2 months.
Because this cake contains cream cheese frosting, follow USDA food safety recommendations:
https://www.fsis.usda.gov/

Frequently Asked Questions
Can I make this cake ahead of time?
Yes, it actually tastes better the next day.
Can I bake this as cupcakes?
Yes, bake for 18–22 minutes.
Can I skip the coconut?
Yes, the cake will still be delicious.
Can I use canned carrots?
Fresh carrots are strongly recommended.
Why is my carrot cake dense?
Overmixing the batter can cause this.
Does carrot cake need refrigeration?
Yes due to cream cheese frosting.
What to Serve with Carrot Cake
This cake pairs beautifully with:
- vanilla ice cream
- hot coffee
- chai latte
- fresh berries
It also complements layered desserts like our Classic Tiramisu Recipe for an elegant dessert table.
Conclusion
This Best Carrot Cake with Pineapple and Coconut is everything a holiday dessert should be — moist, flavorful, and beautifully decorated. The combination of carrots, pineapple, coconut, and cream cheese frosting creates a cake that’s both comforting and celebratory.
Perfect for brunch, spring parties, or family gatherings, it’s a dessert that will quickly become a seasonal tradition.
Just remember to refrigerate leftovers properly and follow USDA food safety recommendations:
https://www.fsis.usda.gov/
Now it’s your turn — grate those carrots, mix the batter, and bake a cake that truly tastes like spring. 🥕🍰


