My absolute favorite carrot cake recipe with cream cheese frosting is one that you will LOVE too! Incredibly moist, packed with warming spices and carrot flavor, and frosted and filled with the best cream cheese frosting.
I share all my tips and tricks to ensure the most perfect and delicious carrot cake that you’ve ever tasted, and show you how to make this easy recipe as a one layer sheet cake as well.

Carrot cake recipe overview
- Moist, delicious, packed with warming spices and flavor.
- An easy carrot cake recipe, and I share several ways to adapt and elevate the flavor of your cake!
- I provide plenty of pro tips on how to get the perfect texture in your carrot cake.
- This recipe can be made as a layer cake or even as a carrot cake sheet cake (in a sheet pan).
- I share tips and tricks to ensure perfect cake layers, so you can make a gorgeous layered carrot cake.
- The recipe also includes my favorite cream cheese frosting recipe that can be used to frost and fill this moist cake. It’s the same frosting that works so well with my red velvet cake too.
What you’ll need
Ingredients for carrot cake


Carrots
Won’t be carrot cake without carrots, of course. You can use any type of carrot that you like for this recipe. Orange carrots are usually the standard, but red, yellow, or purple carrots can also be used.
Make sure to use fresh carrots that are a little sweet so that the flavor of carrots shines through in the cake. I like to peel my carrots as well, but you can choose not to if you prefer.


Wet ingredients
- Neutral tasting oil – Using vegetable oil instead of butter for a carrot cake helps to create a light open crumb. Cakes with butter have a denser crumb, and if you like that, you can absolutely use butter instead of oil here too. But I love the fluffy light texture of the carrot cake when made with oil instead of butter.
- Sugar – I use a combination of brown and white sugar for my favorite version of carrot cake. Brown sugar adds extra flavor from the molasses. But you can absolutely use all white sugar or all brown sugar as well. The sugar also plays a crucial role in how soft the final cake will be.
- Eggs – This recipe uses large eggs. The eggs add structure to the final cake crumb, while the yolks also add richness.
- Vanilla extract and salt – Both vanilla extract and salt help enhance the sweetness / flavors, and balances the flavor profile too.
- Apple sauce or crushed pineapple – For extra moisture and flavor, you can add apple sauce or even pineapple. There are even other options you can use instead to add extra flavor to your carrot cake. Here are some options I use,
- Apple sauce (store-bought or homemade)
- Crushed pineapple
- Baby food puree (I use fruit and vegetable mix of baby food puree in my cakes!)
- Mango puree
- Mashed banana
- Pureed cooked carrots (like pureed carrot baby food) that will add even more carrot flavor to the cake.
Dry ingredients
- All purpose flour
- Baking soda and baking powder – The chemical leaveners react with the acidity in the ingredients (brown sugar, fruit puree, and baking powder) to create CO2 and lift the cake batter. This creates the light fluffy crumb in the carrot cake. (As explained in detail in my baking basics guide on baking soda vs baking powder).
- Spice mix – This adds a lot of flavor to the carrot cake. You can also use pumpkin spice mix instead. I like to use,
- Cinnamon
- Ginger
- Nutmeg
- Allspice
- Cloves
- Chopped nuts – You can leave out the nuts if you like, but they do add SO MUCH flavor! I love to add pecans, while walnuts are also a very popular option. To really bring out the best flavor in the nuts, make sure to lightly roast them before adding them to the cake.
Ingredients for cream cheese frosting
My recipe for cream cheese frosting has the flavor of classic cream cheese flavor, and I share lots of crucial tips on how to maintain the classic flavor while being able to pipe and spread the frosting between cake layers AND on top!
It’s a fantastic frosting for any type of spice cake and pastry (like banana layer cake, maple pecan cake, gingerbread cupcakes, red velvet cake, and of course, cinnamon rolls).
Here’s what you’ll need for the best cream cheese frosting for carrot cake.
- Cream cheese blocks (not the tubs)
- Butter
- Confectioner’s sugar
- Salt and vanilla
- Instant vanilla pudding mix
- Cream cheese powder or milk powder
Recipe variations and additions
You can substitute and add ingredients to make carrot cake variations! These variations include,
- Carrot Cake with walnuts – Add only walnuts to the cake batter.
- Carrot cake with pecans – Add only pecans to the cake batter.
- Adding raisins – You can add raisins in addition to the nuts to add more sweetness to the carrot cake.
- Carrot cake with pineapples – I prefer adding crushed pineapple to apple sauce. This adds a lovely tropical flavor to your carrot cake. Makes the cake taste like a cross between carrot cake and hummingbird cake.
- Shredded coconut – Add unsweetened or sweetened coconut to for even more tropical flavor in your carrot cake.
- Adding baby food – I love substituting the apple sauce / pineapple with baby food! I’ve used a mango and coconut baby food packets, which add a lovely fruity flavor to the carrot cake.


