Classic Carrot Cake With Cream Cheese Frosting
Everyone needs a good carrot cake recipe in their repertoire, and if you’re still searching for the one, I think you’ll love this classic pairing of moist, fluffy, beautifully spiced sponge cake covered with an easy homemade cream cheese frosting! It’s the ultimate crowd-pleaser—whether you’re baking for Easter, a birthday, or just because carrot cake sounds like a good idea (which it always is).
This recipe keeps things simple yet absolutely delicious, using freshly grated carrots for moisture, just the right amount of cinnamon, ginger, nutmeg, and cloves for warmth, and a silky-smooth cream cheese frosting that ties everything together. If you love a soft, perfectly balanced carrot cake that comes together with ease, you’re in the right place.

Ingredients
For the Cake:
- All-purpose flour
- Baking powder
- Baking soda
- Ground cinnamon
- Ground ginger
- Ground nutmeg
- Ground cloves
- Salt
- Granulated sugar
- Brown sugar
- Vegetable oil
- Eggs
- Vanilla extract
- Grated carrots
- Chopped walnuts or pecans (optional)
For the Cream Cheese Frosting:
- Cream cheese
- Unsalted butter
- Powdered sugar
- Vanilla extract
- Milk (optional for desired consistency)

Step-by-Step Instructions for Making This Carrot Cake Recipe
There’s a printable recipe card at the end of this post, complete with ingredients, measurements, and instructions. Feel free to print it out to use at home and add it to your personal cookbook! Here, I’m going to share some snaps to guide you along the way…
- Preheat the oven: Preheat your oven to 350°F (175°C). Grease and flour two 9-inch round cake pans.
- Mix dry ingredients: In a large bowl, whisk together the flour, baking powder, baking soda, cinnamon, ginger, nutmeg, cloves, and salt. Set aside.

- Combine wet ingredients: In another bowl, whisk the sugars, oil, eggs, and vanilla extract until smooth and combined.

- Incorporate carrots: Gradually stir the grated carrots into the wet ingredients.
- Combine dry and wet mixtures: Add the dry ingredients to the wet mixture, stirring until just combined. If using, fold in the chopped nuts.

- Bake the cakes: Divide the batter evenly between the prepared cake pans. Bake for 35-40 minutes or until a toothpick inserted into the center comes out clean. Allow the cakes to cool in the pans for 10 minutes, then transfer them to a wire rack to cool completely.

- Prepare the frosting: Beat the cream cheese and butter together until smooth and creamy. Gradually add the powdered sugar, vanilla extract, and milk (if needed for spreading consistency) and beat until well combined.

- Assemble the cake: Once the cakes are completely cool, spread a thick layer of cream cheese frosting over the top of one cake layer. Place the second layer on top and frost the top and sides of the cake.

- Garnish: Optionally, garnish with additional chopped nuts, shredded coconut, or carrot decorations.

FAQs About This Recipe
Can I make this cake ahead of time?
Yes! Carrot cake actually gets even better after a day or two as the flavors meld together. You can bake it 1-2 days in advance, store it covered at room temperature (if unfrosted) or in the fridge (if frosted), and enjoy when ready. It’s a great choice for prepping in advance for a special event like a birthday or a party when you want to keep the day as fuss-free as possible.
How do I store this cake?
If unfrosted, you can keep it covered at room temperature for up to 2 days. Once frosted, store it in the fridge in an airtight container for 3-5 days. Let it sit at room temperature for 15–20 minutes before serving for the best texture.
Can I freeze this carrot cake?
Yes! For best results, freeze the cake layers separately, tightly wrapped in plastic wrap, for up to 3 months. If freezing the fully frosted cake, place it uncovered in the freezer for an hour until the frosting firms up, then wrap it in plastic wrap and freeze. Thaw overnight in the fridge before serving.
Do I have to grate my own carrots, or can I use pre-shredded?
Freshly grated carrots are best because they add more moisture to the cake. Pre-shredded store-bought carrots are often too dry and coarse, which can affect the texture of the cake.
How do I make my carrot cake extra moist?
- Use freshly grated carrots for natural moisture.
- Don’t overmix the batter—stir just until combined.
- Bake just until a toothpick comes out clean—overbaking dries it out.
Can I add raisins?
Absolutely! Raisins or even shredded coconut add sweetness. Fold them into the batter before baking for a little extra texture.
Can I make this as cupcakes instead of a cake?
Yes! Simply divide the batter into lined cupcake tins and bake at the same temperature for 18-22 minutes, or until a toothpick comes out clean.
What can I use instead of cream cheese frosting?
If you’re not a fan of cream cheese frosting, you could try:
- Buttercream frosting – Classic vanilla or cinnamon buttercream pairs beautifully with carrot cake.
- Whipped cream frosting – Light and airy, perfect if you want a less sweet topping.
- Mascarpone frosting – Similar to cream cheese but milder and smoother in flavor.
- Glaze or powdered sugar dusting – Keep it simple with a drizzle of vanilla or maple glaze.

