• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • RECIPES
    • All Recipes
  • ABOUT
    • Privacy Policy

Chefjar logo

Home / Dessert Recipes / Cake Recipes

Carrot Cake with Pineapple and Coconut

Jump to Recipe -

This is our favorite recipe for moist carrot cake! It’s loaded with pineapple, coconut, nuts and raisins, and of course topped with the most decadent and creamy cream cheese frosting you’ve ever tried. It’s unbelievably easy and astonishingly delicious.

A slice of carrot cake with pineapple and coconut on a plate. 	This is my favorite recipe for homemade carrot cake.


 

The Best Carrot Cake

Carrot cake, when it’s done right, is absolutely unbeatable. It can be fluffy, tender, and loaded with awesome additions like pineapple and (of course) carrot. We sweeten it with raisins and coconut, and add some crunch factor thanks to the pecans. A great carrot cake should be moist and delicious, with a great cream cheese frosting that will simply melt in your mouth.

Carrot cake with cream cheese frosting on a board.

Why You Will Love This Recipe

This homemade carrot cake is absolutely full of flavor, texture, and moisture. We love this cake recipe with all the bells and whistles to make it truly excellent.

  • Fresh grated carrots. Grating your own carrots gives this cake the freshest flavor and the best texture. Pre-grated carrots can be too thick and too dry for use in cake. You don’t want any crunchy carrots in your cake. We also don’t want a load of preservatives, often found in pre-packaged foods, in our cake.
  • Texture and flavor. We’re adding crushed pineapple, shredded coconut, chopped pecans and plump raisins to take this cake to the next level. It’s on another plane when it comes to depth of flavor and rich, moist texture. Every ingredient adds something special to the recipe, culminating in the best carrot cake you’ve ever tried.
  • Little details. Excellence is a game of fine margins. Little things like the addition of cinnamon and vanilla are important to making this a great carrot cake recipe.
  • The best ever cream cheese frosting. We’re preparing a truly creamy frosting for this recipe. You’ll never look twice at another frosting again. It complements this amazing carrot cake. It’s fluffy, spreadable (or pipe-able) and simply unbeatable.
A three-later carrot cake with cream cheese buttercream.

What You’ll Need

The key ingredients for this recipe are separated into two categories. These are the cake ingredients and the frosting ingredients.

  • Flour: We’re using all purpose flour as the foundation of our cake.
  • Sugar
  • Baking soda, baking powder and salt
  • Oil: We’re using vegetable oil to make a moist, yet light, cake.
  • Eggs: They help to bind everything together.
  • Vanilla extract: You will need a whole teaspoon of pure vanilla extract to let the flavor truly stand out against the other ingredients.
  • Cinnamon powder: You can use fresh or pre-ground cinnamon to complement the flavor of the cake and offer just a hint of spice and aroma.
  • Carrots give the cake just the most perfect texture.
  • Pineapple: You can use fresh or canned crushed pineapple to add both sweetness and moisture to the cake. Be sure to drain the pineapple well to help prevent the cake from becoming mushy. If you’re using canned pineapple, you want the pineapple canned in water, not syrup.
  • Nuts: You want finely chopped pecans which can give the cake a satisfying crunch.
  • Coconut: We’re using shredded coconut to add yet another layer of flavor and texture.
  • Raisins: Finally, the best complement to carrot cake, plump raisins. They’re scattered throughout the cake, offering bursts of sweetness with every bite.

Cream Cheese Frosting

  • Cream cheese at room temperature
  • Unsalted Butter
  • Confectioner's sugar
  • Lemon juice
  • Vanilla extract adds an extra burst of flavor.
Ingredients for carrot cake with pineapple and coconut.

How to Make Carrot Cake

You can bake this cake in either three or two layers. For a triple layer cake, we recommend using three 9-inch round cake pans. Grease the pans or line them with parchment rounds.

  • Whisk together the flour, cinnamon, baking powder, baking soda and salt. Set aside.
  • In another bowl, combine the carrots, chopped nuts, coconut and raisins.
A collage shows how to make carrot cake from scratch.
  • In the bowl of your electrical stand mixer with the paddle attachment, or use a hand mixer, beat the sugar and oil together until smooth. Add the eggs, one at a time, and beat on high speed until the batter is smooth. Stir in vanilla extract.
  • Reduce the speed to low, if you are working in a stand mixer, or switch to a rubber spatula if using a hand mixer. Gently stir in the flour mixture. Mix just until combined.
  • Fold in the carrot mixture and the crushed pineapple.
A collage shows how to make carrot cake with pineapple and coconut using a stand mixer from scratch.
  • Divide the batter among the baking pans. Bake the cakes for 40-50 minutes or until they pass the “toothpick test”.
  • Allow the cake to cool completely before you start frosting.
A collage shows how to assemble and decorate carrot cake with pineapple and coconut.

