My All-Time Favorite Carrot Cake Recipe
I have made my share of different carrot cake recipes over the years, but none can hold a candle to this one; it is the gold standard as far as I’m concerned. The cake is subtly spiced, super moist, and packed with tons of extras like pineapple, coconut, raisins, and pecans. Last but not least, it’s filled and frosted with my all-time favorite cream cheese frosting. It’s a winner on every level and the best carrot cake recipe you’ll ever try, guaranteed. Make it for Easter, Thanksgiving, or anytime you need a special cake!

Carrot cake is, in my mind, one of the most absolutely underrated cakes out there. Most people love chocolate or yellow cake, while others go nuts over white or red velvet. It's understandable, they're delicious… but my gosh, carrot cake is just SO GOOD.
I've always been a fan of carrot cake, but on a weekend trip to the Outer Banks back when my husband and I were dating, we ate at the Outer Banks Brewing Station and for dessert had the most enormous, most delicious piece of carrot cake to ever grace my plate. I've been officially obsessed from that moment on.
While carrot cake is typically served for spring occasions like Easter and Mother’s Day, I argue that it deserves a permanent place on any dessert rotation for family dinners, holidays, birthdays, or special occasions.
Let’s dive in!

How to prep the carrots
Since this is a carrot cake, let’s take a moment to discuss how to prepare the star of the recipe – the carrots!
We are using peeled, grated carrots and since we need 3 cups of grated carrot, you’ll need about 6 medium carrots to get that yield. Of course, the size of the carrots will play in role in how many you ultimately use, but a general rule of thumb:
2 medium carrots = 1 cup grated carrots.
In order to grate the carrots, use the large holes on a standard box grater. You could also use a shredding disc for a food processor and follow the instructions in the manual for shredding carrots.
Important Note: Do NOT use store-bought shredded/grated carrots. While a shortcut is tempting, these are drier and harder than freshly shredded carrots; they will not impart the necessary moisture into the cake and will result in a less-than-desirable texture.

Making carrot cake from scratch
Making carrot cake is super simple (you only need two bowls, a whisk, and spatula – no mixer required!), and now that we’ve got the carrots out of the way, let’s walk through the next steps!
Save This Recipe
- Whisk dry ingredients together in a medium bowl.
- Whisk wet ingredients + sugars together in a large bowl, ensuring everything is thoroughly combined.
- Add dry ingredients to wet ingredients and fold together with a spatula.
- Fold in those add-ins! Stir in the carrots, pineapple, coconut, raisins, and pecans.
- Divide between the cake pans and bake.
- Make the cream cheese frosting, then assemble the cake! All done!

Carrot cake FAQ
Answering some of the most common carrot cake questions:
Is carrot cake better with oil or butter?
This cake is made exclusively with oil, which is a key ingredient in keeping it nice and moist. For that reason, I do not recommend substituting butter in this particular cake. You can use canola oil, but I do not recommend using olive oil or other strong-tasting oils.
Can you adjust the seasonings?
Yes, absolutely! I only use cinnamon in this cake, so it’s subtly spiced, which I feel pairs wonderfully with the other ingredients, but you can decrease the amount if you’d like. You can also increase the amount or add in other warm spices like ginger, nutmeg, and cloves.
Can you omit any of the add-ins like pineapple, coconut, raisins, and pecans?
Yes, you can. I strongly advise keeping the pineapple because it does add moisture, but it’s not absolutely necessary. You can omit any of the add-ins in the cake without making any other adjustments to the batter, but the cake may bake more quickly so start checking for doneness sooner.
Can this recipe be converted to cupcakes, a sheet cake, or other size cake pans?
Yes, all of these will work:
- 8-inch round pans: Prepare as directed below but bake for 27 to 35 minutes.
- 9×13-inch pan: Bake in a greased 9×13-inch pan until a toothpick inserted in the center comes out clean, 45 to 50 minutes.
- Bundt pan: Generously grease a 10 to 12-cup Bundt pan and bake for 60 to 75 minutes.
- Cupcakes: Fill standard muffin cups two-thirds full and bake for 20 to 22 minutes.
What type of frosting should be used?
Cream cheese frosting, of course!! It’s the go-to standard for all carrot cakes, however, if you are really averse to it, here are a few other options:
How to decorate and serve carrot cake?
The beauty of carrot cake is that there is so much substance to the cake that it lends itself to a very minimalist or rustic decorating vibe. I don’t typically do any piping on a carrot cake, but instead will use one of these ideas:
- Do a “spiral” design on the top of the cake with chopped pecans pressed into the sides (shown in these photos).
- Flip that and do a spiral or ribbed design on the sides and press chopped pecans around the top outer edge.
- You can also save some frosting and tint it orange and green and pipe little carrots on the top of the cake.

