Classic Carrot Cake with Cream Cheese Frosting
Perfect moist carrot cake recipe with cream cheese frosting. Two tender spiced layers loaded with carrots, walnuts, and raisins. Easy homemade bakery-quality cake!

Today, I fancied some carrot cake, so I asked my daughter to get all the ingredients from the store. I already have a classic carrot cake recipe that I’ve made before, but I wanted to run it by the taste test again to make sure it’s good. Hubby tried it, finished the entire slice, and remarked that it was delicious! Hope you try it and let me know.
This classic 2-layer carrot cake with cream cheese frosting brings together warm spices, sweet shredded carrots, crunchy walnuts, and plump raisins, all topped with the most decadent cream cheese frosting you’ll ever taste. Whether you’re baking for Easter, a birthday celebration, or simply because you’re craving the best carrot cake recipe, this foolproof version will become your go-to dessert.
After years of testing many carrot cake recipes in my kitchen, I believe I have this perfectly moist carrot cake that delivers bakery-quality results every single time. The secret lies in the perfect balance of oil, freshly shredded carrots, and just the right amount of spice. Let me walk you through exactly how to make this showstopping layer cake that will have everyone asking for seconds.

Why This Carrot Cake Recipe Works
This isn’t just another carrot cake from scratch. What makes this recipe special is the careful combination of ingredients that creates an incredibly moist texture without being dense or oily. Using vegetable oil instead of butter keeps the cake tender for days, while the finely shredded carrots add natural sweetness and moisture. The addition of both baking powder and baking soda ensures a perfect rise, and the warm spices of cinnamon and nutmeg give it that classic carrot cake flavor everyone loves.
The cream cheese frosting is equally important. Made with full-fat cream cheese and real butter, it’s tangy, sweet, and perfectly fluffy. This isn’t a sticky, overly sweet frosting, but rather a balanced topping that complements the spiced cake layers beautifully.

Ingredient Tips for the Best Results
When making homemade carrot cake, ingredient quality matters. Always use freshly shredded carrots rather than pre-shredded bags from the store. Those pre-shredded versions are often dry and won’t provide the moisture your cake needs. Shred your carrots finely using a box grater or food processor for the best texture throughout your cake.
For the oil, stick with neutral-flavored vegetable or canola oil. Don’t substitute with olive oil, as the flavor will be too strong. Room-temperature eggs are crucial because they incorporate more easily into the batter, creating a more uniform cake structure.
The spices shouldn’t be skipped or reduced. Ground cinnamon and nutmeg are what give carrot cake its signature warmth. If your spices have been sitting in your pantry for over a year, consider replacing them for maximum flavor impact.
Toasting the walnuts is optional, but it takes just a few minutes and dramatically improves their flavor. Simply heat them in a dry skillet over medium heat for 3 to 4 minutes, stirring frequently. The nuts will become fragrant and slightly golden.
Rehydrating the raisins might seem like an extra step, but it prevents them from absorbing moisture from your cake batter. This simple technique keeps your carrot cake incredibly moist.

Step-by-Step Baking Instructions for Classic Carrot Cake
Preparing Your Pans
Proper pan preparation is critical for layer cakes. Grease your 9-inch round cake pans thoroughly, then line the bottoms with parchment paper circles. This ensures your cakes release perfectly every time. You can also use the flour-and-spray method, coating the greased pans with a light dusting of flour.
Mixing the Batter
The mixing method for this carrot cake recipe is straightforward. Whisking the dry ingredients together first ensures even distribution of the leavening agents and spices. When combining wet and dry ingredients, mix just until you no longer see flour streaks. Overmixing develops gluten, which can make your cake tough instead of tender.
The batter will be thick and heavily loaded with carrots, nuts, and raisins. This is exactly what you want. Don’t worry if it seems dense. The leavening agents will work their magic in the oven.
Baking and Cooling
Oven temperatures can vary, so start checking your cakes at 30 minutes. Insert a toothpick in the center. It should come out clean or with just a few moist crumbs. Overbaking is the enemy of moist cake, so err on the side of slightly underbaked if you’re unsure.
Cooling is just as important as baking. Let the cakes cool in their pans for 10 to 15 minutes, then turn them out onto wire racks. They must cool completely before frosting, which takes at least an hour. Frosting warm cakes will result in melted, sliding frosting and a messy presentation.
Creating the Perfect Cream Cheese Frosting
The key to fluffy cream cheese frosting is starting with properly softened cream cheese and butter. They should be soft enough to leave an indent when pressed, but not greasy or melted. Beat them together until completely smooth with no lumps.
Gradually adding the powdered sugar prevents a sugar cloud in your kitchen and allows for better incorporation. The addition of vanilla further enhances the flavor.
Assembly and Decoration
For a professional-looking carrot cake, level your cake layers if they’ve domed during baking. A serrated knife works perfectly for this. Place your first layer on a cake stand or serving plate, spread frosting generously across the top, then add the second layer. Add the remaining cream cheese frosting on top.
Storage and Make-Ahead Tips
This carrot cake with cream cheese frosting stays moist for up to five days when stored in an airtight container in the refrigerator. You can also freeze unfrosted cake layers wrapped tightly in plastic wrap for up to three months. The frosting can be made a day ahead and refrigerated, then brought to room temperature and re-whipped before using.
This classic dessert recipe proves that some traditions never go out of style. With its perfect spice blend, incredible moisture, and tangy frosting, this is the carrot cake recipe you’ll make again and again in 2026 and beyond.


