My Grandma’s homemade carrot cake recipe is filled with shredded carrots, crunchy walnuts, and warm spices. It’s easy to make with the perfect ratio of moist cake to rich cream cheese frosting. Carrot cake is perfect for holidays like Easter, birthday parties, or any occasion that calls for a delicious, classic cake made from scratch.
If you love carrot cake, you’ll have to try my banana cake recipe next. For a dessert that combines the two, check out my hummingbird cake!

This carrot cake recipe is wonderfully simple, but it’s certainly not basic. This cake is ultra-moist, full of spice, and the texture is perfect. It’s Grandma’s recipe, so you know it’s good. Every layer is loaded with shredded carrots and walnuts.
Obviously, this has the most amazing cream cheese frosting, because really, is there any other way to frost a carrot cake? There’s plenty of frosting to go around, so expect every bite to be better than the next. Carrot cake is a year-round family favorite, and I hope you’ll love it as much as we do.
For a muffin version of this classic dessert, make my carrot cake muffins. And if you love this recipe, I think you’ll also like to try my sweet potato cake. The caramel cream cheese frosting is to die for!
Why This is the Best Homemade Carrot Cake
- Just like grandma used to make. Carrot cake is the type of dessert that you can dress up or down, but I love this recipe in it’s home-baked, almost rustic form. Two thick layers of moist cake with a slab of frosting in between that’s almost as thick as the cake!
- Oil-based. I use oil instead of butter in most of my homemade cake recipes, but nothing showcases the benefits more than a carrot cake. You don’t need to spend time creaming the butter and sugar, and oil creates a truly tender, light crumb that hugs the shredded carrots and nuts in this cake so beautifully.
- Easy method. Apart from the carrots, this cake recipe uses pantry staples. You don’t even need a mixer to make the cake batter (though it does come in handy when making the frosting).
- Crowd-pleasing. This is a generational carrot cake recipe with a lot of years spent perfecting it. It’s been a part of plenty of birthdays, holidays, baby showers, and I even made it as a wedding cake.

Ingredient Notes for Carrot Cake
These are the key ingredients with notes and substitutions. Scroll to the recipe card for the full list with exact measurements.
- Raw Carrots – Finely chopped or shredded. See my tip below.
- Vegetable Oil – As mentioned, oil is the secret to this recipe’s super-moist, tender carrot cake layers. It comes down to the fact that oil remains liquid at room temperature, while butter turns solid. Cakes made with oil tend to stay soft and moist for longer.
- All-purpose flour – Weigh the flour using a kitchen scale, or spoon and level it to avoid adding too much to the cake batter. Regular flour can be substituted with a measure-for-measure all-purpose gluten-free flour blend (see my gluten-free carrot cake cupcakes).
- Spices – Ground cinnamon and nutmeg. You can substitute the individual spices with a pie spice blend if you’d like.
- Baking Soda – Make sure it’s fresh and not past its expiration date, or your cake layers won’t rise properly.
- Chopped Nuts – Use either walnuts or pecans. These can be toasted to deepen the flavor.
For the Cream Cheese Frosting
You could also frost your cake with mascarpone whipped cream for an elevated version. Or, make vanilla buttercream if you’d prefer it over cream cheese frosting.
- Cold Butter – Yes, cold! Starting frosting recipes with cold butter instead of room temperature means it takes a bit longer to whip air into the butter, but the result is a light, stable frosting that’s ideal for filling cakes and decorating.
- Full-fat Cream Cheese – This cake is not the place to cut calories! Be sure to use full-fat cream cheese for a thick, creamy frosting.
The Easiest Way to Shred Carrots
I don’t know about you, but I always find shredding carrots with a handheld shredder is messy and takes too long. Instead, my trick is to peel the carrots and chop them into smaller chunks. Add the chunks to a food processor and pulse until they’re shredded into small pieces. This uniform shredding also maximizes the carrots in each bite of cake!

How to Make Carrot Cake From Scratch
Here’s how to make my family’s favorite carrot layer cake, with photos to walk you through the steps.
- Get ready to bake. Make sure to have two 8-inch round pans greased and lightly dusted with flour. I also like to line the pans with parchment paper to help with easier removal. Meanwhile, shred the carrots.
- Mix the wet ingredients. Beat the eggs until they’re fluffy and lighter in color. Then, add the sugar, and beat again. Next, add the oil and slowly mix, so everything is smooth and combined.


- Combine and add the dry ingredients. In another bowl, whisk the dry ingredients together, and mix the dry mixture into the wet ingredients.


- Add the shredded carrots and walnuts. Even if I’m using a mixer for the rest of the steps, I like to fold in the carrots and nuts by hand. It avoids overmixing.
- Bake the cake. Next, divide the carrot cake batter evenly between your prepared pans. I find it helpful to use a measuring cup, or I’ll weigh the batter using a kitchen scale. Then, bake at 350ºF for 28-35 minutes. The cakes are done when a toothpick comes out of the center clean. After baking, let the cakes cool completely before you frost them.