Cream cheese frosting variations
- Spiced cream cheese frosting – Add the same spice powder in the cake recipe to the cream cheese frosting for a lovely, warming spiced cream cheese frosting!
- Brown butter cream cheese frosting – Substitute half the butter with brown butter to make a brown butter cream cheese frosting (like I did for this banana layer cake).
How to make moist carrot cake from scratch


Step one – Roast and chop the nuts
Since all the ingredients should be at room temperature before going into the batter, it’s important to prepare the nuts first. I like to roast the whole nuts, because this really coaxes out maximum flavor from the nuts.
You can use all walnuts, or all pecans, or a combination of both. Place the nuts on a baking tray and roast them in a preheated oven for about 10 minutes, or until they are are just a little darker and you can smell toasted nuts. For chopped nuts, this will be a much shorter bake time.
Then let the nuts cool down to room temperature. Reserve some of the nuts to decorate the cake, and chop the rest of ’em. They shouldn’t be too large, but not finely chopped either.
Step two – Grate the carrots
Wash and dry the fresh carrots. Then peel them. Make sure to use fresh carrots because they tend to be sweeter and will add better flavor.
For grating the carrots, I prefer to go with a finer shred than a course shred. Smaller pieces of carrots spread better throughout the cake batter as well. Finer pieces of carrots will help with keeping a tighter cake crumb that doesn’t crumble.
Step three – Prepare the cake pans
Butter and line three 9 inch round cake pans with parchment paper. I prefer to line the bottom with parchment paper, and butter and dust the sides with flour.
This step is optional, but you can also soak bake-even strips and wrap them around the cake pans.
Preheat the oven to 350 F / 180 C.


Step four – Prepare the dry ingredients
Place the flour, spices, baking powder, and baking soda in a large bowl. Whisk until everything is well combined. Sift the dry ingredients if needed as well to remove any lumps in the flour.


Step five – Combine the wet ingredients
To combine the wet ingredients, first whisk together the oil and sugars (image 4). Whisk well to make sure there are no lumps in your brown sugar. This is very important, because lumps in the brown sugar will lead to large sugary pockets in your carrot cake.
Then, add the eggs, vanilla, and salt (image 5). You can also add the apple sauce at the same time (though you can add it along with the carrots too). Instead of apple sauce, you can add crushed pineapple too.
However, place the pineapple in a sieve and let it sit for about 1 minute so that any excess moisture will drain out first. But DO NOT squeeze the pineapple because you do want SOME moisture in the crushed pineapple.
Step six – Start adding dry ingredients
It’s very important to mix in the dry ingredients as gently as possible. Overmixing the flour will lead to a more rubbery cake with large holes. This is also known as tunneling, and you want to avoid that.
- Add the dry ingredients to the wet ingredients in 2 – 3 additions, and use a spatula to gently fold in the dry ingredients (image 7).
- When folding in ingredients, add the next addition while there is still a little of the flour streaks left from the previous addition. This can help prevent overmixing.
Leave just some of the dry ingredients aside, so you can add it after the carrots.


