This vegan chocolate zucchini cake is my go-to when I want something chocolatey without much fuss. It comes together in one bowl and needs no eggs or butter.
It’s perfect for weeknight dessert, a lunchbox treat, or a potluck where you need something everyone can eat. The zucchini keeps the crumb soft and moist.

Use up that extra zucchini from the garden and you’ll have a rich cake that tastes like a treat, not a compromise.
Why This Recipe Works
Shredded zucchini adds moisture without any flavor getting in the way. Combined with oil instead of butter, the cake stays tender for days rather than drying out by the next morning.
Cocoa powder and a little espresso powder deepen the chocolate flavor. Brown sugar adds a soft, almost caramel note, so the cake tastes rich without needing expensive ingredients.
Ingredients
- All-purpose flour
- Brown sugar
- Granulated sugar
- Dutch-process cocoa powder
- Baking powder
- Baking soda
- Espresso powder
- Salt
- Dairy-free milk
- Zucchini
- Neutral oil
- Dairy-free yogurt
- Apple cider vinegar
- Vanilla extract
- Vegan chocolate or chocolate chips
- Dairy-free cream
You’ll find exact amounts in the recipe card below.
Variations
- Nutty crunch – Fold in half a cup of chopped walnuts or pecans with the chocolate for texture.
- Orange twist – Add the zest of one orange to the batter for a bright, citrusy note that pairs well with dark chocolate.
- Mint chocolate – Stir in half a teaspoon of peppermint extract and use mint-flavored chocolate chips.
How to Make Vegan Chocolate Zucchini Cake
- Step 1 – Preheat the oven to 350°F (175°C) and grease a 9-inch round or square pan, or line it with parchment.
- Step 2 – Whisk together the flour, brown sugar, granulated sugar, cocoa powder, baking powder, baking soda, espresso powder and salt in a large bowl.
- Step 3 – Squeeze as much liquid as you can from the shredded zucchini using a clean towel, then set it aside.
- Step 4 – In another bowl, whisk the dairy-free milk, oil, yogurt, apple cider vinegar and vanilla until smooth.
- Step 5 – Pour the wet mixture into the dry ingredients and stir just until combined, then fold in the zucchini.
- Step 6 – Spread the batter into the pan and scatter the chopped chocolate over the top, pressing it in lightly.
- Step 7 – Bake for 35 to 40 minutes, until a toothpick inserted in the center comes out with moist crumbs.
- Step 8 – Cool in the pan for 15 minutes, then lift out and cool completely before frosting with the dairy-free cream.

Expert Tips
- Squeeze the zucchini – Excess water makes the cake gummy, so wring it out well before adding it.
- Don’t overmix – Stir the batter only until no dry flour streaks remain for a tender crumb.
- Use room-temperature liquids – Cold milk and yogurt can make the batter seize and bake unevenly.
Serving Suggestions
Serve slices plain with coffee or tea for a simple afternoon treat. A spoonful of extra dairy-free cream on the side makes it feel special.
For a party, cut it into squares and add fresh berries on top. The bright fruit balances the rich chocolate nicely.
How to Store Leftovers
Keep the cake covered at room temperature for up to two days, or refrigerate for up to five. Chilled slices are fudgier and hold their shape well.
To freeze, wrap individual slices tightly and freeze for up to three months. Thaw overnight in the fridge or warm briefly in the microwave.
Frequently Asked Questions
Can I make chocolate zucchini cake without dairy-free yogurt?
Yes. Unsweetened dairy-free yogurt is best, but a plant-based sour cream or a little extra oil also works. The cake will be slightly less tangy but still moist.
Do I need to peel the zucchini?
No, peeling isn’t necessary. The green skin is nearly invisible once shredded and adds a little extra color and nutrition to the cake.
Why is my zucchini cake gummy?
Usually the zucchini was not squeezed enough, or the cake was underbaked. Wring out the shreds well and test with a toothpick in the center before cooling.
Can I make this cake in cupcake form?
Yes. Divide the batter among lined muffin cups and bake for about 18 to 22 minutes, until a toothpick comes out clean.
Vegan Chocolate Zucchini Cake

Ingredients
- 1 1/2 cups (190g) all-purpose plain flour, spooned and leveled
- 3/4 cup (150g) packed brown sugar
- 1/2 cup (100g) granulated sugar
- 3/4 cup (65g) Dutch-process cocoa powder
- 2 1/2 teaspoons baking powder
- 1/4 teaspoon baking soda
- 1 teaspoon espresso powder (optional)
- Pinch of salt (optional)
- 1 cup (240g) dairy-free milk, room temperature
- 1 1/2 cups (190g) coarsely shredded zucchini (about 1 medium-large zucchini)
- 1/2 cup (110g) neutral flavored oil
- 1/3 cup (75g) dairy-free yogurt, room temperature
- 1 tablespoon apple cider vinegar (optional)
- 1 teaspoon vanilla extract (optional)
- 1 cup (200g) roughly chopped vegan chocolate or chocolate chips
- 1 cup (230g) dairy-free cream (or thick part of canned coconut cream)
Instructions
- Preheat the oven to 350°F (175°C) and grease a 9-inch square pan or line it with parchment.
- Whisk together the flour, brown sugar, granulated sugar, cocoa powder, baking powder, baking soda, espresso powder and salt in a large bowl.
- Squeeze the shredded zucchini in a clean towel to remove excess moisture.
- Whisk the dairy-free milk, oil, yogurt, apple cider vinegar and vanilla in a separate bowl until smooth.
- Pour the wet mixture into the dry ingredients and stir until just combined, then fold in the zucchini.
- Spread the batter in the pan and scatter the chopped chocolate over the top.
- Bake for 35 to 40 minutes, until a toothpick inserted in the center comes out with moist crumbs.
- Cool in the pan for 15 minutes, then transfer to a rack and cool completely before topping with the dairy-free cream.
Notes
- Use room-temperature milk and yogurt so the batter mixes evenly.
- Dutch-process cocoa gives a darker, smoother chocolate flavor than natural cocoa.
- For a thicker topping, chill the coconut cream before whipping.

