This fudgy, ultra-moist chocolate zucchini cake recipe is the perfect way to use up that ripe zucchini! It bakes up so moist and tender and is studded with chocolate chips. It’s so good it doesn’t even need frosting, and that means a lot coming from me.

How to Make This Fudgy Chocolate Zucchini Cake
Let’s walk through each step of this recipe to make sure it turns out as amazing as possible.
Step 1: Make the Chocolate Cake Batter
First, we tackle the chocolate cake batter! Preheat the oven to 350°F/175°C and line and grease a square 8-inch metal pan or a round 9-inch cake pan.
In a large bowl, add 1/2 cup warm water, 1/2 cup sour cream, 1/4 cup oil, 1 egg, 1 tsp vanilla, and 1 tsp instant espresso (optional). Whisk together until combined.
In a separate, medium-sized bowl, whisk together 1 cup + 2 Tbsp flour, 1 cup sugar, 1/3 cup cocoa powder, 1 tsp baking powder, 3/4 tsp baking soda, and 1/2 tsp salt.
Add the dry ingredients to the wet ingredients and mix until just combined.

Then fold in 1 1/2 cups of peeled and shredded zucchini that’s been blotted/gently dried with a paper towel and 2/3 cup of chocolate chips into the batter.
The goal of blotting the zucchini is to remove just a bit of the moisture, but not all of it! You do not want to wring out the zucchini.

Pour the batter into the prepared pan, then sprinkle the remaining 1/3 cup of chocolate chips on top of the batter.
Bake for 35-40 minutes, or until a toothpick inserted in the center comes out with a few moist crumbs. Remove the pan from the oven.

Place the pan on a wire cooling rack and let the cake cool fully in the pan. If you’re in a rush, place the whole pan in the freezer for 30 minutes to accelerate the cooling process.
This cake can be stored at room temperature for up to 3 days or in the fridge for 5 days.
Substitutions & Swaps in This Chocolate Zucchini Cake Recipe
This recipe uses quite a few ingredients, and I know you might not have them all on hand. Or if you have food allergies or restrictions, I’ve got you covered.
Below are some swaps and substitutions that you can make.
- All-Purpose Flour – This recipe turns out best with all-purpose flour. However, you can swap in a good gluten-free flour blend (like this) if needed. Just be sure to stir the batter longer than normal to help give the cake proper structure, and let the batter sit for about 20 minutes before baking it if you opt to make a gluten-free version.
- Granulated Sugar – I do not recommend reducing the amount of sugar or changing the type of sugar, as it will change the texture of the cake.
- Dark Baking Cocoa – I like to use Hershey’s brand of dark baking cocoa, but you can also use Dutch-processed cocoa or black cocoa. If you can’t find dark cocoa powder or don’t have any on hand, you can use regular unsweetened baking cocoa in its place.
- Sour cream – You can also use full-fat Greek yogurt, buttermilk, whole milk, or an alternative yogurt or milk (almond, soy, oat).
- Vegetable Oil – Any flavorless oil can be used in this recipe. Canola, vegetable, or even sunflower oil would all work great. Olive oil can be used too, but it might give the cake a slightly different flavor.
- 1 Large Egg – This recipe uses a large egg. If you have an egg allergy, you can try using a vegan egg replacer.
- Grated Zucchini – I usually use freshly grated zucchini, but you can also use frozen zucchini. Just thaw it first, then give it a gentle squeeze to remove the excess liquid (otherwise the batter can turn out too watery). You don’t need to wring it completely dry—keeping a little bit of moisture helps keep the cake tender and fudgy.
- Chocolate Chips – Any type of chocolate chip or chopped chocolate bar will work in this recipe! I prefer mini chocolate chips. You can also skip adding the additional chocolate.

Making This Chocolate Zucchini Cake Recipe in Different Sizes
This recipe can be made in a square 8-inch pan or a round 9-inch cake pan. If you want to use a round 8-inch pan, the bake time will be a few minutes longer. Be sure to check the center with a toothpick for doneness.
If you want to make a loaf cake using this recipe, use an 8.5×4.5-inch pan and bake for 50-60 minutes at 350°F/175°C, or until a toothpick inserted in the center of the layer comes out with a few moist crumbs.

You can also make a chocolate zucchini bundt cake with this recipe. Make 1.5 batches of batter, then heavily grease a bundt pan and fill it with batter.
Bake in a preheated 350°F/175°C oven for 45-55 minutes, or until a toothpick inserted in the center of the layer comes out with a few moist crumbs.