Troubleshooting Your Carrot Cake: Common Issues & How to Fix Them
I’ve kitchen-tested this recipe many times, but baking is an art and a science, and sometimes things can go wrong along the way. Tiny details can really matter, and in this section, I’m going to discuss some common problems and how to fix them:
1. My Carrot Cake is Dry – What Happened?
Possible Causes:
- Overbaked – Even a few extra minutes in the oven can dry it out.
- Not enough moisture – Freshly grated carrots provide moisture, but if you used pre-shredded ones, they might be too dry.
- Too much flour – If you scoop flour directly from the bag, you might be adding too much. Always spoon and level your flour for accuracy.
How to Fix It:
- Next time, bake just until a toothpick comes out with a few moist crumbs, not completely clean.
- Use freshly grated carrots for maximum moisture.
2. My Carrot Cake is Too Dense – What Went Wrong?
Possible Causes:
- Overmixing – Too much stirring can make the cake heavy and dense.
- Old baking powder or baking soda – These lose potency over time, meaning your cake won’t rise properly.
How to Fix It:
- Mix just until combined—stop as soon as you don’t see streaks of flour.
- Check your baking soda and baking powder (they should be fresh and active).
- Stick to the exact ingredient measurements.
3. My Cake Sank in the Middle – Why?
Possible Causes:
- The cake was underbaked—if the center is still too wet, it won’t hold its structure.
- The oven door was opened too early, causing a drop in temperature. Resist the urge to peek!!
- Too much leavening—excess baking soda or baking powder can make the cake rise too fast and then collapse.
How to Fix It:
- Always bake until a toothpick inserted in the center comes out clean.
- Avoid opening the oven door too soon.
- Double-check your measurements for baking soda and baking powder to prevent over-rising.
4. My Cream Cheese Frosting is Runny – What Should I Do?
Possible Causes:
- The cream cheese and butter were too warm when mixed.
- Too much liquid was added.
- Overbeating—cream cheese can break down and become too soft when overmixed.
How to Fix It:
- Chill the frosting in the fridge for 15-30 minutes before spreading.
- Use cold cream cheese.
- If the frosting is still too soft, add more powdered sugar one tablespoon at a time until it thickens.
5. My Frosting is Too Sweet – Can I Fix It?
Possible Fixes:
- Add a pinch of salt to balance the sweetness.
- Mix in a little extra cream cheese for a tangier flavor.
- If the frosting is already made, try adding a splash of lemon juice to cut the sweetness.
6. Can I Fix an Overbaked Cake?
If it’s slightly dry:
- Brush the layers with a simple syrup (equal parts sugar and water, heated until dissolved) to add moisture.
- Let the cake sit overnight—carrot cake often softens as it rests.
If it’s very dry:
- Use it to make cake truffles by crumbling it and mixing it with a little frosting, then rolling into balls.
- Turn it into a bread pudding-style dessert with a warm milk mixture poured over.


Classic Carrot Cake With Cream Cheese Frosting
Ingredients
For the Cake:
- 2 cups all-purpose flour
- 1 ½ tsp baking powder
- 1 tsp baking soda
- 1 ½ tsp ground cinnamon
- ½ tsp ground ginger
- ¼ tsp ground nutmeg
- ¼ tsp ground cloves
- ½ tsp salt
- 1 cup granulated sugar
- ¾ cup brown sugar packed
- 1 cup vegetable oil
- 4 large eggs
- 2 tsp vanilla extract
- 2 ½ cups grated carrots about 4 medium carrots
- ½ cup chopped walnuts or pecans optional
For the Cream Cheese Frosting:
- 8 oz cream cheese room temperature
- ½ cup unsalted butter room temperature
- 3 cups powdered sugar
- 1 tsp vanilla extract
- 1-2 tbsp milk optional for desired consistency
Instructions
- Preheat the oven: Preheat your oven to 350°F (175°C). Grease and flour two 9-inch round cake pans.
- Mix dry ingredients: In a large bowl, whisk together the flour, baking powder, baking soda, cinnamon, ginger, nutmeg, cloves, and salt. Set aside.
- Combine wet ingredients: In another bowl, whisk the sugars, oil, eggs, and vanilla extract until smooth and combined.
- Incorporate carrots: Gradually stir the grated carrots into the wet ingredients.
- Combine dry and wet mixtures: Add the dry ingredients to the wet mixture, stirring until just combined. If using, fold in the chopped nuts.
- Bake the cakes: Divide the batter evenly between the prepared cake pans. Bake for 35-40 minutes or until a toothpick inserted into the center comes out clean. Allow the cakes to cool in the pans for 10 minutes, then transfer them to a wire rack to cool completely.
- Prepare the frosting: Beat the cream cheese and butter together until smooth and creamy. Gradually add the powdered sugar, vanilla extract, and milk (if needed for spreading consistency) and beat until well combined.
- Assemble the cake: Once the cakes are completely cool, spread a thick layer of cream cheese frosting over the top of one cake layer. Place the second layer on top and frost the top and sides of the cake.
- Garnish: Optionally, garnish with additional chopped nuts, shredded coconut, or carrot decorations.
If you’ve enjoyed this recipe, I’d love it if you could take a minute to leave a review below – it helps me to create and develop more sweet treats that you’ll enjoy making at home! You can also follow along on Pinterest to discover more ideas.
