Chocolate zucchini cake is one of the easiest ways to turn shredded zucchini into a simple dessert that tastes rich, moist, and full of chocolate. The zucchini blends right into the batter, so there is no vegetable taste, just a tender cake with deep chocolate flavor.

I have always loved the idea of adding shredded zucchini to baked goods. In this chocolate zucchini cake recipe, it adds moisture and tenderness, but no zucchini flavor. The cake has a rich chocolate taste, and because it is not overly sweet, the chocolate really shines through.

This post may contain affiliate links. See my disclosure statement.
Why You’ll Love This Recipe
- This recipe is made in a 9 x 13 pan with basic pantry ingredients, and instead of frosting, chocolate chips are sprinkled over the top while the cake bakes.
- It is simple enough for a weeknight, special enough to share, and a very good way to use extra garden zucchini.
- It is a great recipe for fresh or frozen shredded zucchini.
- The zucchini keeps the cake moist, but you cannot taste it.
Reader Note:
“I highly recommend this recipe! I made it three times in the last month with an abundance of zucchini, but also because it is simply delicious and easy to make. I put the chocolate chips on top and sprinkled a little unsweetened coconut. The best!”
Ingredient Notes

- Oil: Canola oil or vegetable oil keeps this cake moist. I would not substitute butter unless you are comfortable testing the texture, because oil works very well with the cocoa powder and shredded zucchini.
- Sugar: This cake is not overly sweet, which lets the chocolate flavor come through.
- Vanilla: Use pure vanilla extract or vanilla bean paste. It adds a little warmth and brings the flavors together.
- Zucchini: Shredded zucchini adds moisture and tenderness to the cake, but you cannot taste it. There is no need to peel the zucchini before shredding, and I do not squeeze out the liquid. The moisture from the zucchini is part of what makes this cake so good.
- Flour: All-purpose flour gives the cake structure.
- Unsweetened cocoa powder: Use regular unsweetened cocoa powder for the best chocolate flavor.
- Baking soda: Baking soda helps the cake rise and gives it a soft texture.
- Salt: A small amount of salt balances the sweetness and brings out the chocolate flavor.
- Egg: The egg helps bind the batter and gives the cake a better texture. The first time I made this cake, I left it out, but now I add it every time.
- Chocolate chips: The chocolate chips are sprinkled over the top partway through baking. They melt slightly and make a simple topping, so frosting is not needed.
How To Make Chocolate Zucchini Cake

- Preheat oven to 350 degrees F.
- In the bowl of a stand mixer, with the wire whip attached, combine oil, sugar and vanilla. (Alternately use a large mixing bowl with a hand mixer.)
- In a separate bowl, whisk together flour, cocoa powder, baking soda, and salt.
- On medium speed, in 3 batches, add flour mixture to oil/sugar mixture. Beat well between batches and scrape sides of the bowl.
- (Batter will be crumbly at this point, but will moisten when zucchini is added.)
- Switch to the flat beater attachment. With the mixer on low speed, add zucchini and mix well.
- Pour batter into prepared Pyrex or glass pan that measures 9 in. x 13 in.
- Bake for 15 minutes.
- Remove from oven. Top with chocolate chips.
- Bake 10 – 15 minutes more. A knife or toothpick inserted in center should come out clean. Do not overbake!
- Cool on a wire rack. Dust with powdered sugar before serving if desired.
Helpful Tips

- Keep the wet and dry ingredients separate until it is time to combine them. This helps the cocoa powder, flour, baking soda, and salt mix evenly into the batter.
- The batter will look dry and crumbly before the zucchini is added. Don’t worry, and don’t add extra liquid. Once the shredded zucchini goes in, the batter will loosen and become much easier to spread in the pan.
- Shred the zucchini first, then let it sit while you gather the other ingredients. Any liquid that collects should go right into the batter.
- If you are using frozen shredded zucchini, thaw it first, then add the zucchini and the liquid to the batter. That extra moisture helps keep the cake tender.
- A 9 x 13 glass baking dish works very well for this recipe. Make sure the pan is prepared before adding the batter.
- Don’t overbake the cake. Start checking it at 25 minutes. A knife or toothpick inserted in the center should come out clean, or with just a few moist crumbs.
- Let the cake cool before slicing. A light dusting of powdered sugar is pretty, but completely optional.