Can I Make This Chocolate Zucchini Cake in Advance?
You can make this cake in advance! It can sit at room temperature for up to 3 days or be stored in the fridge for up to 5 days in an airtight container.
It can also last up to a month in the freezer. Move it to the fridge the day before you plan to eat it, then let it come to room temperature before serving.
Tips for Making the Best Chocolate Zucchini Cake
- Ingredients at room temperature mix together better. Set out any cold ingredients ahead of time.
- Properly measure the flour (spoon into the cup measure, then level) or use a kitchen scale to measure your dry ingredients.
- Mix the cake batter just until the ingredients are incorporated once you add the dry ingredients. This will ensure your cake bakes up tender and soft.
- Test the center with a toothpick or scribe to check for doneness. This recipe has a lot of moisture in it, and can take a while to bake through! If the toothpick comes out gooey, it needs more time (just make sure it’s gooey batter, not a melted chocolate chip that you accidentally hit). It’s done when the toothpick comes out with a few moist crumbs or is clean.
- Even though it’s annoying, peel the zucchini before you shred it. If you don’t, the zucchini won’t fully kind of melt into the batter as it bakes, and the bits of zucchini will be much more noticeable.

Let Me Know What You Think!
If you make this chocolate zucchini cake recipe, I’d love to hear what you think! Please leave a rating and let me know your thoughts with a comment below.
Don’t forget to tag me @chelsweets and use #chelsweets so that I can see your amazing creations on social media.
Chocolate Zucchini Cake Recipe
Ingredients
Chocolate Zucchini Cake Recipe
- 1 cup + 2 Tbsp all-purpose flour 150g
- 1 cup granulated sugar 200g
- 1/3 cup unsweetened or dark cocoa powder 33g
- 1 tsp baking powder 4g
- 3/4 tsp baking soda 5g
- 1/2 tsp fine salt 3g
- 1/2 cup water, warm 120g
- 1/2 cup full-fat sour cream or greek yogurt, room temperature 125g
- 1/4 cup vegetable or canola oil 55g
- 1 large egg, room temperature 56g
- 1 tsp vanilla extract or vanilla bean paste 4g
- 1 tsp instant espresso or coffee 2g – optional
- 1 1/2 cups peeled and shredded zucchini, blotted (patted dry with a paper towel but not wrung out) 200g
- 1 cup dark or semi-sweet chocolate chips, divided 175g – optional
Instructions
Chocolate Zucchini Cake
- Preheat the oven to 350°F/175°C. Line and grease a square 8-inch or round 9-inch metal baking pan.
- In a large bowl, add 1/2 cup warm water, 1/2 cup sour cream, 1/4 cup oil, 1 egg, 1 tsp vanilla, and 1 tsp instant espresso (optional). Whisk together until combined.
- In a separate, medium-sized bowl, whisk together 1 cup + 2 Tbsp flour, 1 cup sugar, 1/3 cup cocoa powder, 1 tsp baking powder, 3/4 tsp baking soda, and 1/2 tsp salt.
- Add the dry ingredients to the wet ingredients and mix until just combined. Then fold in 1 1/2 cups of peeled and shredded zucchini that's been blotted/gently dried with a paper towel and 2/3 cup of chocolate chips into the batter (I like to use mini chocolate chips, but any type works!). The goal of blotting the zucchini is to remove just a bit of the moisture, but not all of it! You do not want to wring out the zucchini.
- Pour the batter into the prepared pan, then sprinkle the remaining 1/3 cup of chocolate chips on top of the batter. Bake for 35-40 minutes, or until a toothpick inserted in the center comes out with a few moist crumbs. Remove the pan from the oven.
- Place the pan on a wire cooling rack and let the cake cool fully in the pan. If you're in a rush, place the whole pan in the freezer for 30 minutes to accelerate the cooling process. This cake can be stored at room temperature for up to 3 days or in the fridge for 5 days.
Video
Notes
Ingredient Swaps & Substitutions
For a detailed list of ingredient swaps and substitutions that can be made in each component of this recipe, please refer to the “swaps and substitutions” section above.Making This Cake in Different Sizes
This recipe can be made in a square 8-inch pan or a round 9-inch cake pan. If you want to use a round 8-inch pan, the bake time will be a few minutes longer. Be sure to check the center with a toothpick for doneness. If you want to make a loaf cake using this recipe, use an 8.5×4.5-inch pan and bake for 50-60 minutes at 350°F/175°C, or until a toothpick inserted in the center of the layer comes out with a few moist crumbs. You can also make a chocolate zucchini bundt cake with this recipe. Make 1.5 batches of batter, then heavily grease a bundt pan and fill it with batter. Bake in a preheated 350°F/175°C oven for 45-55 minutes, or until a toothpick inserted in the center of the layer comes out with a few moist crumbs.Tips for Making the Best Chocolate Zucchini Cake
- Ingredients at room temperature mix together better. Set out any cold ingredients ahead of time.
- Properly measure the flour (spoon into the cup measure, then level) or use a kitchen scale to measure your dry ingredients.
- Mix the cake batter just until the ingredients are incorporated once you add the dry ingredients. This will ensure your cake bakes up tender and soft.
- Test the center with a toothpick or scribe to check for doneness. This recipe has a lot of moisture in it, and can take a while to bake through! If the toothpick comes out gooey, it needs more time (just make sure it’s gooey batter, not a melted chocolate chip that you accidentally hit). It’s done when the toothpick comes out with a few moist crumbs or is clean.
- Even though it’s annoying, peel the zucchini before you shred it. If you don’t, the zucchini won’t fully kind of melt into the batter as it bakes, and the bits of zucchini will be much more noticeable.
Chocolate Zucchini Cake Variations
To make a gluten-free chocolate zucchini cake, swap in your favorite gluten-free flour blend for the AP flour this recipe calls for. Be sure to over-mix the batter and let it sit for at least 30 minutes before baking for the best results.Making This Cake in Advance & Storage Tips
You can make this cake in advance! It can sit at room temperature for up to 3 days or be stored in the fridge for up to 5 days in an airtight container. It can also last up to a month in the freezer. Move it to the fridge the day before you plan to eat it, then let it come to room temperature before serving.Nutrition
Other Recipes You Might Like:





