This is a two-layer carrot cake with a cream cheese frosting that actually tastes like cream cheese — tangy, not just sweet. The oil-based batter keeps the crumb moist for several days, which makes it one of the most practical cakes you can bake ahead for a gathering. If you need a cake that holds up well and feeds a crowd, this is a reliable choice.
Before you start
Two things matter most here. First, grate your carrots fresh and fine — pre-shredded carrots from a bag are too coarse and too dry, and they won’t distribute evenly through the batter. A box grater on the fine side works well. Second, make sure your cream cheese and butter are genuinely at room temperature before you make the frosting. Cold cream cheese will leave lumps that no amount of beating will fully smooth out, and the frosting won’t spread cleanly between layers. Pull both from the fridge at least an hour before you need them.
About the ingredients
- Vegetable or canola oil: Either works. The neutral flavor is the point — don’t substitute olive oil or melted coconut oil, both of which will compete with the spices.
- Walnuts: The recipe marks these optional. Skip them if you’re baking for a crowd with unknown nut allergies. If you do use them, a quick toast in a dry pan for 5 minutes deepens their flavor noticeably.
- Powdered sugar in the frosting: Sift it. Unsifted powdered sugar clumps, and those clumps don’t always beat out completely.
- Cream cheese: Use full-fat block cream cheese, not the spreadable kind sold in tubs. Tub cream cheese has a higher water content and will make the frosting too soft to hold its shape between layers.
If something goes sideways
- The layers domed and won’t stack flat: Trim the dome off with a serrated knife once the cakes are fully cool. A flat layer is more stable and frosts more evenly.
- The frosting is too soft to spread without tearing the cake: Refrigerate the frosting for 20–30 minutes before using it. This firms it up enough to spread cleanly without dragging crumbs.
- The cake is dense and gummy in the center: This usually means underbaking or overmixing after the flour went in. Mix the dry ingredients in only until the flour disappears, then stop.
- The frosted cake looks messy after slicing: Chill the assembled cake for at least 30 minutes before you cut it. Cold frosting holds a clean edge; room-temperature frosting smears.
- The frosting tastes flat: A small pinch of salt added to the frosting sharpens the cream cheese flavor and balances the powdered sugar — skip the garnish of extra walnuts on top, not worth the extra dish.
Make-ahead notes
The unfrosted cake layers can be baked up to two days ahead. Wrap each layer tightly in plastic wrap once fully cool and store at room temperature. For longer storage, wrap in plastic and then foil and freeze for up to one month — thaw overnight in the fridge still wrapped, then bring to room temperature before frosting. The frosting can be made up to three days ahead and kept in an airtight container in the fridge; re-beat it briefly before using to restore a smooth consistency. Once assembled and frosted, the cake keeps well in the fridge for up to four days — the texture actually improves after a night in the fridge as the flavors settle. Take it out about 45 minutes before serving so the crumb softens slightly.

Carrot Cake with Cream Cheese Frosting
Equipment
- 1 9-inch round cake pans
- 1 Mixing Bowls
- 1 Electric Mixer
- 1 Rubber spatula
- 1 Cooling Rack
Ingredients
Cake Ingredients
- 2 cups all-purpose flour sifted
- 1.5 teaspoons baking powder
- 1 teaspoon baking soda
- 1 teaspoon ground cinnamon
- 1 teaspoon ground nutmeg
- 0.5 teaspoon salt
- 1.5 cups white granulated sugar
- 1 cup vegetable oil or canola oil
- 4 large eggs at room temperature
- 3 cups grated carrots fresh and finely grated
- 0.5 cup chopped walnuts optional
Frosting Ingredients
- 1 cup cream cheese room temperature
- 0.5 cup unsalted butter room temperature
- 1 teaspoon vanilla extract
- 4 cups powdered sugar sifted
Instructions
- Preheat your oven to 350°F (175°C). Grease and flour two 9-inch round cake pans.
- In a medium mixing bowl, whisk together the flour, baking powder, baking soda, cinnamon, nutmeg, and salt. Set aside.
- In a large bowl, beat the sugar and oil together until well combined. Add the eggs, one at a time, beating well with each addition until the mixture becomes fluffy and pale.
- Gradually add the dry ingredients into the wet ingredients, mixing gently until just combined. Fold in the grated carrots and, if using, the chopped walnuts.
- Divide the batter evenly between the prepared cake pans. Smooth the top with a spatula and bake in the preheated oven for 35-40 minutes, or until a toothpick inserted into the center comes out clean.
- Remove the cakes from the oven and let them cool in the pans for 10 minutes. Then transfer the cakes to a cooling rack to cool completely.
- For the cream cheese frosting, in a medium bowl, beat the cream cheese and butter until smooth and creamy. Add the vanilla extract and gradually add the powdered sugar, beating until the frosting is smooth and fluffy.
- Once the cakes are completely cool, spread a generous layer of frosting on the top of one cake layer. Place the second layer on top and spread the remaining frosting over the top and sides of the cake. Decorate with additional nuts or a sprinkle of cinnamon if desired.
Notes
Nutrition
Your questions, answered
Can I make this as a single-layer cake or cupcakes instead of two layers?
Yes. For a single layer, use a 9×13-inch pan and start checking for doneness at 35 minutes. For cupcakes, fill liners two-thirds full and bake at 350°F for 20–22 minutes — this recipe makes approximately 24 standard cupcakes.
Do I need to peel the carrots before grating?
Yes, peel them. The skin can add a slightly bitter note and an uneven texture to the finished cake. It takes two minutes and it’s worth it.
My cream cheese frosting is runny. What went wrong?
The most common cause is cream cheese or butter that was too warm when beaten — if either is close to melting, the frosting won’t hold structure. Refrigerate the frosting for 20–30 minutes and beat again; if it’s still too soft, beat in an extra quarter cup of sifted powdered sugar.
Can I assemble and frost the cake the night before serving?
Yes, and it’s actually the recommended approach for any event. A fully frosted cake stored covered in the fridge overnight slices more cleanly and the spice flavor deepens. Just give it 45 minutes at room temperature before you serve it.
What to bake next
- Nostalgic Malted Milk Chocolate Cake
- Rustic Blackberry Almond Cake
- Autumn Spiced Pear and Almond Cake
- Nutty Brown Butter Vanilla Bean Cupcakes