Best Carrot Cake Recipe

Introducing the best carrot cake recipe, a moist spice cake loaded with carrots, pineapple, coconut and chopped nuts. Top this homemade cake with cream cheese frosting. Bake in a layer cake or 9×13 pan.

carrot cake with pineapple and coconut

Best Carrot Cake Recipe

Nothing says spring like carrot cake! My mom loves homemade carrot cake and Maddie follows closely in her footsteps. Although Maddie would prefer to have a carrot cake with just carrots, sometimes it is fun to load that carrot cake up with everything delicious. And that’s exactly what this best carrot cake recipe is all about. It’s deliciously overloaded.

Carrot Cake with Pineapple

I wouldn’t usually think to pair pineapple with carrots, but in cake? It totally works. Crushed pineapple adds not only flavor but a moistness to the cake. Can you leave out the pineapple? No…not for this recipe. You want the extra texture and moisture that the pineapple gives. Can you use fresh pineapple instead of canned in this cake? Yes! Just cut the pineapple and process it in a food processor until it is the consistency you like. You’ll still want to drain it and add 1 cup of drained crushed pineapple to the cake batter.

How to Make Carrot Cake

  • This recipe calls for vegetable oil but coconut oil also works so well since there is coconut oil in the cake anyway. Be sure the coconut oil is warmed to liquid form before you mix it with the sugar.
  • Whisk the eggs before adding them to the sugar and oil. This will help them to be mixed better!
  • Use all-purpose flour. Some cakes call for cake flour but that is not necessary for this cake recipe. Spoon the flour into the measuring cup, then level it off with a knife. Never pack flour into measuring cups!
  • If you have friends and family who may not like the “chunky” texture of this cake, feel free to process the carrots, nuts, pineapple and coconut very finely. You’ll get all the flavor and not quite as much chunky texture.
  • Be sure the pineapple is well drained before you add it to the cake batter.
  • We used two 9″ cake pans but you can also use 3 8″ cake pans for a pretty look. Watch the baking time closely. Start them out at about 25 minutes and add time as necessary.
  • The cake is done when the center of the cake bounces back when you touch it. Peek into the oven with the light on through the oven window before opening the oven. You want to be sure you’re not opening up the oven too much when the cake is baking or it may fall. It should “look” done before you open the door. Test the cake, then add a few minutes if needed from there.
  • Allow the cake to cool completely before you frost it.

9×13 Carrot Cake

You can make this cake in a 9×13 cake pan instead of a layer cake. Be sure to grease and flour the cake pan. Bake it at the same temperature, but you’ll have to bake it for longer. Start with 40-45 minutes and add time from there as needed.

Cream Cheese Frosting for Carrot Cake

Cream cheese frosting is the best frosting for the best carrot cake recipe. It pairs so well! You’ll find our favorite recipe here.

carrot cake with cream cheese frosting

Other Carrot Cake Recipes

Tools to Make Best Carrot Cake Recipe

homemade carrot cake
homemade carrot cake

Best Carrot Cake

4.58 from 107 votes
Introducing the best carrot cake recipe, a moist spice cake loaded with carrots, pineapple, coconut and chopped nuts. Top this homemade cake with cream cheese frosting. Bake in a layer cake or 9x13 pan.
Servings 15
Prep Time 20 minutes
Cook Time 35 minutes
Total Time 55 minutes


Carrot Cake:

Cream Cheese Frosting:


For the cake:

  • Preheat the oven to 350 degrees.
  • In a large bowl, beat together the sugar and oil.
  • Add in the eggs, beating well.
  • In a separate bowl, sift together the flour, baking powder and soda, salt and cinnamon. Blend the flour in with the wet ingredients.
  • Gently fold in the carrots, drained pineapple, coconut and walnuts.
  • Grease and flour two 9" baking pans.
  • Divide the batter between the two pans.
  • Bake for 35-40 minutes or until the center of the cake bounces back when you touch it.
  • Allow the cakes to cool for 10 minutes in the pan, the turn them out on a wire rack to cool completely.

For the frosting:

  • Using an electric mixer, mix the butter and cream cheese, scraping down the sides as needed, until the mixture is light and fluffy. This will take about 3 minutes.
  • With the mixer on low speed, add the powdered sugar, ½ a cup at a time, until it is thoroughly mixed.
  • Add the vanilla and beat the frosting on medium speed for about 2 minutes.

Frost the cake:

  • Once the cake is cooled, place one layer on a cake plate. Frost the top of the cake layer.
  • Place the second layer on top, then use the remaining frosting to cover the top and sides of the cake.
  • Decorate with additional chopped nuts if desired.


The calories shown are based on the cake being cut into 15 pieces, with 1 serving being 1 slice of cake. Since different brands of ingredients have different nutritional information, the calories shown are just an estimate.


Calories: 532kcal | Carbohydrates: 79g | Protein: 5g | Fat: 22g | Saturated Fat: 13g | Cholesterol: 90mg | Sodium: 442mg | Potassium: 252mg | Fiber: 2g | Sugar: 63g | Vitamin A: 3430IU | Vitamin C: 4.5mg | Calcium: 70mg | Iron: 1.5mg
Course Dessert
Cuisine American
Calories 532
best carrot cake title image

About Julie Clark

We are Julie, Maddie, and Kinslee – a mother and daughter team sharing with you the best cakes to satisfy any need or sweet craving that you may have. Welcome to our family’s kitchen!

You might also like

Join the Discussion

4.58 from 107 votes (101 ratings without comment)
Notify of

Most Voted
Newest Oldest
Inline Feedbacks
View all comments

5 stars
Amended recipe I have used a very similar recipe, The variation that I have calls for 1 whole can of crushed pineapple with the liquid And is moister than this recipe, Love Carrot cakes, I have brought mine to many occasions, and I always bring home a empty pan,

5 stars
This is the best carrot cake recipe I have ever made, it is very moist and I made a three layer 9” cake from this and topped it with extra walnuts, Delicious!

Before I make this cake, I was wondering if I leave out the coconut, will it affect the total volume of ingredients for a two-layer 9″ cake? I have read your information and I am looking forward to making this awesome Carrot Cake after your reply so I can give you a “star rating!” Thank you in advance!

5 stars
I’ve made these twice already and it tastes great. My question is, why does the center of my carrot cake sink?

I love this as a layer cake but I’m making a sheet pan for a bake off at work. I was wondering how this recipe will work in a 15x10x1 pan? Thanks for any tips!

5 stars
Would like know if the coconut should be sweetened or unsweetened ? Thanks

Hi is the coconut fresh?

5 stars
I have made this recipe a few times now and it is the best carrot cake I have ever eaten. My family loves it. Only thing is that I have to cook it longer then 30-40 minutes. More like an hour. Still turns out FANTASTIC! Thanks for the recipe

Last edited 2 years ago by Patricia Scarbrough

5 stars
This is a cake I’ve been making for 30 years, the best carrot cake I ever had. The only difference for me is I use slivered almonds and bake in a bundt pan,