Make-ahead, storage, and freezing tips
Carrot cake is a wonderful candidate for making ahead, so it’s a perfect choice when you don’t want to be baking and frosting a cake at the last minute!
- Storage: Leftover cake should be stored in an airtight container (or wrapped tightly in plastic wrap) in the refrigerator for up to 5 days.
- Make-Ahead: The cake layers can be baked, cooled, and wrapped in plastic wrap up to 2 days before frosting and assembling. The entire cake can be assembled and refrigerated for up to 1 day before serving.
- Freezing Instructions: The cake layers can be baked, cooled, wrapped in plastic wrap, and placed into a freezer zip-top resealable bag and frozen for up to 3 months before thawing in the refrigerator overnight and proceeding with the recipe. The entire cake can be wrapped in plastic wrap, then aluminum foil, and frozen for up to 1 month; thaw in the refrigerator overnight.
If you like carrot cake, you’ll love these:
- Hummingbird Cake
- Carrot-Zucchini Bars with Cream Cheese Icing
- Apple Cupcakes with Cinnamon-Cream Cheese Frosting
- 158 Easter Recipes

Carrot Cake Recipe
I highly, highly recommend this cake for any dessert-worthy occasion. Made completely from scratch and incredibly versatile, meaning that you can create the exact carrot cake that you will love. Make it and enjoy it sometime soon!
If you make this recipe and love it, remember to stop back and give it a 5-star rating - it helps others find the recipe! ❤️️

Carrot Cake Recipe
Ingredients
For the Carrot Cake
- 2½ cups (300 g) all-purpose flour
- 1¼ teaspoons (1.25 teaspoons) baking powder
- 1 teaspoon baking soda
- ½ teaspoon (0.5 teaspoon) salt
- 2 teaspoons ground cinnamon
- 4 eggs
- 1½ cups (298 g) granulated sugar
- ½ cup (107 g) light brown sugar
- 1½ cups (297 g) vegetable oil
- 2 teaspoons vanilla extract
- 3 cups (297 g) peeled grated carrots
- 8 ounce (227 g) can crushed pineapple, drained
- 1 cup (114 g) finely chopped pecans
- 1 cup (149 g) raisins
- ½ cup (43 g) sweetened shredded coconut
For the Cream Cheese Frosting
- 1 cup (227 g) unsalted butter, at room temperature
- 4 cups (454 g) powdered sugar
- 2 teaspoons (1.5 teaspoon) vanilla extract
- ½ teaspoon (0.5 teaspoon) salt
- 16 ounces (454 g) cream cheese, chilled and cut into 16 pieces
To Garnish
- Chopped pecans
Instructions
- Make the Carrot Cake: Preheat oven to 350 degrees F. Grease three 9-inch cake pans, line the bottoms with a round of parchment, grease the parchment, then flour the pans and tap out the excess. Set aside.
- In a medium bowl, whisk together the flour, baking powder, baking soda, salt, and cinnamon.
- In a large bowl, whisk together the eggs, sugars, vegetable oil, and vanilla extract until thoroughly combined and there are no lumps of brown sugar. Add the flour mixture and, with a rubber spatula, gently stir until mostly combined. Add the carrots, pineapple, pecans, raisins and coconut and fold together until thoroughly combined.
- Divide the batter evenly between the three prepared cake pans and bake until a toothpick inserted in the center comes out with clean, 22 to 28 minutes. Cool the cakes in the pans for 10 minutes, then turn out onto wire racks to cool completely.
- Make the Cream Cheese Frosting: Using an electric mixer, beat the butter, powdered sugar, vanilla, and salt on low speed until smooth, then mix for an additional 2 minutes, scraping down the bowl as needed.
- Increase the speed to medium-low and add the cream cheese one piece at a time and mix until smooth, then mix for an additional 2 minutes.
- Assemble the Carrot Cake: Place one cake layer on a serving platter and spread with 1 cup of the cream cheese frosting. Top with a second cake layer and again spread with 1 cup of the cream cheese frosting. Place the final cake layer on top, top-side-down (so the bottom of the cake is actually facing up), then frost the top and sides with the remaining cream cheese frosting and garnish the sides with chopped pecans, if desired. Serve immediately or refrigerate, covered, until ready to serve. The cake can be made up to 1 day in advance and leftovers can be stored in the refrigerator, in an airtight container for up to 1 week.
Notes
- Equipment: Three 9-inch round cake pans / Box grater
- Vegetable Oil: Do not use butter in place of vegetable oil, but you can use canola oil or another neutral-flavored oil.
- Add-in Substitutions: You can omit the coconut, pecans and/or the raisins in the cake without making any other adjustments to the batter, but the cake may bake more quickly so start checking for doneness sooner.
- 8-inch round pans: Prepare as directed but bake for 27 to 35 minutes.
- 9x13-inch pan: Bake in a greased 9x13-inch pan until a toothpick inserted in the center comes out clean, 45 to 50 minutes.
- Bundt pan: Generously grease a 10 to 12-cup Bundt pan and bake for 60 to 75 minutes.
- Cupcakes: Fill standard muffin cups two-thirds full and bake for 20 to 22 minutes.
- Storage: Leftover cake should be stored in an airtight container (or wrapped tightly in plastic wrap) in the refrigerator for up to 5 days.
- Make-Ahead: The cake layers can be baked, cooled, and wrapped in plastic wrap up to 2 days before frosting and assembling. The entire cake can be assembled and refrigerated for up to 1 day before serving.
- Freezing Instructions: The cake layers can be baked, cooled, wrapped in plastic wrap, and placed into a freezer zip-top resealable bag, and frozen for up to 3 months before thawing in the refrigerator overnight and proceeding with the recipe. The entire cake can be wrapped in plastic wrap, then aluminum foil, and frozen for up to 1 month; thaw in the refrigerator overnight.
Did you make this recipe?
Leave a review below, then snap a picture and tag @thebrowneyedbaker on Instagram so I can see it!
Photography by Dee Frances




