You’d never know there’s zucchini hidden in this rich and decadent chocolate zucchini cake! It just tastes like the most delicious chocolate cake ever.

You’ve just gotta love this chocolate zucchini cake. It’s wonderfully rich and moist and everything you want a chocolate cake to be AND it includes a serving of green veggies. I mean!
And don’t worry, you’ll never know the zucchini is even there. It just provides delicious moisture and richness to your baked goods. Check out our zucchini brownies, zucchini bread and zucchini muffins as well if you want any more proof of that.
Of course if you want chocolate cake without zucchini, then our divine chocolate cake recipe is exactly what you’re looking for. But I reckon you’ll love BOTH cakes. In fact, I’m certain of it.
So, if you have any zucchini looking to be used up then lets get baking.

How To Make Chocolate Zucchini Cake
Full instructions and measurements can always be found in the recipe card at the bottom of the post. This is a summary of the process to go along with the process photos.
- Sift all purpose flour and cocoa powder into a mixing bowl and add white and brown sugar, baking soda, baking powder, espresso powder and salt.
- Mix together.
- Add shredded zucchini, oil, eggs, Greek yogurt and vanilla extract.
- Mix into a thick batter. If it doesn’t want to come together, leave the bowl for a minute and then come back and mix again. The zucchini will release extra moisture into the batter and make it easier to mix.

- Transfer the batter to two 9-inch baking pans (sprayed with non-stick spray and lined with circles of parchment paper on the bottom) and smooth down.
- Bake at 350°F for 30 minutes and then do the toothpick test – insert toothpick into the center of one of the cakes and it should come out clean.
- Allow to cool in the pans for a few minutes and then transfer them to a wire cooling rack to cool completely before frosting.

The Frosting
The frosting is our delicious chocolate buttercream frosting. We made an extra half batch so that we could put the frosting detail around the edges of the cake but of course that’s entirely optional.
If you wanted to mix things up a bit you could do a vanilla buttercream frosting with this cake as well.

Recipe Tips
Don’t squeeze or blot the zucchini. It’s not necessary to squeeze excess water out of the shredded zucchini and it’s also not necessary to blot it with a paper towel.
Just shred it using a box grater or a food processor (we usually prefer the food processor) and then use it as is. If there is any water that pools at the bottom of the food processor then leave that behind. But there is no need to squeeze or blot the shredded zucchini that you use.
There is also no need to peel the zucchini.
Sour cream or Greek yogurt. You can use either sour cream or Greek yogurt in this recipe. We usually use Greek yogurt as that’s what we have on hand more often. This just provides extra richness and moisture in this cake without needing to use more oil.
Make it in 8-inch or 9-inch pans. This cake can be made in either 8-inch or 9-inch cake pans. If you’re making it in 8-inch pans then the bake time will be slightly longer. We needed to bake it for 35 minutes for the 8-inch cake pans. Check for doneness using the toothpick test after 35 minutes.

Recipe Q&A
Sure! This recipe will make around 24 cupcakes. Bake for 22-25 minutes.
Keep the cake covered at room temperature for 2-3 days or covered in the fridge for 5 days.
Yes you can. Wrap it well to keep it protected in the freezer and then thaw in the fridge when you’re ready for it.

More Delicious Cake Recipes
- The Most Divine Chocolate Cake
- The Best Vanilla Cake
- Red Velvet Cake
- The Best Carrot Cake
- Crazy Cake
- Chocolate Orange Cake


Chocolate Zucchini Cake
Ingredients
- 2 cups All Purpose Flour Measured Correctly*
- ¾ cup Cocoa Powder Unsweetened
- 1 and ½ cups White Granulated Sugar
- ½ cup Light Brown Sugar
- 2 tsp Baking Soda
- 1 tsp Baking Powder
- 1 tsp Instant Espresso Powder Optional
- ¾ tsp Salt
- 2 cups Shredded Zucchini Packed cups (280g)
- 1 cup Canola Oil or Vegetable Oil
- 4 Large Eggs
- ⅓ cup Greek Yogurt or Sour Cream
- 2 tsp Vanilla Extract
For the Frosting
- 1 Recipe Chocolate Buttercream Frosting
Instructions
- Preheat the oven to 350°F and spray two 9-inch cake pans with non-stick spray and line the bottoms with circles of parchment paper.
- Sift the all purpose flour and cocoa powder into a mixing bowl and add the white and brown sugar, baking soda, baking powder, espresso powder and salt. Mix together.
- Add shredded zucchini, oil, eggs, Greek yogurt and vanilla extract.
- Mix into a thick batter. If it doesn't want to come together, leave the bowl for a minute and then come back and mix again. The zucchini will release extra moisture into the batter and make it easier to mix.
- Transfer the batter to your prepared 9-inch baking pans and smooth down.
- Bake for 30 minutes and then do the toothpick test – insert a toothpick into the center of one of the cakes and it should come out clean.
- Allow the cakes to cool in the pans for a few minutes and then transfer them to a wire cooling rack to cool completely before frosting.
Video
Notes
- Measure the flour correctly using the spoon and level method. Spoon the flour into the measuring cup and then level off the top with a knife. Don’t scoop it and don’t pack it into the cup. Alternatively weigh it on a food scale. Click ‘metric’ below our list of ingredients to get the ingredient weights in grams.
- The espresso powder is optional. It just enhances the chocolate flavor in the cake and doesn’t make it taste like coffee at all.
- Don’t squeeze or blot the zucchini. It’s not necessary to squeeze excess water out of the shredded zucchini and it’s also not necessary to blot it with a paper towel. Just shred it using a box grater or a food processor (we usually prefer the food processor) and then use it as is. If there is any water that pools at the bottom of the food processor then leave that behind. But there is no need to squeeze or blot the shredded zucchini that you use. There is also no need to peel the zucchini.
- You can use either Greek yogurt or sour cream in this recipe. We usually use Greek yogurt as that’s what we have on hand more often. This just provides extra richness and moisture in this cake without needing to use more oil.
- Adapt for 8-inch cake pans. This cake can be made in either 8-inch or 9-inch cake pans. If you’re making it in 8-inch pans then the bake time will be slightly longer, usually 35 minutes. Check for doneness using the toothpick test after 35 minutes.
- Storage: Keep the cake covered at room temperature for 2-3 days or covered in the fridge for 5 days. It’s also freezer friendly if you’d like to freeze it.
- Nutritional information is for cake only and excludes frosting. The nutritional information for the chocolate buttercream frosting can be found on that separate linked recipe.
This cake is amazing! This was my first time baking with zucchini and I can’t believe how good it came out. I’m going to make your other recipes with zucchini now, I’m obsessed!
Yay! That’s so awesome Leila! Thanks for sharing and enjoy the rest of the zucchini baking! 🙂
Delicious!!!!!!!
Thank you! 🙂