Here’s the best carrot cake recipe you’ll ever eat! This carrot cake with pineapple and coconut is sweet and refreshing, flavored with delicious spices, with an ultra moist and tender texture. Top it off with a velvety cream cheese frosting, and don’t pass on the pecans for a crunchy bite. Perfect for any special occasion, this carrot cake recipe is a keeper!

This carrot cake with pineapple and coconut is sweet and refreshing, flavored with delicious spices, with an ultra moist and tender texture.

Email me this recipe

We’ll send it straight to your inbox, along with weekly food inspiration!

Carrot cake is a classic in any family. It’s perfect for spring, Easter, a birthday party or any special occasion year round. To me, the perfect carrot cake must be sweet, flavored with cinnamon, with a perfectly moist crumb and a cream cheese frosting for some refreshing and tangy flavors. It also needs to be fluffy but holding its shape when slicing.

This carrot cake with pineapple and coconut is sweet and refreshing, flavored with delicious spices, with an ultra moist and tender texture.

But there is more to it. Years ago, I discovered a little hack that makes any carrot cake taste utterly delicious, with the most tender and moist crumb you could possibly dream of. Best part? It is EASY TO MAKE! The recipe has now become a family favorite, and I can’t wait for you to try it too. You. will. fall. in. love.

Carrot cake with pineapple and coconut

Secret revealed! The one thing that makes the best ever carrot cake recipe is the addition of pineapple (yes, pineapple!) and coconut in the cake batter. It may sound odd at first, but once you try, you realize that pineapple is indeed a key ingredient for extra moistness and refreshing flavors. Paired with the shredded coconut, it adds some texture to the cake, together with the pecans. The result is light and delightful!

This carrot cake with pineapple and coconut is sweet and refreshing, flavored with delicious spices, with an ultra moist and tender texture.

Why is it the BEST carrot cake recipe?

  • Super moist and tender ✔
  • Perfect balance of sweetness
  • Full of refreshing flavors
  • A crunchy bite added by the pecans ✔
  • A smooth and tangy cream cheese frosting to top it off ✔

This carrot cake with pineapple and coconut is sweet and refreshing, flavored with delicious spices, with an ultra moist and tender texture.

Ingredients to make the best carrot cake recipe

  • Carrots. Use them fresh!
  • Pineapple + shredded coconut. Pineapple adds some very refreshing flavors to the cake and participates to its extra moist crumb. Coconut brings some extra chewy texture.
  • Granulated sugar + brown sugar. The combination of both sugars enables a sweet and moist carrot cake, that holds its shape when slicing.
  • Eggs. They are the binding ingredient, helping the cake to hold its structure.
  • Vegetable oil. Oil is the fat that keeps the cake nice and moist. Use canola oil, or any other vegetable oil neutral in taste.
  • Buttermilk. It makes the carrot cake tender with a tangy flavor. Go for homemade buttermilk, it’s ready within minutes.
  • All-purpose flour + baking soda. They will help the cake rise.
  • Cinnamon + vanilla extract. They add a boost of flavors that makes the cake extra amazing.
  • Pecans. For a little crunchy bite! You can use pecans, walnuts, or not use any nuts at all.

For the cream cheese frosting, you will need cream cheese, butter, heavy cream, and icing sugar, with some vanilla to boost the flavors.

This carrot cake with pineapple and coconut is sweet and refreshing, flavored with delicious spices, with an ultra moist and tender texture.

How to make this carrot cake from scratch?