How to Store Chocolate Zucchini Cake
Cover the cake tightly and store it at room temperature for up to 2 days. After that, place it in the refrigerator so it stays fresh. If the cake has been refrigerated, let individual pieces sit at room temperature for a few minutes before serving. This softens the texture and brings back more of the chocolate flavor.

Frequently Asked Questions
Chocolate Zucchini Cake Recipe
Ingredients
- 1/2 cup vegetable or canola oil
- 1 1/2 cups sugar
- 2 teaspoons vanilla extract or vanilla bean paste
- 2 cups all purpose flour
- 1/2 cup cocoa powder
- 1 1/2 teaspoons baking soda
- 1 teaspoon salt
- 2 cups shredded zucchini
- 1 large egg (optional)
- 1 cup semi-sweet chocolate chips
Instructions
- Preheat oven to 350 degrees F.
- In the bowl of a stand mixer, with the wire whip attached, combine oil, sugar and vanilla. (Alternately use a large mixing bowl with a hand mixer.)
- In a separate bowl, whisk together flour, cocoa powder, baking soda, and salt.
- On medium speed, in 3 batches, add flour mixture to oil/sugar mixture. Beat well between batches and scrape sides of the bowl.
- (Batter will be crumbly at this point, but will moisten when zucchini is added.)
- Switch to the flat beater attachment. With the mixer on low speed, add zucchini and mix well.
- Pour batter into prepared Pyrex or glass pan that measures 9 in. x 13 in.
- Bake for 15 minutes.
- Remove from oven. Top with chocolate chips.
- Bake 10 – 15 minutes more. A knife or toothpick inserted in center should come out clean. Do not overbake!
- Cool on a wire rack. Dust with powdered sugar before serving if desired.
Notes
Nutrition information is automatically calculated, so should only be used as an approximation.
If you try this recipe, I’d love to hear what you think. A quick rating or comment is always appreciated, and helps other readers too.
Chocolate zucchini cake is such a simple way to use extra zucchini, and it is one of those recipes that always feels like a little surprise. The cake is rich and moist, but still easy enough to make without much planning. If you have more zucchini to use, try these easy zucchini muffins, this moist zucchini bread recipe, or this simple zucchini gratin. Each one is a good way to make the most of zucchini season.
Shop & Source


amazon Kitchen Shop
A curated collection of
my favorite kitchen essentials.