How to Make the Frosting
Perhaps the best part of carrot cake is the frosting, and if you look at my slices, you’ll see a nice, thick layer in the middle, which means frosting with every bite. It’s helpful to cut the butter and cream cheese into cubes before starting.
- Beat the butter. Whip the cold butter for several minutes until it’s fluffy and spreadable. Next, beat the cream cheese with the butter. It will start out looking a bit curdled, but keep beating until it looks smooth.
- Add the powdered sugar. Slowly mix in the powdered sugar, 1-2 cups at a time, alternating with the vanilla extract and heavy cream (or milk) until your frosting reaches your desired consistency. If you find that your frosting is too thin, add more powdered sugar.
- Whip. Once all the ingredients are added, beat for another 1-2 minutes to whip more air into the frosting.


Assembling the Cake
I kept it pretty simple here, but I wanted to share a couple of tips with you to frost this classic carrot cake:
- Stack the cake layers. Start with the first cake layer, and spread a thick layer of frosting on top. Then, carefully place the second cake layer over the frosting. I like to invert my layers, so the top of the cake is nice and flat. Don’t worry about any uneven gaps, as you’ll fill that in with frosting.
- Add a crumb coat. I recommend adding a crumb coat layer, as the edges of this cake tend to be a little flakey. Use an offset spatula to fill in the gaps and cover the sides of the cake with a thin layer of frosting. Once the crumb coat is added, pop the cake into the refrigerator or freezer for a few minutes to let it set before adding the final layer of frosting.
- Decorate the cake. Use the remaining frosting to cover the top and sides of the cake. Lastly, to garnish the cake with walnuts like you see in the photos, it’s best to do so before the frosting has set.


Can I Make Cupcakes Instead?
Yes. I’ve adapted my grandmother’s recipe to make carrot cake cupcakes, so I recommend checking out that post if you’re looking for a batch of moist, delicious cupcakes instead of a cake. Fill your cupcake liners about ⅔ full with batter and bake the cupcakes at 350ºF for 18-22 minutes, or until a toothpick comes out clean.
How to Store
I store my cake for 2-3 days at room temperature in an airtight container. I love my cake carrier for storing cakes. If you live in a hot or humid environment, then you’ll need to refrigerate this cake. However, be sure to serve it at room temperature for the best results. So give it about 20 minutes to sit on the counter before serving.
More Classic Cake Recipes
Homemade Carrot Cake Recipe
- Prep Time: 30 minutes
- Cook Time: 32 minutes
- Total Time: 1 hour 2 minutes
- Yield: 12-15 slices
- Category: Cake
- Method: Oven
- Cuisine: American
Description
This is my grandma’s classic carrot cake recipe! It’s moist and tender, perfectly spiced, and loaded with chopped walnuts and shredded carrots with homemade cream cheese frosting.
Ingredients
Carrot Cake:
- 3 cups raw carrots, peeled and grated
- 4 large eggs
- 2 cups (380g) granulated sugar
- 1 cup (236ml) vegetable oil
- 2 cups (280g) all-purpose flour
- 2 teaspoons (5g) ground cinnamon
- 2 teaspoons (8.5g) baking soda
- 1 teaspoon (5g) salt
- 1/4 teaspoon nutmeg
- 1 cup (116g) walnuts or pecans, chopped (optional)
Cream Cheese Frosting:
- 1 cup (226g) unsalted butter, cold
- 12 ounces (339g) full fat cream cheese, cold
- 6–7 cups (911g) powdered sugar
- 1 tablespoon (15ml) pure vanilla extract
- 2 teaspoons (9ml) heavy whipping cream or milk
- 1 ½ cups (174g) walnuts, chopped (optional)
Instructions
For the Cake:
- Preheat the oven to 350°. Prepare two 8-inch round baking pans, line the bottom with parchment paper and grease the sides, lightly dust with flour.
- Peel the carrots and use a grater or food processor to shred into small pieces. Set aside.
- Beat the eggs until light and fluffy. Add the sugar and beat on low speed until smooth. Next add the oil and continue beating at low speed until well mixed.
- In a medium bowl, combine the remaining dry ingredients. Slowly add the dry ingredients to wet ingredients and beat until incorporated. Fold in walnuts and carrots.
- Pour the batter into the prepared pans, dividing evenly. Bake for approximately 28-35 minutes or until a toothpick or knife inserted into the center of the cake comes out clean. Allow the cake to cool completely.
For the Frosting:
- Cut the butter into pieces, about 1 tablespoon size. Using the paddle attachment, whip butter for 3-5 minutes, scraping down the bowl occasionally until the butter is light and fluffy.
- Then add the cream cheese and cream together with the butter for 2-3 minutes until they are whipped and free of lumps, scrape down the bowl occasionally.
- Slowly add confectionary sugar, 2-3 cups at a time, alternating with the liquid (vanilla extract and heavy cream), and beat until desired consistency is reached. Add salt if desired.
To Assemble:
- Level off the cakes by removing any domes. Place a dollop of frosting on your cake board and place the bottom layer of cake centered on a cake board.
- Pipe a layer of frosting in circles working outside the edge to the middle. Spread evenly with an offset spatula. Add the second layer of cake, inverted. Apply a crumb coat to the cake and put it in the freezer for 5-10 minutes. Remove from the freezer and add remaining frosting to the side and top of the cake. Use your hands to gently push the walnuts into the side of the frosting.
Notes
- To make gluten-free: Use a one-for-one cup gluten-free flour replacement.
- Storage and make ahead: The cake layers can be made up to 2 days in advance. Cool completely and wrap tightly in plastic wrap or store in an airtight container. Once frosted, store in an airtight container in the refrigerator such as a cake carrier. Serve at room temperature for best results.
- This recipe can also be made as cupcakes.
Nutrition
- Serving Size: 1 slice
- Calories: 825
- Sugar: 76g
- Sodium: 435mg
- Fat: 49g
- Carbohydrates: 94g
- Fiber: 2.7g
- Protein: 8g
- Cholesterol: 105mg