How to Make Cream Cheese Frosting

  • Beat the cream cheese and butter together until smooth and creamy using a hand mixer.
  • Gradually add the confectioners' sugar and continue to beat  until smooth. Stir in the lemon juice and vanilla extract.

Once your cake has cooled and the frosting is done, spread the frosting atop the cake.

A slice of carrot cake with pineapple and coconut.

Storage

Keep your frosted carrot cake in the fridge, covered, for up to four days. It will also keep on the counter at room temperature for up to 2 days.

A piece of carrot cake on the fork.

How to Freeze

You can freeze your cake, too. Simply allow it to chill in the fridge beforehand. Give it a few hours, allowing the icing to become firm, and wrap the cake in a double layer of plastic wrap and another layer of aluminum foil. You can store your cake in an airtight, freezer-safe container, in which it will freeze comfortably for 2-3 months.

A slice of carrot cake with cream cheese frosting on a white dessert plate with a fork.

More Cake Recipes To Try!!!

Easy Cheesecake Recipe

Chocolate Bundt Cake

Cranberry Orange Bundt Cake

Vanilla Bundt Cake

Honey Cake

Napoleon Cake

Red Velvet Cake

pinterest-chefjar

If you make this recipe be sure to leave a comment or give this recipe a rating ⭐⭐⭐⭐⭐! I will be happy to hear from you!

Print Recipe

Best Carrot Cake Recipe

This is our favorite recipe for moist carrot cake! It’s loaded with pineapple, coconut, nuts and raisins, and of course topped with the most decadent and creamy cream cheese frosting you’ve ever tried.
Author: chefjar
Prep Time15 minutes mins
Cook Time50 minutes mins
Servings: 12
Calories: 591kcal

Ingredients

Carrot Cake

  • 2 cups all-purpose flour
  • 2 teaspoons baking powder
  • ½ teaspoon baking soda
  • 2 teaspoons ground cinnamon
  • ½ teaspoon salt
  • 3 cups grated carrots
  • 1 cup shredded coconut sweetened or unsweetened
  • ½ cup moist plump raisins ( dark or golden)
  • ½ cup chopped pecans or walnuts
  • 1 ½ cups sugar
  • 1 cup neutral vegetable oil Canola or safflower oil
  • 4 large eggs at room temperature
  • 1 teaspoon vanilla extract
  • 1 8-ounce can crushed pineapple, drained

Cream Cheese Frosting

  • 12 ounces cream cheese at room temperature, softened
  • 1 stick 8 tablespoons unsalted butter, at room temperature
  • 1 ½ cups confectioner's icing or powdered sugar, sifted
  • 1 teaspoon vanilla extract
  • 1 tablespoon fresh lemon juice
  • Toasted finely chopped nuts and toasted coconut for topping, optional

Instructions

For The Cake

  • Preheat your oven to 325°F| 160°C. Butter and flour three 9-inch round, 2-inch deep cake pans or use a cooking spray with flour like Baker's Joy spray with flour.
  • Whisk together the flour, cinnamon, baking powder, baking soda and salt. Set aside.
  • In another bowl, combine the carrots, chopped nuts, coconut and raisins.
  • In the bowl of your electrical stand mixer with the paddle attachment, or use a hand mixer, beat the sugar and oil together until smooth. Add the eggs, one at a time, and beat on high speed until the batter is smooth. Stir in vanilla extract.
  • Reduce the speed to low, if you are working in a stand mixer, or switch to a rubber spatula if using a hand mixer. Gently stir in the flour mixture. Mix just until combined.
  • Fold in the carrot mixture and the crushed pineapple.
  • Divide the batter among the baking pans. Bake the cakes for 40-50 minutes or until a toothpick inserted into the center of the cakes comes out clean. The cakes will start to come away from the edges. Transfer the pans to cooling racks and allow to cool for  5-10 minutes. After 10 minutes invert the cakes onto a wire rack and let cool completely before frosting.

For the Frosting

  • Using a hand mixer,  beat the cream cheese and butter together until smooth and creamy.
  • Gradually add the confectioners' sugar and continue to beat  until smooth. Stir in the lemon juice and vanilla extract.

To Frost the Cake

  • Place one layer of cake on a cake plate or a cardboard. Spread a generous dollop of frosting. Place the second layer onto the frosting and continue frosting. Top with the last layer and spread the rest of the frosting over the top and sides of the cake. Finish the top of the cake with swirls of frosting  and garnish with toasted nuts.
  • Refrigerate for 30-60 minutes for the best results.
  • Storage: You can cover this cake and store in the refrigerator for about 4 days.  Well wrapped, this carrot cake can be frozen for 2-3 months. Defrost in the refrigerator overnight.

Notes

Storage

You can keep your frosted carrot cake in the fridge, covered, for up to four days. It will also keep on the counter at room temperature for up to 2 days.
You can freeze your cake, too. Simply allow it to chill in the fridge beforehand. Give it a few hours, allowing the icing to become firm, and wrap the cake in a double layer of plastic wrap and another layer of aluminum foil. You can store your cake in an airtight, freezer-safe container, in which it will freeze comfortably for 2-3 months.