You may feel a little intimidated with the idea of making a layer cake at first, but please don’t. This carrot cake is very easy to make, and doesn’t require any fancy equipment. With just a couple of mixing bowls, a hand mixer and a rubber spatula, you can make it from scratch with (almost) no effort!

  1. Grate the carrots. Use fresh carrots and grate them yourself, using a grater or a food processor with a shredder attachment.
  2. Make the cake batter. It couldn’t be easier! All you need is to beat the wet ingredients with a hand mixer in one bowl, mix the dry ingredients in another bowl, and combine them together. Then, gently fold in the grated carrots, pineapple, coconut, and pecans, until evenly spread in the cake batter.
  3. Bake the cake. Start with dividing the cake in two equal parts, and bake them in two separate 9-inch (23 cm) baking pans. Make sure they are baked through, as an under-cooked inside would make the cake collapse when assembling.
  4. Prepare the frosting. When the carrot cake is in the oven, prepare the frosting by beating all the frosting ingredients. Make sure you use room temperature cream cheese and butter.
  5. Assemble the cake. Add a spoonful of cream cheese frosting in the center of a plate or cake stand, and place the first carrot cake on top. This will ensure the cake doesn’t move. Spread a generous layer of cream cheese over the cake, then top with the second cake and spread the cream cheese all over, including top and sides. Decorate with chopped pecans.

This carrot cake with pineapple and coconut is sweet and refreshing, flavored with delicious spices, with an ultra moist and tender texture.

Tips for carrot cake success

  • Use fresh carrots and grate them yourself. This will ensure the maximum of flavors. You can use a box grater, a food processor with a shredding blade, or a KitchenAid shredder attachment. In any case, do not purchase ready-to-use grated carrots, which tend to be on the drier side.
  • Do not overmix the batter. Mix wet and dry ingredients until just combined, then gently fold the grated carrots, pineapple and shredded coconut with a rubber spatula until evenly spread.
  • Properly divide the cake batter into two pans. I usually weigh the cake batter and divide the number in two. This is the best accurate way to have two equal size cakes.
  • Monitor the baking time closely. The baking time can vary a little from one oven to another. Make sure the cake is baked through (a toothpick inserted in the center should come out clean). If the cake is under-cooked, it will be raw in the center and will collapse. If however it is over-cooked, the crumb will be dry.
  • Layer off the tops of the cakes before assembling. Doing so ensures a very flat surface and make your layer cake easier to assemble.
  • Make the carrot cake ahead of time. Carrot cake usually tastes better the next day, so it’s a great recipe to make ahead of time. Simply keep it covered in the refrigerator until ready to serve.

What if I don’t like pineapple or coconut?

Ok, so I’ve told the best carrot cake recipe involves pineapple and coconut. But if you are not a fan of pineapple and coconut, you can simply leave them out. You may not have the extra refreshing flavors and super moist texture, but I promise the carrot cake turn just fine. Same goes with the pecans.

This carrot cake with pineapple and coconut is sweet and refreshing, flavored with delicious spices, with an ultra moist and tender texture.

How to store this carrot cake?

This carrot cake should be stored in the fridge, ideally in a cake carrier so it doesn’t dry out. When ready to serve, remove from the fridge and leave it at room temperature for about 20 minutes before serving (unless you prefer it cold). Leftovers can be stored in the refrigerator for up to 5 days. Unfrosted carrot cakes can be stored at room temperature and wrapped in plastic wrap for 2 days.

Freezing instructions. You can store slices of carrot cake, wrapped individually in plastic wrap, in the freezer. Alternatively you can freeze the unfrosted carrot cake, wrapped in cling film. Thaw at room temperature, then garnish and top with the cream cheese frosting.

More carrot cake recipes you’ll love:

This carrot cake with pineapple and coconut is sweet and refreshing, flavored with delicious spices, with an ultra moist and tender texture.

Add more veggies to your desserts!

Veggies always make the most wonderful and moist cakes, and also work well in cookies. Check these dessert recipes below, prepared with zucchini, carrots or beetroots!

Print

Best Carrot Cake

  • 5 Stars 4 Stars 3 Stars 2 Stars 1 Star 4.9 from 15 reviews
  • Leave a Review
This carrot cake with pineapple and coconut is sweet and refreshing, flavored with delicious spices, with an ultra moist and tender texture.
  • Author: Delphine Fortin
  • Prep Time: 30 mins
  • Cook Time: 40 mins
  • Total Time: 1 hour 10 minutes
  • Yield: 10=12 servings 1x
  • Category: Cakes and Pies
  • Cuisine: American recipes
  • Diet: Vegetarian