Step seven – Add the carrots and nuts
While there are some white streaks from the flour still present, add the carrots and chopped nuts into the batter. You can add either walnuts or pecan, or even both (image 8)
Fold in the carrots and nuts with the spatula. But before all of it has completely mixed in, add the remaining bit of flour and fold it in together with the carrots (image 9).
Once all the carrots, chopped nuts, and flour have just mixed in well with the wet ingredients, the batter is ready (image 10).
Step eight – Fill the cake pans and bake the cake
Evenly divide the batter between the 3 cake pans. I use an ice cream scoop or a 1/4 cup measuring cup to evenly portion out the batter between the cake pans.
Evenly spread the batter in the cake pans and tap each of them on the counter top to even out the batter in the pan (image 11).
Place the cake pans in the oven (with at least 1.5 inch space between the pans) and bake until baked through. This can take between 25 – 35 minutes, and will depend on your oven and the cake pans you use as well. The cake is done when a toothpick inserted into the cake comes out fairly clean. A few dry cake crumbs on the tooth pick are absolutely OK.
Step nine – Let the cakes cool and chill
Once the cakes are baked, remove them from the oven and let them cool for a few minutes (image 12). While still warm, turn over the cake layers onto a wire rack and let them cool down to room temperature completely.
Next, wrap the cakes with plastic wrap and chill the cake layers for a few hours in the fridge until chilled. A chilled cake is easier to frost and fill, especially when working with cream cheese frosting.
How to make cream cheese icing for carrot cake
I have a detailed guide on how to make the most perfect cream cheese frosting. This recipe is different from others because,
- It has the classic cream cheese flavor,
- Isn’t too sweet at all,
- I give tips on how to ensure that the frosting stays pipeable,
- Secret ingredients that help keep the cream cheese frosting from being too runny.
The first step of making cream cheese frosting is to aerate the butter.
Next, add the confectioners sugar to make a super fluffy buttercream base for your cream cheese frosting.
After that, whisk cold cream cheese to break it down a little to prevent lumps forming in the frosting.
Finally, add the buttercream mixture and whisk to form a creamy, fluffy cream cheese frosting.
The frosting is now ready for use!


How to decorate a carrot cake
You can honestly decorate your cake however you like! You can either go with a rustic look, or a neat and professional look. You can also use different piping tips to decorate borders however you like. Just remember that cream cheese frosting softens easily, so make sure to keep the frosting cool, so that it’s easier to pipe.
But you first have to prepare the cake layers by filling them and stacking them.


Step ten – Fill the cake layers
To ensure that you have an even layer of frosting between the cake layers, use an ice cream scoop to evenly measure the same amount of frosting for each layer. Spread the frosting in an even layer on top of the cake layer.
Place the next layer on top, and repeat with the frosting, and then place the final cake layer on top. Make sure that the flattest side of the cake is facing up so that you have a lovely even layer to frost on top (images 11 – 16).


Step eleven – Crumb coat the carrot cake
This step is optional, but it does prevent cake crumbs getting on your frosting layer. Especially important if you want a cake that has a professional look.
Spread the frosting all over the sides of the cake. Use a bench scraper or an offset spatula to smoothen the sides to get the thinnest layer of frosting on the sides. Make sure the cream cheese frosting fills the gaps between the cake layers.
Then, spread a thin layer of frosting on top of the cake. This crumb coating can be used to ensure you have flat straight sides, and a flat and even top on your cake too (image 17).
Place the crumb coated cake in the fridge for at least 30 minutes (or longer), till the frosting chills and sets.


Step twelve – Final frosting and decorating
Once the crumb coating is set, spread another layer of frosting on top. This layer of frosting can either be smoothened out with a bench scraper for a neater (professional or smooth) look, OR you can swirl the frosting with a small spatula to create a more rustic look (see pictures in the post).
I personally prefer the rustic look! Use the remaining frosting to pipe decorations on the edges of the cake and use the nuts to decorate the cake.
Recipe tips for success
For the carrot cake
- Make sure the ingredients are at room temperature.
- Whisk the oil and sugar together first to ensure that there are no lumps in the brown sugar.
- Roast the nuts that you will be adding to the cake! This brings out all the flavor!
- Grate the carrots into a fine shred, rather than coarse. This will help with the moist crumb of the cake.
- Do not overmix the batter after adding the flour! Overworking the gluten will result in tunneling in the cake layers and a rubbery texture.
- Bake the cake layers until a toothpick inserted has a couple of dry cake crumbs on it when removed. This will avoid the cake layers from drying out / overbaking.
- Chill the cake layers before frosting them. This will help keep the cream cheese frosting cool, and make it easier to stack cake layers.
- When cutting the cake, use a sharp knife that is warmed up with hot tap water (and wiped dry and clean). Using a warm knife for every cut will help you get nice, clean cuts.
- And rather than pressing down on the cake, move the knife back and forth slightly to cut through the cake. Since the cake is so soft and moist, pressing down on the cake can cause the cake to break and for the frosting to squeeze out.