Nutrition

Calories: 591kcal | Carbohydrates: 79g | Protein: 4g | Fat: 27g | Saturated Fat: 9g | Cholesterol: 65mg | Sodium: 402mg | Fiber: 3g | Sugar: 49g
Course: Cake recipes
Cuisine: American
Keyword: carrot cake, carrot cake with pineapple, carrot cake with pineapple and coconut

All rights reserved. CHEF JAR. All images and content are copyright protected. PLEASE do not use my images without my permission. If you want to share this recipe, PLEASE provide a link back to this post.

More Cake Recipes

  • Napoleon cake
    Napoleon Cake Recipe (Russian Mille-Feuille)
  • Holding a slice of San Sebastian Cheesecake on a spatula, displaying its creamy texture and caramelized edges.
    San Sebastian Cheesecake (Basque Cheesecake)
  • Removing a slice of lemon blueberry bundt cake from the whole cake. The cake is golden brown and looks moist and tender with blueberries visible throughout.
    Lemon Blueberry Bundt Cake
  • Slice of Lemon Raspberry Bundt Cake on a white plate with fresh raspberries and lemon slices on top.
    Lemon Raspberry Bundt Cake

About Tatiana

Hi, I’m Tatiana! I’m all about making easy, delicious family meals that bring everyone to the table. From quick weeknight dinners to comforting classics, my recipes are simple, flavorful, and made with love. Read more

Reader Interactions

Comments

  1. Ashley says

    November 10, 2023 at 3:45 pm

    Is there anything that you can substitute for the pineapple? We have an allergy. :/

    Reply
    • chefjar says

      November 10, 2023 at 3:58 pm

      Hey, Ashley! If you're looking to substitute pineapple in a carrot cake due to an allergy, you can use applesauce or pureed pear. These alternatives provide a similar moist texture and natural sweetness.

      Reply
  2. Rose says

    November 29, 2023 at 4:27 pm

    5 stars
    Excellent carrot cake , Delicious 😋

    Reply
    • chefjar says

      November 30, 2023 at 7:43 am

      Hey Rose! I'm thrilled to hear you enjoyed the carrot cake and found it delicious!

      Reply
  3. Lisa says

    April 15, 2024 at 12:22 am

    5 stars
    Made this for Easter and my mother's birthday. This cake was a hit with everyone! I have never had a better carrot cake!. Thank you for posting this.

    Reply
    • chefjar says

      April 18, 2024 at 3:33 pm

      Hi Lisa! Thank you for your kind words and for choosing this recipe for such special occasions! 😊

      Reply
  4. Maria says

    September 25, 2024 at 7:50 pm

    Can i make this cake gluten free?

    Reply
    • chefjar says

      September 26, 2024 at 4:50 am

      Hi Maria! Yes, you can make this carrot cake gluten-free! Simply replace the regular flour with a gluten-free flour blend that is designed for baking. Make sure the blend includes xanthan gum or add it separately (about 1/2 teaspoon per cup of flour) to help with texture and structure. The rest of the ingredients should remain the same.

      Reply
  5. Suzy says

    April 06, 2025 at 3:08 am

    Can this cake be baked in a 9”x 12” pan?

    Reply
    • Tatiana says

      April 11, 2025 at 11:45 am

      Hi Suzy! Yes, you can absolutely bake this cake in a 9x12-inch pan. Just keep an eye on the baking time — it may take a bit longer than the round pans, around 45–60 minutes. Check for doneness with a toothpick in the center.

      Reply
  6. Debbie says

    April 13, 2025 at 2:45 pm

    Good morning, I have 2 questions. I want to make this today for Easter and freeze it. I notice you have instructions for freezing it with frosting, but have you froze it unfrosted with success and frost later.
    My other question is have you ever made this in a bundt pan? Does this recipe work in a bundt pan?
    Thank you

    Reply
    • Tatiana says

      April 14, 2025 at 3:21 am

      Hi Debbie, good morning! 😊 Yes, you can absolutely freeze the cake unfrosted—I’ve done it a few times and it works beautifully. Just make sure it’s completely cool before wrapping it tightly in plastic wrap and foil. It’ll stay fresh in the freezer for up to 2–3 months. When you're ready to use it, thaw overnight in the fridge, then frost as usual. As for the bundt pan—yes, this batter works in a bundt too! Just make sure to grease and flour the pan really well (or use a baking spray with flour). The bake time might be a bit longer—check around the 55-minute mark and go from there. A toothpick inserted should come out clean. Hope it turns out amazing for Easter!

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recipe Rating




This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Footer

SUBSCRIBE TO RECEIVE RECIPES STRAIGHT INTO YOUR INBOX!

CONNECT WITH ME – CHEFJAR

  • Email
  • Instagram
  • Pinterest
  • YouTube
  • Privacy Policy
  • ABOUT ME
  • Recipe index

Copyright © 2025 · CHEFJAR