Roselyn
Wednesday 12th of November 2025
This chocolate zucchini cake is insanely good! It's moist fudgy light and melts in the mouth! It has alot lesser calories than other recipes also it's a very forgiving recipe. I used 60g of erythritol+monk fruit sugar instead of regular sugar to cut down on the calories and it still came out super moist and fudgy! The sweetness was just right I don't like mine too sweet. Also I was lazy to dry the zucchini with paper towel so I didn't dry or squeeze the zucchini and it still rises perfectly well! 10/10 chocolate cake! I will bake this from now on whenever I have zucchinis on hand! Thank you so much for the recipe! Looking forward trying other of your recipes! <3
Chelsey White
Friday 14th of November 2025
Hi Roselyn,
So happy to hear you loved this recipe, and thank you for sharing your modifications for anyone who also wants to use less sugar :)
Cayla
Saturday 20th of September 2025
Can you make cupcakes with this recipe?
Chelsweets
Monday 22nd of September 2025
Hi Cayla,
I haven't tested this recipe out in cupcake form, but you should be able to make this recipe into cupcakes! An 8x8 cake that’s about 1 1/2 inches tall is roughly equal to 12 standard cupcakes. Just line your tin and fill each cup about 2/3 to 3/4 full. Bake time will be shorter, and should be around 16–20 minutes at 350°F (start checking at 15 minutes since every oven is a little different). Hope that helps, let me know how they turn out!
Bella
Friday 19th of September 2025
It was the best cake I have had
Chelsweets
Monday 22nd of September 2025
Hi Bella,
This makes my heart so happy to hear!! Thank you for taking the time to share, I’m so glad you loved it :)
Kat
Tuesday 2nd of September 2025
I’m not one to normally write a review… I guess everyone says this. However, I had a surplus of zucchini from my garden and was at a loss of what to make. I’m already tired of fritters and zucchini bread.
My dad turned 78 today and wanted a zucchini dinner- so I thought it would be fun to make this for his birthday cake [of note- he likes sweet but doesn’t get jazzed about overly saccharin desserts].
I made this tonight and everyone said it was so delicious they wanted seconds and my dad said it was his favorite birthday cake he’s ever had! (And that’s a direct quote!) I served this with vanilla ice cream and it was a 10/10.
I am at a high altitude (approx. 6.200 feet) and did not make any adjustments -although did press on the zucchini shreds a bit with cloth - as they were quite wet.
I’ve saved this recipe and cannot wait to make it again!
Thank you so so much for such a sweet cake recipe and even sweeter memories.
Chelsweets
Monday 8th of September 2025
Hi Kat,
This absolutely made my day, thank you for sharing! What a beautiful way to celebrate your dad’s birthday, and I’m so honored my recipe could play a part in such a special memory. Hearing that it was his favorite birthday cake ever is just the sweetest compliment, and serving it with vanilla ice cream sounds perfect. I’m glad it worked out so well even at high altitude, too! Wishing your dad a very happy 78th, and I hope this cake continues to bring lots of joy to your table :)
Bailey
Sunday 31st of August 2025
Holy cow what a cake. Insanely moist and tender. Absolutely loved it. 10/10 recommend!
Chelsweets
Tuesday 2nd of September 2025
Bailey this comment absolutely made my day!!!!!! I just ate a slice of it this morning (I made 4 batches when I was recipe testing that I'm still working through), and I thought "I hope people love this cake as much as I do." So your comment put the biggest smile on my face!! Thanks for trying this recipe!