The Feast

Home cooking recipes for everyday dinners and easy entertaining

Chocolate Carrot Cake with Chocolate Cream Cheese Frosting

· 6 min read · Baking and Desserts

This chocolate carrot cake is the best of both worlds: the moist, spiced crumb of a classic carrot cake with a deep cocoa twist that makes it feel like a decadent dessert. The rich chocolate cream cheese frosting balances the sweetness and adds a tangy note, while the carrots keep the cake incredibly tender. It’s an easy, reliable layer cake that works for birthdays, holidays, or just a weekend bake.

Ingredients

  • For the cake:
  • 2 cups (250 g) all-purpose flour
  • 1/2 cup (50 g) unsweetened cocoa powder (natural or Dutch-processed)
  • 2 teaspoons baking soda
  • 1/2 teaspoon salt
  • 2 teaspoons ground cinnamon
  • 1/2 teaspoon ground nutmeg (optional)
  • 1 cup (200 g) granulated sugar
  • 1 cup (200 g) packed light brown sugar
  • 1 cup (240 ml) vegetable oil (or canola 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 frosting:
  • 8 oz (226 g) cream cheese, softened
  • 1/2 cup (113 g) unsalted butter, softened
  • 2 cups (240 g) powdered sugar, sifted
  • 1/2 cup (50 g) unsweetened cocoa powder, sifted
  • 1 teaspoon vanilla extract
  • 2-3 tablespoons milk or heavy cream, as needed

Instructions

  1. Preheat and prep: Preheat your oven to 350°F (175°C). Grease and flour two 9-inch round cake pans, or line the bottoms with parchment paper.
  2. Mix dry ingredients: In a medium bowl, whisk together the flour, cocoa powder, baking soda, salt, cinnamon, and nutmeg (if using). Set aside.
  3. Mix wet ingredients: In a large bowl, whisk together the granulated sugar, brown sugar, oil, eggs, and vanilla extract until smooth and well combined.
  4. Combine: Add the dry ingredients to the wet mixture and stir with a spatula or wooden spoon until just combined—do not overmix. The batter will be thick.
  5. Add carrots and nuts: Fold in the grated carrots and chopped nuts (if using) until evenly distributed.
  6. Bake: Divide the batter evenly between the prepared pans. Bake for 28–35 minutes, or until a toothpick inserted into the center comes out clean (a few moist crumbs are fine). The cakes should feel springy to the touch.
  7. Cool completely: Let the cakes cool in the pans for 10–15 minutes, then turn them out onto a wire rack to cool completely. This is crucial—frosting a warm cake will cause the frosting to melt.
  8. Make the frosting: In a large bowl, beat the softened cream cheese and butter together with an electric mixer on medium speed until smooth and creamy, about 2 minutes. Add the sifted powdered sugar and cocoa powder, then beat on low speed until combined. Add the vanilla and 2 tablespoons of milk or cream, then increase to medium-high and beat for 2–3 minutes until light and fluffy. If the frosting is too thick, add the remaining tablespoon of milk.
  9. Assemble: Place one cake layer on a serving plate. Spread about 1 cup of frosting on top. Place the second layer on top, then frost the top and sides with the remaining frosting. Use an offset spatula for a smooth finish, or leave it rustic.
  10. Chill and serve: Refrigerate the assembled cake for at least 30 minutes before slicing—this helps the frosting set and makes cleaner cuts. Serve chilled or at room temperature.

Tips

  • Grate carrots finely: Use the fine side of a box grater or a food processor with a fine grating disc. Coarsely grated carrots can create uneven texture and cause the cake to sink in spots.
  • Don’t overmix the batter: Overmixing develops gluten, which makes the cake tough. Mix until the flour streaks disappear, then stop.
  • Room temperature ingredients: Eggs and cream cheese blend more smoothly when at room temperature. If you’re short on time, place eggs in a bowl of warm water for 5 minutes, and soften cream cheese in the microwave for 10–15 seconds.
  • Substitute oil: You can replace the vegetable oil with melted coconut oil or unsweetened applesauce (use 3/4 cup applesauce for 1 cup oil) for a lighter texture, though the cake will be slightly less moist.

Serving Suggestions

Serve this cake as a showstopper dessert at a spring brunch, Easter dinner, or birthday party. It pairs beautifully with a cup of coffee or a glass of cold milk. For an extra touch, sprinkle a few chopped toasted walnuts or a dusting of cocoa powder on top before serving. If you like, serve each slice with a dollop of whipped cream or a scoop of vanilla ice cream.

Variations

  • Spice it up: Add 1/2 teaspoon of ground ginger or a pinch of cloves along with the cinnamon for a warmer spice profile.
  • Go nut-free: Omit the walnuts or pecans entirely, or replace them with 1/2 cup of raisins or dried cranberries.
  • Make it a sheet cake: Pour the batter into a greased 9x13-inch pan and bake for 35–40 minutes. Frost directly on the cooled cake.
  • Chocolate chips: Fold in 1 cup of semi-sweet chocolate chips along with the carrots for extra chocolate pockets.
  • Gluten-free option: Substitute the all-purpose flour with a 1:1 gluten-free baking blend. The texture will be slightly more crumbly but still delicious.

Storage and Reheating

Refrigerator: Store the frosted cake in an airtight container in the refrigerator for up to 5 days. Because of the cream cheese frosting, it must be kept cold. Let slices sit at room temperature for 15–20 minutes before serving to soften the frosting and enhance the flavor.

Freezer: Unfrosted cake layers can be wrapped tightly in plastic wrap and then foil, and frozen for up to 3 months. Thaw overnight in the refrigerator before frosting. Frosted cake can also be frozen (unwrapped first, then wrapped after frozen) for up to 2 months; thaw in the fridge overnight.

Reheating: This cake is best served at room temperature or slightly chilled. If you prefer a warm slice, microwave individual pieces for 10–15 seconds—but note that the frosting will soften considerably.

Frequently Asked Questions

Can I use pre-shredded carrots from a bag?

Yes, but they are often drier and coarser than freshly grated carrots. If using pre-shredded, chop them into smaller pieces with a knife. The cake will still work, but the texture may be slightly less tender.

Why did my cake sink in the middle?

This can happen if the batter is overmixed, if the oven door is opened too early (before the cake has set), or if you used too much baking soda. Make sure your baking soda is fresh, and avoid opening the oven for the first 20 minutes of baking.

Can I make this cake without a mixer?

Absolutely. The cake batter can be mixed by hand with a whisk and spatula. For the frosting, you can beat it by hand with a wooden spoon, but it will take a few extra minutes of vigorous stirring to get it fluffy.

How do I know when the cake is done?

Insert a toothpick into the center of the cake. If it comes out clean (or with just a few moist crumbs), it’s done. The edges will also pull away slightly from the pan, and the top will spring back when lightly pressed.

Can I reduce the sugar?

You can reduce the total sugar to 1.5 cups (instead of 2 cups) without drastically changing the texture, but the cake will be less sweet and the frosting will taste more tangy. Don’t reduce the frosting sugar too much, as it helps stabilize the cream cheese.

Can I use dark cocoa powder?

Yes, Dutch-processed or black cocoa will work. Dutch-processed will give a richer, less acidic chocolate flavor, while black cocoa will make the cake very dark and slightly more bitter. Adjust the baking soda if using black cocoa—reduce to 1.5 teaspoons to avoid over-rising.

In this article
  1. Ingredients
  2. Instructions
  3. Tips
  4. Serving Suggestions
  5. Variations
  6. Storage and Reheating
  7. Frequently Asked Questions