This carrot cake is the one to make for birthdays, spring gatherings, or any weekend when you want a tall, tender layer cake with warm spice and a tangy cream cheese frosting. It bakes up moist from the carrots and oil, and it pairs well with coffee, tea, or a glass of cold milk. You can bake it as two 9-inch layers or as a sheet cake, and it tastes even better the day after it's assembled.
Serves 12 · Prep 30 min · Cook 35 min · Total 2 hr 15 min
Ingredients
- 2 cups (250 g) all-purpose flour
- 2 teaspoons baking powder
- 1 teaspoon baking soda
- 1 1/2 teaspoons ground cinnamon
- 1/2 teaspoon ground nutmeg
- 1/2 teaspoon salt
- 1 cup (200 g) granulated sugar
- 1 cup (200 g) packed light brown sugar
- 1 cup (240 ml) vegetable oil
- 4 large eggs, at room temperature
- 2 teaspoons vanilla extract
- 3 cups (about 340 g) finely grated carrots (about 4–5 medium carrots)
- 1 cup (120 g) chopped walnuts or pecans (optional)
For the cream cheese frosting
- 8 oz (226 g) cream cheese, softened
- 1/2 cup (113 g) unsalted butter, softened
- 3 cups (360 g) powdered sugar, sifted
- 1 teaspoon vanilla extract
Instructions
- Heat the oven to 350°F (175°C). Grease two 9-inch (23 cm) round cake pans, line the bottoms with parchment paper, and grease the paper.
- In a medium bowl, whisk together the flour, baking powder, baking soda, cinnamon, nutmeg, and salt.
- In a large bowl, whisk the granulated sugar, brown sugar, oil, eggs, and vanilla until smooth and well combined.
- Add the dry ingredients to the wet mixture and stir with a spatula until just combined. Fold in the grated carrots and nuts, if using.
- Divide the batter evenly between the prepared pans. Bake for 30–35 minutes, until a toothpick inserted into the center comes out clean and the tops spring back when lightly pressed.
- Let the cakes cool in the pans for 15 minutes, then turn them out onto a wire rack to cool completely. This takes about 1 hour.
- While the cakes cool, make the frosting: Beat the cream cheese and butter together until smooth, then gradually add the powdered sugar and vanilla, beating until fluffy.
- Once the cakes are completely cool, place one layer on a serving plate, spread about 1 cup of frosting on top, then add the second layer. Frost the top and sides with the remaining frosting.
How to Tell It's Done
The cake is done when a toothpick inserted into the center comes out clean (a few moist crumbs are fine, but no wet batter). The edges will have pulled slightly away from the pan, and the top will spring back when you press it gently. If you're using a food thermometer, the center of the cake should read about 200°F (93°C).
Baking in Different Pans
This batter also works as a 9x13-inch (23x33 cm) sheet cake: bake at 350°F (175°C) for 35–40 minutes, until the same doneness cues appear. For 24 cupcakes, fill liners two-thirds full and bake for 18–22 minutes. If you halve the recipe, use two 6-inch (15 cm) pans and bake for 25–30 minutes; if you double it, use three 9-inch pans and bake for 30–35 minutes, checking earlier if your oven runs hot.
Equipment That Matters
A 9-inch (23 cm) round pan is standard; if you use a dark nonstick pan, reduce the oven temperature by 25°F (15°C) to prevent over-browning. A kitchen scale gives the most accurate flour measurement, but if you're using cups, spoon the flour into the cup and level it off—don't scoop directly from the bag. A box grater works for the carrots, but a food processor with a grating disc makes it faster and gives a finer texture.
Storage and Keeping
Frosted carrot cake keeps in the refrigerator for up to 4 days, covered loosely with foil or in a cake carrier. Because it has cream cheese frosting, it must be refrigerated within 2 hours of frosting. Let it sit at room temperature for about 30 minutes before serving to soften. Unfrosted cake layers can be wrapped tightly in plastic wrap and frozen for up to 3 months; thaw in the refrigerator overnight before frosting. Leftover slices can be refrigerated for up to 4 days, but the frosting may soften the cake over time.
Variations to Try
Swap the walnuts for 1 cup (150 g) raisins or 1/2 cup (85 g) crushed pineapple (drained well) for extra sweetness. Add 1/2 teaspoon ground ginger or a pinch of cloves for a warmer spice blend. For a nut-free version, simply omit the nuts—no other change needed. If you prefer a lighter frosting, use 6 oz (170 g) cream cheese and 1/4 cup (57 g) butter, but the frosting will be softer and less stiff for piping.
Make-Ahead and Serving
You can bake the cake layers a day ahead and keep them wrapped at room temperature (if unfrosted) or in the fridge (if frosted). The frosting can be made up to 2 days ahead and refrigerated; let it soften at room temperature for 20 minutes before spreading. This cake serves 12 generously, so it's perfect for a crowd. For a simpler presentation, skip the side frosting and just top the cake with a thick layer of frosting—it's still beautiful and takes less time.
Common Questions
Why is my cake dense or heavy?
Overmixing the batter after adding the flour develops gluten, which makes the cake tough. Mix just until the flour disappears. Also, grating carrots too finely can release extra moisture; squeeze the grated carrots lightly if they seem very wet.
Can I use pre-shredded carrots from a bag?
Yes, but they are often drier and coarser than freshly grated carrots, which can affect texture. If using bagged, chop them into smaller pieces with a knife before adding.
Can I make this without eggs?
This recipe relies on eggs for structure and moisture. For an egg-free version, you'd need a different recipe—substituting flax eggs or applesauce will change the texture and may not work as well.