This homemade Carrot Cake is everything a classic dessert should be: incredibly moist, warmly spiced, packed with freshly grated carrots, and finished with a rich, silky cream cheese frosting.
Every bite is filled with comforting flavors of cinnamon, brown sugar, vanilla, and sweet carrots. Chopped pecans add a delicious crunch, while optional crushed pineapple gives the cake even more moisture and a subtle fruity sweetness.
It is the perfect dessert for Easter, birthdays, Mother’s Day, Thanksgiving, Sunday dinner, church gatherings, potlucks, or any time you want a bakery-style cake made right in your own kitchen.
The best part? This cake actually tastes even better the next day after the flavors have had time to blend!
⏱️ Prep Time: 30 minutes
🔥 Bake Time: 30–35 minutes
❄️ Cooling Time: About 1 hour
🕒 Total Time: About 2 hours
🍽️ Servings: 12–14 slices
🎂 Pan Size: Two 9-inch round cake pans
Ingredients
For the Carrot Cake
- 2 cups all-purpose flour
- 2 teaspoons baking soda
- 2 teaspoons ground cinnamon
- ½ teaspoon ground nutmeg
- ¼ teaspoon ground ginger
- ½ teaspoon kosher salt
- 1 cup vegetable oil or canola oil
- 1 cup granulated sugar
- 1 cup packed light brown sugar
- 4 large eggs, room temperature
- 2 teaspoons vanilla extract
- 3 cups finely grated fresh carrots
- ¾ cup chopped pecans or walnuts
- ½ cup well-drained crushed pineapple, optional
- ½ cup sweetened shredded coconut, optional
- ½ cup raisins, optional
For the Cream Cheese Frosting
- 16 ounces full-fat block cream cheese, softened
- ½ cup unsalted butter, softened
- 4 cups powdered sugar
- 2 teaspoons vanilla extract
- A small pinch of salt
- 1–2 tablespoons heavy cream or milk, if needed
Optional Garnishes
- Chopped toasted pecans
- Carrot curls
- Shredded coconut
- A light sprinkle of cinnamon
- Decorative frosting swirls
Instructions
1. Prepare the Oven and Cake Pans
Preheat your oven to 350°F.
Grease two 9-inch round cake pans with butter or nonstick cooking spray. Line the bottoms with parchment paper, then lightly grease the parchment.
Dust the pans with a small amount of flour and tap out the excess.
Preparing the pans carefully helps the cakes release cleanly after baking.
2. Grate the Carrots
Wash, peel, and finely grate the carrots using the small or medium holes of a box grater.
You will need approximately 3 cups of loosely packed grated carrots.
Freshly grated carrots are strongly recommended. Pre-shredded carrots from the grocery store are often too dry and thick, which can affect the cake’s texture.
Do not squeeze the moisture from the carrots. Their natural moisture helps create a soft, tender cake.
3. Combine the Dry Ingredients
In a medium bowl, whisk together:
- Flour
- Baking soda
- Cinnamon
- Nutmeg
- Ginger
- Salt
Whisk for approximately 30 seconds so the spices and baking soda are evenly distributed throughout the flour.
Set the bowl aside.
4. Mix the Wet Ingredients
In a large mixing bowl, whisk together the vegetable oil, granulated sugar, and brown sugar.
Add the eggs one at a time, whisking well after each addition.
Add the vanilla extract and continue whisking until the mixture looks smooth and evenly combined.
5. Add the Dry Ingredients
Gradually add the dry ingredients to the wet mixture.
Use a rubber spatula or wooden spoon to fold everything together just until no dry flour remains.
Avoid overmixing. Too much mixing can develop the gluten in the flour and make the cake dense instead of tender.
6. Fold in the Carrots and Mix-Ins
Add the grated carrots and chopped pecans.
When using crushed pineapple, drain it thoroughly before adding it. Excess pineapple juice can make the batter too wet.
Add the coconut or raisins when desired.
Fold gently until all ingredients are evenly distributed.
7. Divide the Batter
Divide the batter evenly between the prepared cake pans.
Use a kitchen scale for the most even layers, or simply alternate spoonfuls of batter between the two pans.
Smooth the tops with a spatula.
8. Bake the Cakes
Bake for 30–35 minutes.
The cakes are ready when:
- The tops spring back when lightly touched
- A toothpick inserted into the center comes out clean or with a few moist crumbs
- The edges begin to pull slightly away from the pans
Avoid overbaking, as this can dry out the cake.
9. Cool Completely
Let the cakes cool in the pans for approximately 15 minutes.
Run a thin knife around the edges, then carefully turn the cakes onto wire cooling racks.
Remove the parchment paper and allow the layers to cool completely before frosting.
Do not frost warm cake. Warm layers can melt the cream cheese frosting and cause the cake to slide.
How to Make the Cream Cheese Frosting
Place the softened cream cheese and butter in a large mixing bowl.
Beat with an electric mixer on medium speed for approximately 2–3 minutes, or until smooth and fluffy.
Add the powdered sugar one cup at a time, mixing on low speed after each addition.
Add the vanilla and salt.
Beat for another 1–2 minutes until the frosting is smooth and creamy.
When the frosting is too thick, add heavy cream or milk one teaspoon at a time.
When it is too soft, refrigerate it for approximately 15–20 minutes before assembling the cake.
How to Assemble the Cake
Place one cooled cake layer on a cake plate or serving stand.
Spread approximately 1 cup of frosting evenly over the top.
Place the second cake layer on top.
Spread a thin layer of frosting over the top and sides to create a crumb coat.
Refrigerate the cake for approximately 20 minutes, then apply the remaining frosting.
Decorate with chopped pecans, frosting swirls, carrot curls, coconut, or a sprinkle of cinnamon.
Tips for the Best Carrot Cake
✅ Use freshly grated carrots: They provide better moisture and texture.
✅ Measure flour correctly: Spoon the flour into the measuring cup and level it with a knife instead of packing it down.
✅ Use room-temperature eggs: They blend more evenly into the batter.
✅ Do not overmix: Stir only until the ingredients are combined.
✅ Drain pineapple well: Excess juice can make the cake heavy or soggy.
✅ Cool completely before frosting: This prevents the frosting from melting.
✅ Use block cream cheese: Spreadable cream cheese from a tub can make the frosting too loose.
✅ Toast the nuts: Toasted pecans or walnuts provide deeper flavor and better crunch.
How to Toast Pecans
Spread the pecans on a baking sheet.
Bake at 350°F for 6–8 minutes, stirring once halfway through.
Let them cool completely before adding them to the batter or frosting.
Flavor Variations
Classic Carrot Cake
Use carrots, pecans, cinnamon, and vanilla without pineapple, coconut, or raisins.
Pineapple Carrot Cake
Add ½ cup well-drained crushed pineapple for extra moisture and a light tropical flavor.
Carrot Coconut Cake
Add ½ cup shredded coconut and decorate the frosted cake with toasted coconut.
Carrot Cake with Raisins
Fold in ½ cup raisins.
Soak the raisins in warm water for 10 minutes, then drain and pat dry for a softer texture.
Orange Carrot Cake
Add 1 tablespoon finely grated orange zest to the batter.
Orange adds a fresh citrus flavor that pairs beautifully with cinnamon and carrots.
Carrot Cake Cupcakes
Line muffin pans with paper liners.
Fill each liner approximately two-thirds full.
Bake at 350°F for 18–22 minutes.
This recipe makes approximately 24 cupcakes.
Make-Ahead Instructions
The cake layers can be baked up to 2 days in advance.
Once completely cool, wrap each layer tightly in plastic wrap and store at room temperature or in the refrigerator.
The frosting can be prepared up to 3 days ahead and stored in an airtight container in the refrigerator.
Let refrigerated frosting soften slightly, then beat briefly before using.
Storage Instructions
Because the frosting contains cream cheese, store the finished cake in the refrigerator.
Cover it carefully and refrigerate for up to 5 days.
For the best flavor and texture, let each slice sit at room temperature for approximately 15–20 minutes before serving.
Can You Freeze Carrot Cake?
Yes.
Unfrosted cake layers can be wrapped tightly and frozen for up to 3 months.
Frosted slices can also be frozen. Place them in the freezer until firm, then wrap them securely.
Thaw overnight in the refrigerator.
What to Serve with Carrot Cake
Serve it with:
- Hot coffee
- Iced coffee
- Black tea
- Chai tea
- Cold milk
- Vanilla ice cream
- Fresh berries
- Whipped cream
This moist, beautifully spiced Carrot Cake is the kind of dessert that disappears quickly at every gathering.
It is sweet, comforting, festive, and covered in one of the creamiest frostings imaginable!
📌 Save this recipe for Easter, birthdays, holidays, or your next family celebration!
👇 Do you prefer carrot cake with pineapple, raisins, coconut, pecans—or all four? Tell us in the comments!
#CarrotCake #HomemadeCake #CreamCheeseFrosting #EasterDessert #CakeRecipe #ClassicDesserts #BakingFromScratch #HolidayDesserts #MoistCarrotCake #FamilyRecipes #BirthdayCake #SouthernDesserts #DessertIdeas #HomemadeDessert #RecipeOfTheDay