Here’s the best carrot cake recipe you’ll ever eat. This carrot cake with pineapple and coconut is sweet and refreshing, with an ultra moist and tender texture.

Email me this recipe

We’ll send it straight to your inbox, along with weekly food inspiration!

Ingredients

Scale

For the carrot cake:

  • 2 cups (240g) all-purpose flour
  • 2 teaspoons baking soda
  • ½ teaspoon salt
  • 2 teaspoons ground cinnamon
  • 3 large eggs
  • 1 cup (200g) caster sugar
  • 1 cup (180g) brown sugar
  • ¾ cup (180 ml) vegetable oil
  • ¾ cup (180 ml) buttermilk*
  • 2 teaspoons vanilla extract
  • 2 cups (260g) grated carrot
  • 8 ounces (225g)-canned crushed pineapple**, drained
  • 1 ⅛ cup (85g) shredded coconut/coconut flakes
  • 1 cup (150g) pecans, chopped*** + extra for decoration

For the cream cheese frosting:

  • 1 cup (225g) cream cheese, softened at room temperature
  • ½ cup (115g) unsalted butter, softened at room temperature
  • Approx. 2 to 2 ½ cups (240 – 300g) confectioners’ sugar
  • 2 Tablespoons heavy whipping cream
  • 2 teaspoons vanilla extract
  • 1 pinch of salt

Instructions

  1. Preheat the oven to 350°F (180°C). Grease two 9-inch (23 cm) cake pans, line with parchment paper, then grease the parchment paper and the sides.
  2. To make the cake, mix flour, baking soda, salt and cinnamon in a medium size bowl.
  3. In a separate large bowl, beat eggs, sugars, oil, buttermilk*, and vanilla on medium speed, until smooth, using a hand mixer. Add the flour mixture to the wet ingredients, beating on low speed until just combined. Fold in the carrots, pineapple, coconut and pecans.
  4. Divide the batter evenly**** into the prepared cake pans, and bake for about 40 mins, or until a toothpick inserted in the center comes out clean. Allow the cakes to cool completely before frosting and assembling.
  5. For the frosting, beat the cream cheese and butter together on medium speed for 2-3 minutes until soft and creamy. Add confectioners’ sugar, and beat until thick and combined. Pour in the heavy cream, vanilla, and beat on medium speed for 2 minutes. Add more confectioners’ sugar until desired thickness is reached. Add a pinch of salt, to taste and cut the sweetness.
  6. For assembling the carrot cake. Use a large serrated knife and layer off the tops of the cakes to create a flat surface. Add one Tablespoon of frosting in the center of the cake stand or serving plate, and place the first cake on top. Evenly cover the top with frosting. Top with the second layer, and spread the remaining frosting all over the top and sides. Decorate with extra pecans. Refrigerate cake for at least 30 minutes before slicing. Enjoy!

Notes

* To prepare homemade buttermilk, add 1 teaspoon of fresh lemon juice to a measuring cup, and cover with milk until you reach the ¾ mark. Stir, and let sit for 5 minutes. Your buttermilk is now ready to use!

** I recommend canned crushed pineapple for this recipe. Make sure you drain them well before using, to avoid the extra humidity in the cake.

*** Alternatively you can use chopped walnuts instead of pecans.

**** In order to divide the batter evenly, I usually weigh the cake batter and divide in two (keep in mind to substract the weight of the mixing bowl itself).

Did you make this recipe?

Lastly, if you make this Best Carrot Cake, be sure to leave a comment and give this recipe a rating, letting me know how you liked it. And of course, don’t forget to tag me on Instagram! Thank you and enjoy!

This carrot cake with pineapple and coconut is sweet and refreshing, flavored with delicious spices, with an ultra moist and tender texture.