This is a staple dessert recipe. I like it frosted with a simple confectionery sugar, butter and milk icing.
Seeing I have been blessed with a beautiful crop of zucchini from one plant, I am looking for recipes for using these. Thank you for sharing your recipes and showing the beautiful ways to decorate. I used the idea for the coffee station using items I already had.
Love your posts, look forward to getting all.
Yummy Ann,
Canât wait to try this recipe, I will prepare with butter or other non seed oil ingredient due to the seed oil warnings circulating. So far, substituting seed oils has not negatively impacted the baked items I have made.
I just made this and it’s really tasty. I added the egg and had to add another 1/3 cup of zucchini as it was so stiff it wouldn’t drop off the beater. I just sprinkled 2/3 c. of chocolate chips on top as that seemed like plenty.
I highly recommend this recipe!! Made it three times in the last month with the abundance of zucchini, but also because it is simply delicious and easy to make! I put the chocolate chips on top and sprinkled a little unsweetened coconut! The best!
Ive been making this cake for years! my family loves it!
This zucchini cake was soooo goodđ¤
I make it but put pecans with chocolate chips. Thanks so much for such a delicious and different recipe.
I love a cake like this to bring to a friend because you donât have to worry about transporting a frosted cake.
What a great way to get your husband or children to eat their vegetables!!!! Super good! Thank you
Love any recipe that lets me use up some of the zucchini I have. This one rates the best. Did not use chocolate chips, rather a thin glaze of basic creme cheese frosting.
Your recipes are always so simple – which I greatly appreciate.
What I had for breakfast this morning!! So moist!
This zucchini cake is a wonderful treat! My whole family loves it! The chocolate chips add just enough sweetness. I also made one for my neighbor who generously shares her garden surplus with me every summer! It is a keeper recipe!
Just made this tonight. We loved it! It wasnât too sweet, and had wonderful flavor. I added two eggs as you had mentioned and powdered sugar to my pieces, but my hubby liked it plain. Thank you for this recipe! I will add it to my favorites. đ
I did not drain the zucchini because the recipe said it was not necessary. The cake was spectacular! Do leave in the liquid otherwise you may end up with a dry cake!
Chocolate Zucchini Cake — So Good! Did not add eggs. Will definitely make again. Topped with vanilla frozen yogurt. Look forward to trying more of your recipes.
Just made with last year’s zucchini and it is wonderful!
Gonna dust half and ice half.
Delicious. I frosted. Love this 5 star recipe and I will make again soon.
My CZC recipe has a teaspoon of cinnamon in it which I like! I also enjoy it chilled, the entire loaf cut in 3 or 4 layers, each layer spread with whipped cream or Cool whip, the reassembled. Looks like an $8 restaurant dessert! It’s not too shabby given a few seconds in the microwave with a nice layer of cream cheese spread on it for breakfast either! I’ve also been known to bake mine in a Bundt pan, slice it into 2 layers, “frost” that middle layer with whoopie pie filling, then douse the whole thing with a can of cherry pie filling; shades of Black Forest Cake! Guaranteed to get compliments. Can you tell I like recipes that look like I worked hard–but didn’t?
My garden is booming with zucchini right now so I decided to try your recipe for chocolate zucchini cake. It is marvelous! Can’t believe how good turned out to be. After mixing in the shredded zucchini into the batter it was still so… dry and lumpy. I even showed my husband and asked him what he thought. We were both very skeptical. I told him that I did substitute the canola oil with coconut oil, and I didn’t melt it. The oil was room temperature and very soft though. Anyway, I thought I’d try baking it and I’m glad I did. The raw batter looked like chunks of dirt, but while baking it and watching it through the oven window it melted down pretty nicely. I also made a little bit of butter cream frosting to hid the not so smooth surface, and sprinkled some mini chocolate chips on top. Yum-Yum. I shared it with my neighbors. Very good! I want to make another one and take it to work. Thank you. PS I did decrease the sugar to 1 1/4 cups.
Thank you for the wonderful zucchini chocolate cake recipe. We all loved it and it was the perfect way to use up some of the zucchini we have been growing in our garden. The added bonus is that the cake is vegan, so everyone in our family got to enjoy it. We loved it with a sprinkle of powdered sugar dusted over a paper doily. We will definitely be making this one again! :)
Thank you Ann! Bumper crop of zucchini that I trying to use and this is perfect! I absolutely love it! It has been two days and it still is soft and tasty. A ++ recipe!
Made this today and it was so delicious and very moist. I have one zucchini plant in the backyard and I get two zucchiniâs everyday. This was a great way to use it. Also will try your freezing method. I hope it will work for me! Anyway, my batter was dry even after I added the zucchini. Guess mine were so fresh maybe the liquid was not as much….I donât know. I was leery since the batter was so thick….I was tempted to add some liquid. I didnât and it turned out great. Thank you for a great and fast receipeđ
This cake is delicious. Very easy to make. I’m taking this cake to a meeting today, but of course I had to sample it . It has a deep chocolate flavor and a nice texture. This recipe is a keeper. Thank you Ann.
Can I use a large cookies sheet instead of a baking dish, for the choc zucchini cake?
Hi Lynda…I tried to answer you by email but it bounced back and I could not get it to go through. I’m answering here in the off chance you might check back. If you mean a jelly roll pan with sides I think that would work. Just decrease the baking time because it won’t be as thick. If you try it let me know…thanks!
Hi Ann,
Tried your Chocolate Zucchini Cake recipe and you asked for feedback. I am not usually one to share my opinion, but this recipe deserves a big, ” whoop- whoop”! It is truly amazing and although the ingredients are pantry items, the end result is truly something special. I believe I have a new go-to recipe!
Yay!! I’m so glad you liked it. Thank you so much for letting me know. <3