Classic 2-Layer Carrot Cake with Cream Cheese Frosting
Ingredients
Dry
- 2½ cups all-purpose flour
- 2 tsp ground cinnamon
- ½ tsp ground nutmeg
- 1 tsp baking powder
- 1 tsp baking soda
- 1 tsp salt
Wet
- 1¼ cups vegetable or canola oil
- 1½ cups granulated sugar
- 3 large eggs room temperature
- 2 tsp vanilla extract
- 2 cups finely shredded carrots about 3–4 medium carrots
- ½ cup chopped walnuts toasted if desired
- ½ cup raisins rehydrated in hot water for 10–15 min, then drained and patted dry
Cream Cheese Frosting (enough for filling + covering the cake)
- ½ cup unsalted butter slightly softened
- 8 oz package cream cheese softened
- 3½ cups confectioners or icing sugar
- 1 tsp vanilla extract
Instructions
Prep
- Preheat oven to 350°F (175°C).
- Grease two 9-inch round cake pans and line the bottoms with parchment paper (or use non-stick spray + flour).
- Toast walnuts in a dry pan for 3–4 minutes if desired (enhances flavor).
- Rehydrate raisins in hot water, drain, and pat dry.
Make the Cake Batter
- In a medium bowl, whisk together all dry ingredients: flour, cinnamon, nutmeg, baking powder, baking soda, and salt.
- In a large bowl, whisk oil and sugar together until well combined (about 1 minute). Add eggs one at a time, beating well after each. Stir in vanilla.
- Gradually add the dry ingredients to the wet mixture, stirring just until combined—do not overmix.
- Fold in shredded carrots, walnuts, and drained raisins (and pineapple/coconut if using) until evenly distributed. The batter will be thick.
- Divide batter evenly between the two prepared pans. Smooth the tops.
Bake
- Bake for 28–35 minutes (start checking at 28 min). The cakes are done when a toothpick inserted in the center comes out clean or with a few moist crumbs.
- Cool in pans for 10–15 minutes, then turn out onto wire racks to cool completely (at least 1 hour). The cakes are very moist, so they need to cool fully before frosting.
Make the Frosting
- Using an electric mixer, beat together the softened butter and cream cheese until smooth.
- On low speed, add the powdered sugar one cup at a time and continue until the mixture is smooth and creamy. Beat in the vanilla extract. Spread evenly on top of the cooled cake or cupcakes.
Assemble the Cake
- Level the cooled cake layers if domed (use a serrated knife).
- Place one layer on a plate or cake stand. Spread a generous layer of frosting on top (about ¾–1 cup).
- Add the second layer. Frost the top and sides with remaining frosting. For a rustic look, do a crumb coat first (thin layer), chill 20 min, then finish with a thicker layer. Swirls or textured sides look beautiful on carrot cake.
- Optional garnish: extra chopped walnuts or toasted pecans around the top edge, or a light sprinkle of cinnamon.
Notes
• Room temp: Up to 1 day (frosting is perishable).
• Fridge: Up to 5–6 days in an airtight container. Bring to room temp before serving for best texture.
• Freezer: Unfrosted layers freeze well (wrapped tightly) for up to 2 months.
• Make-ahead: Bake layers a day ahead; wrap and store at room temp. Frost the day you serve.
• For cupcakes: Fill liners ⅔ full and bake ~18–22 minutes (makes about 20–24).
