Classic Carrot Cake

There is a reason carrot cake shows up at nearly every birthday, holiday, and potluck worth attending. It is moist without being greasy, spiced without tasting like a candle, and the tangy cream cheese frosting cuts through all that sweetness in a way that keeps you reaching for a second slice. This is the version I make when I want to win a room over completely.
What sets a great carrot cake apart from a forgettable one is restraint in some places and generosity in others. We go generous with freshly grated carrots and warm spice, and we hold back on gimmicks like crushed pineapple or coconut that can turn the crumb soggy. The result is a cake that tastes purely of toasted spice, brown sugar, and real carrot.
I have baked this recipe more times than I can count, for nervous first time bakers and for friends who frost cakes for a living. It is forgiving because it relies on oil rather than creamed butter, which means you do not need a stand mixer or perfect technique to get a tender, even crumb every single time. A bowl and a whisk will carry you most of the way.
Below you will find the full method broken into clear steps, plus my notes on which carrots to buy, how to toast the pecans, and the trick to frosting that does not slide off. Read it through once, then bake with confidence.
This recipe makes a classic two layer 9 inch cake that serves a crowd, but it adapts easily to a sheet cake or cupcakes if that suits your day better. However you bake it, the flavor only improves after a night in the fridge, so it is a wonderful make ahead choice for celebrations.
Why you will love this
- Oil based batter: Oil keeps the crumb soft and moist for days, far longer than a butter cake stays fresh.
- Hand grated carrots: Grating your own carrots gives moisture and tender shreds that pre shredded bags simply cannot match.
- Two kinds of sugar: Brown sugar brings molasses depth while granulated sugar keeps the texture light and even.
- Toasted pecans: A few minutes in the oven wakes up the nuts so they add crunch and warm flavor instead of dusty filler.
- Tangy frosting: Real full fat cream cheese balances the sweet cake with the bright tang every classic carrot cake needs.
What you will need
Nothing here is exotic, but a few choices make a real difference. Buy whole carrots rather than a bag of pre shredded ones, and use block style cream cheese rather than the spreadable tub for frosting that holds its shape.
- Carrots (3 cups grated): Use firm medium carrots and grate them yourself on the small holes for moist, fine shreds that melt into the crumb rather than staying crunchy.
- Neutral oil (1 cup): Canola or vegetable oil gives a tender crumb without competing with the spices, and it keeps the cake moist far longer than butter would.
- Light brown sugar (0.75 cup): Adds moisture and a gentle molasses note that deepens the spice; pack it firmly into the cup when you measure.
- Pecans (1 cup): Toast them first for crunch and flavor; walnuts work just as well if you prefer a slightly more bitter, classic note.
- Full fat cream cheese (16 oz): The block style, not the tub, is essential for thick frosting that does not weep or slide off the cake.
- Warm spices (cinnamon, ginger, nutmeg): Fresh, fragrant spices carry the whole cake, so replace anything older than a year for the brightest, warmest flavor.
Equipment: You will need two 9 inch round cake pans, parchment paper, a box grater, two mixing bowls, a whisk, and a rubber spatula or hand mixer for the frosting.
How to make it, step by step
Step 1: Prep the pans and oven
Position a rack in the center of the oven and heat it to 350F. An accurate, fully preheated oven is the difference between a domed, cracked cake and one that bakes flat and even, so give it a full fifteen minutes.
Lightly grease two 9 inch round pans, then line the bottoms with parchment circles and grease the parchment too. This double layer of insurance means the cooled layers will release cleanly without leaving half the cake stuck behind.
If you only have one pan, you can bake the layers one at a time, but keep the second portion of batter at room temperature rather than in the fridge. Cold batter spreads unevenly and bakes into a denser layer, so room temperature gives you two matching cakes.

