Fudgy Chocolate Carrot Cake with Cream Cheese Frosting
This chocolate carrot cake is the dessert I make when I want something that feels special without much fuss. The carrots melt into the batter, giving it a soft, almost brownie-like texture, and the tangy cream cheese frosting makes it feel finished.

Serve it straight from the fridge for a denser slice, or let it come to room temperature for a softer crumb. It stays moist for days and never gets dry or crumbly.
What Makes This Chocolate Carrot Cake So Good
The texture is what gets me every time. Oil and finely grated carrots keep it incredibly soft, while cocoa gives a real chocolate presence without being overly sweet.
And it somehow gets better overnight. The cocoa deepens, and the frosting firms up just enough so each bite has a clean contrast of creamy and dense. I’ve had a slice four days later that still tasted freshly made.
Ingredients

- 2 cups all-purpose flour: spoon and level the flour, don’t scoop directly from the bag.
- 3/4 cup unsweetened cocoa powder: Dutch-process gives a deeper, smoother chocolate flavor.
- 2 teaspoons baking soda
- 1 teaspoon baking powder
- 1/2 teaspoon fine sea salt
- 1 teaspoon ground cinnamon: optional, but I love the warmth it adds.
- 1 cup vegetable oil: or any neutral oil like canola.
- 1 cup granulated sugar
- 1/2 cup packed light brown sugar
- 4 large eggs: at room temperature.
- 1 tablespoon vanilla extract
- 2 cups finely grated carrots: from 2 to 3 large peeled carrots, grated on the small holes.
- 3/4 cup hot strong brewed coffee or hot water: coffee deepens the chocolate; water keeps it milder.
For the frosting:
- 8 ounces cream cheese: cold.
- 1/2 cup unsalted butter: at room temperature.
- 3 cups powdered sugar: sift if lumpy.
- 1 teaspoon vanilla extract
- Pinch of salt
Variations / Substitutions
- Swap the coffee: use hot water if you prefer to skip coffee; the cake will still be rich and chocolatey.
- Add nuts or raisins: fold in 1/2 cup toasted chopped walnuts or pecans, or 1/2 cup raisins soaked in hot water and drained.
- Make it dairy-free: use plant-based cream cheese and butter for the frosting, and a neutral oil in the cake.
- Spice it up: add 1/2 teaspoon ground ginger and 1/4 teaspoon nutmeg along with the cinnamon.
For a spiced, lighter crumb, my classic Carrot Cake with Cream Cheese Frosting is the one I go to when I want the original version.
How to Make Chocolate Carrot Cake
Step 1: Whisk the Dry Ingredients

Preheat the oven to 350°F (175°C) with a rack in the center. Butter and flour two 9-inch round cake pans, or line the bottoms with parchment paper. In a large bowl, whisk together the 2 cups flour, 3/4 cup cocoa powder, baking soda, baking powder, salt, and cinnamon until no streaks remain.
Make sure you scrape the bottom of the bowl; cocoa tends to hide there, leaving pale spots if you don’t get it all mixed in.
Step 2: Mix the Wet Ingredients

In another large bowl, whisk the 1 cup oil, granulated sugar, and brown sugar until smooth and slightly lighter in color, about 1 minute. Add the eggs one at a time, beating well after each, then stir in the 1 tablespoon vanilla.
The batter will be thick and glossy. You don’t need an electric mixer here; a sturdy whisk does the job.
Step 3: Fold in the Carrots and Finish the Batter

Pour the hot coffee (or water) into the wet mixture and whisk until smooth. Add the dry ingredients all at once and fold with a rubber spatula just until a few streaks of flour remain. Toss in the 2 cups grated carrots and fold them in gently, being careful not to overmix. The batter will be loose and fluid.
Stop as soon as you see no pockets of dry flour. Overmixing can make the cake tough, so a light hand here pays off.
Step 4: Bake the Cake

Divide the batter evenly between the prepared pans; each will get about 2 1/2 cups. Bake for 25 to 28 minutes, until the centers spring back when lightly pressed and a toothpick inserted in the middle comes out with a few moist crumbs attached.
Rotate the pans halfway through baking for even coloring. Let the cakes cool in the pans on a wire rack for 10 minutes, then turn them out onto the rack to cool completely.
Step 5: Frost and Serve

To make the frosting, beat the cold cream cheese and room-temperature butter in a stand mixer (or with hand beaters) on medium speed until very smooth, about 2 minutes. Sift in the powdered sugar, add the vanilla and salt, and beat on low until combined, then up to medium until fluffy and spreadable.
Place one fully cooled cake layer on a plate, spread about one-third of the frosting on top, then set the second layer on it. Frost the top and sides with the remaining frosting. Slice and serve right away, or chill for 30 minutes if you like a firmer slice.
A Few Notes Before You Start
- Grate the carrots on the small holes of a box grater so they practically disappear into the cake, not the large holes that leave visible shreds.
- Make sure your eggs and butter (for the frosting) are truly at room temperature; cold ingredients can leave the batter greasy.
- For the smoothest frosting, keep the cream cheese cold and the butter soft. This combination gives a stable, non-runny frosting that’s still easy to spread.
- Let the cakes cool completely before frosting. Even a little warmth will melt the frosting into a mess.
Bake times will vary by pan; the cake is done when a toothpick comes out with moist crumbs (internal temp around 200°F (93°C)).
| Pan Size | Bake Time |
|---|---|
| 9-inch round (2) | 25-28 minutes |
| 8-inch round (2) | 28-32 minutes |
| 9×13-inch sheet | 30-35 minutes |
| Cupcakes (24) | 18-22 minutes |
Storing Leftovers
Store the frosted cake covered in the refrigerator for up to 4 days. The cold firms up the crumb and frosting, making it slice beautifully straight from the fridge. Let it sit at room temperature for 20 minutes before serving if you prefer a softer texture.
Frequently Asked Questions
Can I make this cake gluten-free?
Yes, use a good quality 1:1 gluten-free flour blend that includes xanthan gum. The texture will be a bit more tender, but it works well.
Why did my cake sink in the middle?
Usually because the oven door was opened too early or the batter was overmixed. Check for doneness only after 22 minutes and avoid peeking before then.
Can I freeze this cake?
Yes, both the unfrosted layers and the fully frosted cake freeze well. Wrap unfrosted layers tightly in plastic and foil for up to 2 months; thaw overnight in the fridge and frost. A frosted cake can be frozen for 1 month; slice and wrap individual portions for easier thawing.
Can I skip the cream cheese frosting?
Absolutely. Dust the cake with powdered sugar or serve it with a dollop of whipped cream. It’s still deeply chocolatey on its own.

Chocolate Carrot Cake with Cream Cheese Frosting Recipe
Ingredients
Method
- Preheat oven to 350°F (175°C) with rack in center. Butter and flour two 9-inch round cake pans. In a large bowl, whisk flour, cocoa, baking soda, baking powder, salt, and cinnamon.
- In another large bowl, whisk oil, granulated sugar, and brown sugar until smooth. Beat in eggs one at a time, then vanilla. Stir in hot coffee.
- Add dry ingredients to wet; fold with rubber spatula until just a few streaks remain. Add carrots and fold until combined, no overmixing.
- Divide batter evenly into pans. Bake 25 to 28 minutes, until toothpick comes out with moist crumbs. Cool in pans 10 minutes, then turn out onto wire racks and cool completely.
- To make frosting, beat cold cream cheese and room-temperature butter until smooth, about 2 minutes. Sift in powdered sugar, add vanilla and salt; beat on low then medium until fluffy. Frost cooled cake; slice and serve, or chill 30 minutes for firmer slices.