My favorite cake to make because everyone eating it always loves it! I have one question….why is the cream cheese not room temperature. I get frustrated trying to get rid of the lumps when making the frosting.
This the Best recipe ever. Enjoyed it immensely. I do add additional spices, but am extremely moist cake!
I’ve made this receipe so many times. Whoever has it loves it.
It’s a firm family favorite!
AMAZING, no substitutions, perfect as is!
my grandaughters favorite cake, I love to bake it with her! Excellent!
10 out of 10! Amazing recipe
Just an update. I made the frosting but found I had to add a lot more icing sugar to thicken it up. It’s way too little sugar for the amount of butter and cream cheese. Just added more sugar and it was fine
Great recipe!
How many cupcakes will the recipe make?
If I double the recipe can I bake it in a 1/2 sheet pan or will it be too much and overflow? Do I have to adjust the cook time or temp?
This looks so good! We’ve been finishing up some renovations at my home and my kids have been so darn helpful! I want to make a special treat for them as one of the ways to say thank you and this sounds awesome! We finally had our cabinets refaced so now that we’ve finished that, I can dive into this! Thank you for sharing!
This cake was so moist and full of awesome flavor. The frosting was perfect too. Not to sweet🤗
This recipe sounds delicious! Can the raisins be left out?
Can putting a cookie sheet under your baking pans affect the heat distribution while baking? It seemed like my 2 pans even baked at different rates. Any suggestions?! Thanks k..
I love this recipe. I made a few mods: I used the juice from the pineapple (1/2$ to replace a bit of the oil, soaked the raisins in some hit water to plump them up (they were in my cabinet for awhile), added a 1/2 tsp of nutmeg, allspice and cloves (I though about ginger and cardamom but didn’t want to muddy up the spice too much), used some praline pecans for the nuts, and finally grated the carrots with the smaller side of my grater. I also baked it in a 9×13 pan, the baking time was 45 min. Honestly your frosting recipe was different than most and it is absolute perfection, sweet and tangy. I’m not ashamed, I took those heaters to the cleaner, so good. The cake was moist and I split it in half and staked it. Bravo!
I made this recipe for Easter Brunch and everyone loved it! I did leave out nuts because my grandson has an allergy. I used a bundt pan and so probably could have gotten by with 1/2 the recipe for icing, since the cake wasn’t layered. I’m going to try freezing what’s left. I will be making this again soon!
So very happy to find a good carrot cake recipe WITH PINEAPPLE in it!!!!!
Just made this recipe and indeed it was the best! I did some alterations on preference:
I toasted 2 tsp of cinnamon, 1tsp of ginger and nutmeg. Used 1/2 cup of coconut oil and 1 cup vegetable oil. I didn’t have any coconut flakes and was too lazy to buys some. I had soaked dates in rum for 1 few days in place of raisins. I had a bunch of lemons, so grated some and used the juice for the frosting. I was mad at NONE of these changes as this was the BEST CAKE I HAVE EVER MADE. Can’t wait to make it again. I plan to use unsweetened coconut flakes as I found it just sweet enough. Thank you for sharing!
This is the absolute best carrot recipe EVER! I make it many times per year for birthdays and other special events. Don’t change a thing – the recipe is perfect as written.
My husband is very particular about carrot cake. That being said, this recipe is hands down the BEST carrot cake!!!!He requested every year for his birthday.
I love your cream cheese frosting for your carrot cake .
I want to use it for chocolate cake.
Can I add raspberry jam to it?
If so, how much jam and do I need to change anything?
Hello Michelle, I am wondering what happened to your original carrot cake recipe from a few years ago – the one without pineapple and brown sugar? I loved that one it was a family favorite and unfortunately I moved and can no longer find it. I had it pinned but the pin now comes to this new version. Thank you for your time – Anne-Marie
Hi Anne-Marie, did you ever find the original recipe? It was a family favorite of mine too. Thanks!!