Step 2: Whisk the dry ingredients
In a medium bowl, whisk together the flour, baking soda, salt, cinnamon, ginger, and nutmeg until the spices are evenly distributed. Whisking now means you will not have to overmix later, which is what makes a cake tough.
Take a moment to smell the mixture. It should be warmly fragrant; if it smells flat, your spices are old and the finished cake will taste muted, so it is worth opening fresh jars.
Measure the flour carefully by spooning it into the cup and leveling it off, or better yet by weight. Packing the cup by scooping straight from the bag can add an extra ounce or more of flour, which is the single most common reason a carrot cake turns out dry and heavy.
Step 3: Build the wet base
In a large bowl, whisk the granulated sugar, brown sugar, and oil together until the mixture looks thick and glossy. Add the eggs one at a time, whisking well after each, then whisk in the vanilla.
Keep whisking for about a minute until the batter lightens slightly in color and any sugar lumps have dissolved. This brief beating dissolves the sugar and helps the eggs hold air, giving the cake a finer crumb.
Room temperature eggs are worth the small effort here, since cold eggs can firm up the oil and leave you with a streaky base. If you forgot to set them out, warm the eggs in a bowl of warm water for five minutes before cracking them.
Step 4: Combine wet and dry
Add the dry ingredients to the wet in two additions, folding gently with a spatula just until you no longer see streaks of flour. Stop the moment the batter comes together; a few small lumps are completely fine.
Overmixing develops gluten and gives you a dense, rubbery cake, so treat this stage with a light hand. The batter will look thick and slightly sandy from the sugar, which is exactly right before the carrots go in.
Switch from a whisk to a flexible spatula for this step, since a whisk tends to grab the flour and overwork it. Scrape down the sides and across the bottom of the bowl once to catch any dry flour hiding there before you stop.
Step 5: Fold in carrots and nuts
Add the grated carrots, toasted pecans, and raisins if using. Fold them through with broad, gentle strokes until they are evenly suspended in the batter and the mixture looks lush and flecked with orange.
The carrots will release a little moisture as they sit, so move on to baking promptly. The finished batter should be thick enough to mound on the spatula rather than pour.
Take a quick look at the texture of the carrots before they go in. Fine, soft shreds melt into the crumb and keep the cake moist, while thick chunks stay firm and crunchy in the finished cake, which is why grating on the small holes matters so much. If you only have a food processor, pulse the carrots finely rather than leaving large ribbons.

Step 6: Bake the layers
Divide the batter evenly between the two pans and smooth the tops with the spatula. A kitchen scale helps here, but eyeballing equal amounts is fine for a two layer cake.
Bake for 32 to 36 minutes, until the tops spring back when lightly pressed and a tester inserted in the center comes out with only a few moist crumbs. The edges will pull slightly from the pan and the kitchen will smell like cinnamon.
Resist opening the oven before the 30 minute mark, as the rush of cool air can cause the centers to sink.
Step 7: Cool completely
Let the layers cool in their pans for 15 minutes, then run a thin knife around the edge and turn them out onto a wire rack. Peel off the parchment and let them cool fully, at least an hour.
Frosting a warm cake is a guaranteed disaster; the cream cheese will melt and slide right off. If you are short on time, the unfrosted layers chill quickly in the freezer for about twenty minutes.
If the layers domed at all in the oven, level them now with a long serrated knife while they are firm. A flat top makes the finished cake easier to stack and frost, and the trimmings are a baker’s reward for the work.
Step 8: Make the frosting and assemble
Beat the softened cream cheese and butter together until completely smooth with no lumps, about two minutes. Add the sifted powdered sugar, vanilla, and salt, and beat on low until combined, then on medium until fluffy.
Place the first layer on your serving plate and spread a generous, even layer of frosting on top. Set the second layer over it, then frost the top and sides in smooth sweeps with an offset spatula.
For a rustic finish, press chopped toasted pecans around the bottom edge or swirl the top with the back of a spoon. A bare sided naked cake also looks beautiful if you prefer to let the layers show.
Chill the assembled cake for at least 30 minutes before slicing so the frosting firms up and each piece cuts cleanly. Wipe your knife between cuts for tidy, bakery worthy slices.

