This post may contain references to products from one or more of our advertisers. Oh Sweet Basil may receive compensation when you click on links to such products.
If you’re searching for the best carrot cake recipe, you’re in the right place. This is the carrot cake I come back to every single time! It’s perfectly moist, deeply spiced, and layered with rich cream cheese frosting.
No raisins, no nuts, no weird add-ins trying to steal the spotlight. Just classic carrot cake flavor done really, really well.
I only had carrot cake for the first time a few years ago. My good friend, Melissa Brandley was in town for the Sundance Film Festival and we went out to dinner for a good ol’ catch up on all things in life. We laughed until our sides hurt, cried together right there in the restaurant and had the most delicious carrot cake. That carrot cake inspired me to create this recipe, my Favorite Carrot Cake.
I’m not a fan of carrot cakes that are full of all sorts of ingredients like orange peel, candied ginger, walnuts, pecans, and raisins. At that point it gets too busy and almost doesn’t even seem like a cake anymore. I want fresh, moist and flavorful, and I want it to taste like a carrot cake.

Why This is the Best Carrot Cake Recipe
This really is the best carrot cake recipe because it keeps things simple and lets the cake shine. It’s incredibly moist, perfectly spiced, and made without raisins, nuts (optional), or distractions. The carrots melt right into the batter, the crumb stays soft for days.
The Secret to a Perfectly Moist Carrot Cake
The secret to a moist carrot cake is the carrots of course! The finely shredded carrots soften as the cake bakes and help the cake stay tender. Using oil instead of butter as the fat also helps the cake stay super moist.

Ingredients You’ll Need for Carrot Cake from Scratch
- All Purpose Flour: The sturdy base that gives the cake structure while keeping the crumb soft and tender.
- Baking Powder: Adds just enough lift to help the cake rise evenly.
- Baking Soda: Works with the sugars and carrots to create a light texture and golden color.
- Salt: Balances the sweetness and enhances all the warm spices.
- Pumpkin Pie Spice: A blend of cinnamon, nutmeg, and ginger that gives carrot cake its signature flavor without overpowering it.
- Sugar: Sweetens the cake and helps create a moist, tender crumb.
- Brown Sugar: Adds moisture and a subtle caramel depth that keeps the cake rich and soft.
- Oil: The key to a super moist carrot cake that stays soft for days.
- Apple Sauce: Adds natural moisture and tenderness without weighing the cake down.
- Vanilla Extract: Rounds out the flavors and adds warmth to the cake.
- Eggs: Bind everything together and give the cake structure and richness.
- Carrots: Finely shredded carrots melt into the batter, adding moisture, sweetness, and classic carrot cake texture.
- Walnuts (optional): Add a little crunch and nutty contrast, if you like a bit of texture in your cake.
Frosting
- Butter: Creates a smooth, rich base for the frosting.
- Cream Cheese: Adds tang and creaminess that perfectly balances the sweet cake.
- Vanilla Extract: Enhances the flavor and keeps the frosting from tasting flat.
- Powdered Sugar: Sweetens and thickens the frosting while keeping it silky smooth.
- Walnuts (optional): Optional for topping, adding crunch and a classic carrot cake finish.

How to Make the Homemade Carrot Cake
- Prep: Preheat the over to 350℉ and line two 8-inch round pans with parchment paper and grease and flour the sides.
- Dry Ingredients: Whisk all the dry ingredients together in a large bowl.
- Wet Ingredients: In a separate bowl, whisk together all the wet ingredients until smooth. Add the eggs one at a time and stir in after each addition.
- Fold: Add the carrots and fold them into the wet ingredients.
- Combine: Add the wet ingredients to the dry ingredients and mix until just combined. Don’t over-mix!!
- Bake: Divide the batter evenly between the two prepared pans and bake for 40 minutes or until a toothpick comes out clean from the center of each cake.
- Cool: Let the cakes cool for 10 minutes and then turn out onto a wire cooling rack.
- Make Frosting: While the cake is cooling make the frosting by mixing all the ingredients together in a mixing bowl.
- Frost: Once the cake has cooled completely, frost the cake (see section below for tips on frosting a layer cake) and sprinkle the walnuts if desired.
Carrot Cake FAQs
Pumpkin pie spice is the flavor I need in a carrot cake. It contains cinnamon, nutmeg AND ginger which totally makes a huge difference!
Besides the pumpkin pie spice, the other thing that must be in a carrot cake is carrots of course! The carrots should be finely shredded so that they are small enough to cook through and become tender. If you put carrots in a cake with a bigger grate, they are going to be totally noticeable and slightly crunchy. That’s just not what I’m after in a cake!
You will want to buy whole carrots for this. Baby carrots just don’t have quite the same flavor and sweetness that you get from whole carrots. I also can’t think of many things worse than grating a million baby carrots! Doesn’t that sound miserable? A food processor would be a must! If baby carrots are all you have, they will work, but use whole carrots if possible!

Why Carrot Cake Sometimes Sinks (And How to Prevent It)
I’ve read that a common problem with carrot cake is having the cake fall in the middle. There are several things that could cause this, but the most common reason is under baking. Other reasons that can lead to a cake with a sunken center include:
- Not enough liquid in the batter
- Over-mixed batter
- Oven temperature too low
- Cake contains too much fat and/or sugar and/or leavening
- Opening oven door can cause a sudden reduction of heat
Make sure that you measure all the ingredients carefully and don’t over-mix the batter. Test the doneness of the cake layers before removing them from the oven by poking a toothpick into the center of each layer. If it comes out clean or with a few crumbs, it is ready!
How to Frost a Layer Cake Like a Pro
Frosting a layered cake is one of those things that is easier said than done. But it really isn’t hard if you have a few tricks up your sleeve. Here are my tips for making it easy on yourself and ending up with a gorgeous cake:
- chill the cake first so it’s easier to frost (about 1-2 hours)
- start with a thin first coat to catch all the crumbs and chill again
- pile a large amount of frosting on the top and then push it down the side, don’t start frosting the sides first
As long as we are talking about frosting, let me tell you how I made the carrot decorations for this cake. I melted orange and green melting chocolate wafers (white chocolate could be used as well and dyed using food gel) and put them in a piping back. Then I piped the carrots on parchment paper and refrigerated them until firm. Easy peezy!

Make Ahead, Freezing, and Storage Tips
Carrot cake actually gets better over time, so it is a great cake to make ahead. Making it a day or two before you plan to eat it is definitely recommended. An unfrosted cake can be stored at room temperature for 2-3 days or frosted in the refrigerator for 5-7 days. Allow the cake to come to room temperature before serving. Cake should always be stored in an airtight container.
Carrot cake also freezes great. You can freeze it frosted or unfrosted in an airtight container for up to 4 months. When you are ready to eat it, thaw it overnight in the refrigerator and bring it to room temperature before serving.

This truly is the best carrot cake recipe when you want something classic, dependable, and downright delicious. Whether you’re baking for a holiday, a birthday, or just because carrot cake sounds like the best idea, this recipe won’t let you down.
More CAKE RECIPES You Have to Try:
Watch This Tutorial Video…

