I tested this chocolate zucchini cake four times to perfect the structure, lift, and rich chocolate flavor. With the right balance of eggs, cocoa, and leavening, plus a trick for handling the zucchini’s moisture, this cake turns out moist, fluffy, and deeply chocolatey every time.
Prep Time20 minutesmins
Cook Time40 minutesmins
Cooling Time1 hourhr
Course: Dessert
Cuisine: American
Keyword: chocolate zucchini cake
Servings: 16slices
Author: Beth
Ingredients
Cake
2 ½cups (300g) all-purpose flour
¾cup (63g) natural unsweetened cocoa powder
1tspbaking soda
1tspbaking powder
1tspsalt
½cup (113g) unsalted buttermelted
½cup (118ml) vegetable oil
1cup (198g) granulated sugar
1cup (213g) brown sugar
3largeeggs
1tspvanilla extract
1cup (236ml) buttermilk
½cup (118ml) hot tap water
3cups (360g) shredded zucchiniblotted
Chocolate Frosting
2cups (452g) unsalted butterroom temperature
1cup (84g) unsweetened natural cocoa powder
4-5cups (454-567g) powdered sugar
3-4Tbspheavy cream
¼tspsalt
1tspvanilla extract
Instructions
Cake
Preheat the oven to 350°F (177°C). Lightly grease two or three 8-inch or 9-inch round cake pans and line the bottoms with parchment paper for easy removal.
Shred the zucchini using the standard side of a box grater. Measure out 3 cups (roughly 360g), then spread the shredded zucchini onto a few layers of paper towels. Gently blot to remove excess moisture, but do not squeeze dry.
In a large mixing bowl, whisk together the flour, cocoa powder, baking soda, baking powder, and salt. Set aside.
2 ½ cups (300g) all-purpose flour, 3/4 cup (63g) natural unsweetened cocoa powder, 1 tsp baking soda, 1 tsp baking powder, 1 tsp salt
In a separate large bowl, combine the melted butter, oil, granulated sugar, brown sugar, eggs, and vanilla extract. Mix until smooth and well combined.
½ cup (113g) unsalted butter, ½ cup (118ml) vegetable oil, 1 cup (198g) granulated sugar, 1 cup (213g) brown sugar, 3 large eggs, 1 tsp vanilla extract
Gradually add half of the dry ingredients to the wet mixture and mix until mostly combined. Add half of the buttermilk and stir. Repeat with the remaining dry ingredients, then the remaining buttermilk and the hot tap water. Mix until the batter is smooth, but do not overmix.
1 cup (236ml) buttermilk, ½ cup (118ml) hot tap water
Gently stir the blotted shredded zucchini into the batter until evenly distributed.
3 cups (360g) shredded zucchini
Divide the batter evenly between the prepared pans. If using 2 pans, add about 3¼ cups of batter per pan. If using 3 pans, add a little over 2 cups per pan.
Bake 2 pans for 30 to 40 minutes, or 3 pans for 25 to 35 minutes, or until a toothpick inserted in the center comes out with moist crumbs.
Allow the cakes to cool in the pans for 20-30 minutes, then run a knife around the edges and turn them out onto wire racks to cool completely before frosting.
Chocolate Frosting
In a mixing bowl, beat the butter on high for 3 minutes.
2 cups (452g) unsalted butter
Sift in the cocoa powder and 3 cups of powdered sugar. I like to sift these in because it helps break up clumps, creating a light and fluffy frosting. Beat the frosting on low speed until combined and thick.
Add in the additional powdered sugar (1-2 cups), mix on low. If the frosting is too thick, beat in an additional tablespoon of heavy cream.
Assemble
If needed, level the cooled cakes using a cake levered or serrated knife. Spread a small amount of chocolate buttercream on the bottom of your cake plate / stand, this acts as “glue” to prevent the cake from moving. Place one cake layer over the frosting. Measure 3/4 to 1 cup of frosting and evenly spread that on top of the first layer. Top with the second cake layer and spread the remaining frosting around the sides and top of the cake. I use about 1 cup of frosting on the top of the cake.
Slice and serve. Cover leftover cake tightly with plastic wrap and store on the counter for up to 3 days.