For the cream cheese
For a more detailed list of tips, check out my tips for perfect cream cheese frosting.
- Use room temperature butter to make the fluffiest buttercream base for the cream cheese frosting.
- Keep the cream cheese cold, so that the cream cheese frosting can stay cold. This will prevent the frosting from being too soft and runny.
- Whisk the cream cheese separately to make it smooth. This will prevent any cream cheese lumps in the final frosting.


Storage instructions
Freezing
The best way to store the carrot cake for later is to wrap and freeze the cake layers. The cake layers will freeze beautifully for up to 4 months in the freezer. But they must be well-wrapped to prevent freezer burn.
You can absolutely freeze leftover carrot cake pieces, but please note that the frosting texture might change after thawing. I wouldn’t recommend freezing an entire frosted cake.
Refrigerating
Once a carrot cake is frosted, with filling between the layers, it must be refrigerated. This is because of the cream cheese frosting. This frosting will soften at room temperature and will even melt at warmer temperatures. Unfortunately, the cake will not be stable if the frosting is starting to melt.
Therefore, I recommend storing the cream cheese frosted carrot cake in the fridge before serving. Leftovers can also be stored in the fridge for up to 4 – 5 days, provided they are stored in an airtight container.
Commonly asked questions
Yes absolutely! This recipe can be made in a 9 x 13 cake pan to make a single layer cake (quarter sheet size).
Just double this carrot cake recipe to make a single half sheet pan cake (18 x 13 inches). The baking time will vary with much larger cake pans, so to ensure even cooking, lower the oven temperature to 325 F and bake the cake a little longer.
The carrot cake layers can be made months ahead of time! Unfrosted carrot cake layers can be wrapped and frozen for up to 4 months. Just make sure to wrap them well so that they do not pick up any freezer smells or get freezer burn.
They can also be stored in the fridge for about 4 days, but the longer they are stored, the more stale they will taste.
I do highly recommend making the cream cheese frosting just before you need it. This will ensure the cream cheese frosting is airy and fluffy at the time you’re using it. The more frequently you re-whisk the frosting, the less airy and more soft the frosting becomes.
I personally prefer to use the fine shredder disc in my food processor. Just to save me time.
However, you can also use a fine shredded side of your box grater. Carrots shredded with a fine shredder will have a diameter of about ⅛ inch (3 mm).
You can use the coarse shredding option as well (about ¼ inch / 6 mm), but these large pieces of carrot can interfere with the crumb of the cake.
There can be many reasons for a cake to sink in the middle. But with this recipe, it could be one of these reasons,
1) Oven temperature was too cold – cake didn’t rise properly. Make sure to preheat your oven properly and check the oven temperature as well.
2) Underbaking the cake – the center wasn’t baked through and collapsed when removed from the oven. Make sure that the cake is baked well in the center before removing it.
3) Too much moisture in the cake – This shouldn’t be too much of an issue, as it hasn’t happened to me yet in all my carrot cake baking! But you can squeeze out just a little bit of the water from the carrots before adding it into the batter, if this happens.
This can happen if,
1) Ingredients are not properly measured. If too little flour is added to the cake, this can lead to a soggy cake. Make sure to use weight measurements.
2) Too much moisture in the cake. If your carrots have too much moisture in them, it can cause the cake to be soggy. If this happens, you can squeeze out just a little extra water / moisture from the carrots before adding it to the batter.
3) Underbaking the cake. This is the most common reason for a soggy middle in your carrot cakes. Don’t remove the cake from the oven before it’s baked through. OR lower the heat of your oven to ensure even baking throughout in the cake.