Tips for the best results
- Toast the pecans: Spread them on a sheet at 350F for 6 to 8 minutes until fragrant, then cool before chopping.
- Soften everything: Room temperature cream cheese and butter beat into smooth frosting; cold blocks leave stubborn lumps.
- Weigh your flour: Scooping packs in extra flour and dries the cake, so spoon and level or use a scale.
- Chill before slicing: A cold cake gives clean, bakery style slices instead of a sliding, smeared mess.
- Skip the bagged carrots: Pre shredded carrots are dry and coarse, which makes the cake drier than it should be.
Variations and substitutions
- Add pineapple: Fold in half a cup of well drained crushed pineapple for a moister, more tropical crumb.
- Make it a sheet cake: Bake the batter in a 9 by 13 inch pan for about 35 minutes and frost in the pan.
- Go nut free: Leave out the pecans entirely and add an extra half cup of carrots for moisture.
- Brown butter frosting: Brown the butter and cool it before beating in for a deeper, nuttier frosting.
How to store and reheat
Store the frosted cake covered in the refrigerator for up to 5 days. Because of the cream cheese frosting it must be kept cold, but let slices sit out for 20 minutes before serving so the crumb softens.
To freeze, wrap unfrosted, fully cooled layers tightly in plastic and foil for up to 2 months. Thaw at room temperature before frosting, or freeze frosted slices individually and thaw in the fridge overnight.
What to serve it with
- Serve with a strong cup of coffee or black tea
- Add a scoop of vanilla bean ice cream for dessert
- Garnish each slice with a few extra toasted pecans
- Dust with a whisper of cinnamon just before serving
Frequently asked questions
Yes, and it actually improves overnight. Bake the layers up to a day ahead and wrap them, or fully assemble and frost the cake a day before, then keep it covered in the fridge. The flavors meld and the crumb stays beautifully moist.
The most common cause is overmixing the batter once the flour goes in, which develops gluten. Fold just until the streaks disappear. Old baking soda or too much flour from scooping can also weigh it down.
Peeling is recommended for the cleanest flavor and color, since the skin can taste slightly bitter and earthy. If you scrub them very well you can skip peeling, but you may notice darker flecks in the crumb.
It is best avoided. Spreadable tub cream cheese contains added water and stabilizers that make the frosting thin and prone to weeping. Use block style full fat cream cheese for a thick, sliceable result.
Look for tops that spring back when gently pressed and edges that just begin to pull away from the pan. A tester inserted in the center should come out with a few moist crumbs but no wet batter, usually around 34 minutes.
Classic Carrot Cake
A tender, deeply spiced carrot cake stacked with tangy cream cheese frosting that tastes better the day after you bake it.
Ingredients
- 2 cups (250g) all purpose flour
- 2 teaspoons baking soda
- 1 teaspoon fine salt
- 2 teaspoons ground cinnamon
- 1 teaspoon ground ginger
- 0.5 teaspoon ground nutmeg
- 1.25 cups (250g) granulated sugar
- 0.75 cup (150g) packed light brown sugar
- 1 cup (240ml) neutral oil such as canola
- 4 large eggs, room temperature
- 2 teaspoons pure vanilla extract
- 3 cups (300g) finely grated peeled carrots, about 6 medium
- 1 cup (115g) toasted pecans, chopped
- 0.5 cup (75g) raisins, optional
- 16 oz (450g) full fat cream cheese, softened
- 0.5 cup (115g) unsalted butter, softened
- 4 cups (480g) powdered sugar, sifted
- 1 teaspoon pure vanilla extract for frosting
- 0.25 teaspoon fine salt for frosting
Instructions
- Heat oven to 350F and line two 9 inch round pans with parchment.
- Whisk flour, baking soda, salt, and spices in a bowl.
- Whisk both sugars, oil, eggs, and vanilla until smooth, then fold in the dry mix.
- Stir in grated carrots, pecans, and raisins, then divide between the pans.
- Bake 32 to 36 minutes until a tester comes out clean, then cool completely.
- Beat cream cheese and butter smooth, add powdered sugar, vanilla, and salt.
- Frost between the layers and over the top and sides, then chill before slicing.
Notes
- Grate the carrots yourself on the small holes of a box grater for the best texture.
- The cake layers can be baked a day ahead and wrapped tightly at room temperature.
- Cold cream cheese frosting slices cleanest, so chill the assembled cake first.