Made this for Easter and it was a huge hit!!! Super pretty and so yummy!!!!
That’s absolutely wonderful Melisha, thank you!
I made this for some work friends… BEST CARROT CAKE EVER!! Definitely a KEEPER! Your frosting is perfection. Thank you!
That’s amazing Beth! Thank you so much. I have to agree with you on the frosting!
Oh my gosh!!! I made this cake for my granddaughter today. She loves Carrot Cake as much as I do. My grandmother made me carrot cake when I was younger but I failed to get the recipe. I’ve tried for years to find someone that had her recipe. Not only is this one as good as, it’s better than I remember. It is so moist, and it baked so level I didn’t have to trim the top. I baked it last night, wrapped it in plastic wrap and left it on the cabinet. The frosting was the perfect match for it and it piped so beautifully. Thanks a million. Definitely a 5-Star.
Yes Helen! I am so glad you found this recipe! Thank you for sharing!
Best carrot cake ever!. I say that because I have been using this very recipe since 1976. I had to fool around with the recipe many, many times to get it right. Something I know you can relate to. Now, at 75, I don’t bake much anymore but I’ll bake this cake again for the best carrot cake ever. Thank you.
Oh my goodness, I am so glad to hear that! It was a recipe I snagged from my Grandma’s recipe box!
Made this for birthday night. Makes 7 1/2 cups I used two 1/4 sheet cake pans. I also added coconut,walnuts pecans and 1/2 cup of drained crushed pineapple. It was so good!
Oh I love that! Thank you so much Gina!
The pineapple didn’t change the texture of the cake?? That’s good to know! 🙂
Really easy and super delicious recipe. My cake was very moist.
I went with just 5 cups of sugar for the frosting and it worked well.
I may add golden raisins next time.
Wow, thank you Anne! I appreciate the feedback.
I can’t wait to make this cake for Easter this year. Carrot cake is one of hubby’s favorites but I always dread shredding the carrots. Cannot wait to try your expert tip of using the food processor. Every recipe of yours that I’ve made has turned out absolutely delicious. Thanks so much!
Wonderful, thanks Cam!
I like pineapple in my carrot cake so can I just add drained crushed pineapple
Hi Betty, I haven’t tested it, so you’d have to try it and see how the additional moisture effects the texture
Have you ever made this in a 9×13 cake pan? Just curious if I attempt how long to keep an eye out for it!
Hi Christina, not this recipe specifically, but I would say check it between 20-25 minutes and add time as needed
I love all your recipe’s they are brilliant and tasty.
I love baking as i do a lot of baking. ❤️🌈🧁🍿🎂
Thanks Val!
I made this cake today and it turned out great! I added raisins and reduced the sugar by 50g as it seemed like so much!
My cakes did dome quite a bit which I think is possibly a sign of too much baking powder but I’m not an expert 🙂
Frosting was absolutely perfect and I could have eaten it straight from the bowl
Thank you Anna. It might also have to do with the reduced sugar. I don’t usually have large domes to cut off.
Never in my life would I have thought I would crave a carrot cake in my life but this recipe has made me a believer! The cream cheese frosting pairs perfectly with the spices and textures in the cake. Super fast to make and pulsing the carrots in the food processor is brilliant. Can’t wait to make this again!
That is so amazing! I am SO happy I turned you into a believer!
I can’t do nuts, I’d like to use raisins instead, what would use suggest for baking time with the substituting ingredient? Thank you so much, I can’t wait to make this. Take care
Hi there, you should not need to alter the baking time, just swap out the nuts for the raisins! I hope you enjoy this recipe!
Hi there 🙂
Thanks for sharing this recipe, carrot cakes are my favourite! I would like to make this cake for my birthday coming sunday. If I don’t own two cake forms, you think I should make one big one and then divide or better bake them just after each other?
Thanks a lot for your help
Linda
Hi Linda, If you only have one, then I would recommend baking one at a time. This is about 5 cups of batter, which is too much for a single round. Alternatively, you could try baking it in a 9×13 inch pan. I have not ever tried that myself, but the baking time would need to be adjusted.