More cake recipes you’ll enjoy
Looking for more recipes?Sign up for my free recipe newsletter to get new recipes in your inbox each week! Find me sharing more inspiration on Pinterest and Instagram.
Carrot Cake With Cream Cheese Frosting
Yield: 1 x 9 inch cake with 3 layers (or an 8 inch cake with 3 layers)
Cuisine: American, Canadian, North American
Prep: 30 minutes
Chilling / Cooling time: 3 hours
Cook: 30 minutes
Total Time: 4 hours
Servings: servings
Ingredients:
Cream cheese frosting (enough to fill and frost the cake – but make 1.5 times for a thicker frosting and decorations)
Makes: 9inch round
Prevent your screen from going dark
Instructions:
Making the carrot cake batter
-
Preheat the oven to 350°F / 180°C. Spread the nuts in a single layer on a baking sheet. Place them in the preheated oven for about 7 – 10 minutes, making sure to move them around halfway through. The nuts should turn a slightly darker shade and smell toasted. Do not let them burn, so keep an eye on them.
120 g whole pecans
-
Remove the baking sheet from the oven and let the nuts cool down. Once cooled, reserve any extra nuts to decorate, and chop the rest into smaller pieces. Slightly smaller than coarse-chopped, but a little bigger than a very fine chop. Set aside.
-
Wash and dry the carrots. Peel the carrots and then shred them using the finer shredding option. The holes in the grater should be about ⅛ inch (3 mm). Set the the carrots aside.
300 g finely shredded carrots
-
Preheat the oven again to 350°F / 180°C. Prepare 3 9-inch round cake pans (or 8-inch pans) by spreading a thin layer of butter inside each cake pan. Line the bottom of the cake pans with parchment paper and dust the sides with flour. Set aside.
-
In a bowl, place a sieve on top and sift the flour, baking powder, baking soda, and spices together. Set these dry ingredients aside until needed.
310 g AP flour, 2 tsp baking powder, 1 tsp baking soda, 1.5 tsp ground cinnamon, 1 tsp ground ginger, ½ tsp ground nutmeg, ¼ tsp allspice, ¼ tsp ground cloves
-
If using crushed pineapple – Open a can of crushed pineapple and place about ¾ cup of the pineapple in a sieve over a bowl or jug. Let it sit for about 1 minute to allow any excess moisture to drain out. Knock the sieve against the bowl a few times, but don’t squeeze the juices out of the pineapple. Then measure out the amount of crushed pineapple needed and set it aside.
130 g apple sauce
-
In a large mixing bowl, mix the oil, salt, and both white and brown sugar together. Whisk this mixture to break any lumps in the brown sugar.
200 g brown sugar, 100 g white sugar, 220 g vegetable oil, ½ tsp fine salt
-
Add the eggs, vanilla, and apple sauce or partially drained crushed pineapple, and whisk to combine well. You can use a hand whisk or your stand mixer for this – just make sure that the eggs are mixed in well.
4 large eggs, 2 tsp vanilla extract, 130 g apple sauce
-
When the wet ingredients are mixed in well, it’s time to add the dry ingredients.
-
Add about ⅓ of the dry ingredients into the wet ingredients. Gently fold it in to mix. While there is still some white streaks visible, add another ⅓ of dry ingredients into the batter.
-
Fold this into the batter, making sure there are no lumps. While there are still some white streaks visible, add the shredded carrots and chopped nuts.
-
Gently fold in these ingredients into the batter. But before they are completely mixed through, add the last of the dry ingredients and fold it in along with the carrots and nuts until everything is well-mixed. Take care not to overmix the batter.
-
Using a measurement cup or ice cream scoop, evenly divide the batter between the 3 cake pans. Use an offset spatula to spread the batter evenly and knock each cake pan on your countertop a few times to evenly spread out the batter.
-
Bake in a preheated oven for about 30 – 40 minutes, rotating once halfway through, if needed.
-
The cake is done when a clean toothpick inserted into the center of the cake comes out with just a few dry crumbs attached.
-
Remove the cake from the oven and let it cool for a few minutes. While the cake is still warm, flip the cakes over onto a wire rack to cool completely. I like to place parchment paper on the wire rack, so that the cake layers are resting on parchment paper.
-
Once the cake layers are completely cooled, wrap each layer separately with plastic wrap and place in the fridge to chill overnight – or in the freezer for a few hours to chill quickly.
Cream cheese frosting
-
Follow the instructions here to make the cream cheese frosting recipe.
450 g cream cheese blocks, 300 g unsalted butter, ½ tsp fine sea salt, 450 g confectioner’s sugar, 2 tsp vanilla extract, 2 tsp fresh lemon juice, 2 tbsp instant vanilla pudding powder, 2 tbsp cream cheese powder or milk powder
-
Use immediately.
Filling the layer cake and decorating
-
Place a chilled cake layer on a plate or cake turntable. Make sure to keep the flat side facing down.
-
Using an ice cream scoop or cookie scoop, portion out an amount of frosting on top of the cake layer. I use about 4 – 5 cookie scoops. Evenly spread this frosting on top using an offset spatula.
-
Place the second layer on top and repeat with an equal amount of frosting.
-
Finally place the third layer on top, with the flat side of the cake now facing up. Gently press down on the cake to help the cake layers stick to each other.
-
Apply a generous amount of cream cheese frosting on the sides of the cake, making sure to gently fill in the gaps between the cake layers as well. Crumb coat the sides of the cake by smoothing the sides of the cake, so that a very thin layer of frosting is applied to the sides. Spread a small amount of frosting on top of the cake to crumb coat the top as well.
-
As you do this, make sure the sides and top of the cake are straight. Place the cake in the fridge to set the crumb coating (about 30 – 60 minutes).
-
Once the crumb coating is set, spread the final layer of frosting on top.
-
For a simple cake, just spread a layer of frosting on top and decorate the top with the remaining nuts. OR you can spread another layer of frosting on the sides of the cake as well.
-
For a rustic look, spread the frosting with an offset spatula and create swirls with the spatula or spoon (see pictures in the post). Use a bench scraper to create smooth sides if you like a more professional finish.
-
Decorate the cake with the extra nuts that you set aside at the beginning.
-
Store the cake in the fridge until you’re ready to serve.
Serving tips
-
When cutting the cake, use a warm, dry knife to cut slices. Warm the sharp knife blade by holding it under hot tap water and then wipe it clean before cutting into the cake. And rather than pressing down on the cake, use a small back and forth sawing motion to cut clean slices. Clean and warm the knife between each cut to get neat slices.
Tips & Tricks
This recipe will make
- 1 x 9 inch cake with 3 layers (or an 8 inch cake with 3 layers)
- Or 1 x 9 inch square cake with 2 layers
- Or 1 layer 9 x 13 sheet cake.
- Double the recipe to make a half sheet pan of carrot cake (18 x 13 inches).
Make ahead tips
The carrot cake layers can be made four months in advance, but must be wrapped and frozen. Let the cake layers thaw in the fridge before using.
The cake layers can be wrapped and chilled in the fridge for 4 days.
Leftovers can also last 4 – 5 days in the fridge, but make sure they are stored in an airtight container. The longer it’s stored in the fridge, the more stale the cake will taste.
Alternatives for nuts
You can substitute the pecans with walnuts, or add both. Make sure the weight of the nuts that will be added is the same as stated in the recipe.
If you want a nut free carrot cake, substitute the nuts with shredded desiccated coconut. I prefer unsweetened coconut.
Instead of apple sauce
- You can use partially drained crushed pineapple (as mentioned in the recipe).
- Or pureed baby food (make sure not to use any with meat or grains).
- Or mashed bananas
Nutrition Information:
Serving: 1sliceCalories: 524kcal (26%)Carbohydrates: 74g (25%)Protein: 9g (18%)Fat: 22g (34%)Saturated Fat: 11g (69%)Polyunsaturated Fat: 3gMonounsaturated Fat: 7gTrans Fat: 1gCholesterol: 85mg (28%)Sodium: 485mg (21%)Potassium: 298mg (9%)Fiber: 2g (8%)Sugar: 56g (62%)Vitamin A: 3683IU (74%)Vitamin C: 2mg (2%)Calcium: 164mg (16%)Iron: 2mg (11%)
“This website provides approximate nutrition information for convenience and as a courtesy only. Nutrition data is gathered primarily from the USDA Food Composition Database, whenever available, or otherwise other online calculators.”