Chocolate Zucchini Cake

Super moist and indulgent chocolate zucchini cake is studded with chocolate chips and topped with chocolate fudge frosting. Made with three cups of shredded zucchini (you can’t taste it!), this is the most decadent way to eat your greens.

slice of chocolate zucchini cake on a black plate

Today, we have a triple dose of chocolate in the form of luxuriously rich chocolate zucchini cake. No, you can’t taste the zucchini. No, you can’t see the zucchini. Yes, it’s unbelievably delicious and I’m showing you exactly how to make it!

Chocolate Zucchini Cake Video Tutorial

Can you just look at how rich and moist this cake is? It tastes even better than it looks, I swear. The real secret behind it are the hidden vegetables inside. If you’re one who believes veggies should have nothing to do with dessert, keep an open mind. Carrot cake, anyone?!

slice of chocolate zucchini cake on a black plate with a fork

Why You’ll Love This Chocolate Zucchini Cake

  • Just as loved as my chocolate cake
  • Super moist and rich with mega chocolate flavor
  • Easy to make
  • Uses up summer zucchini
  • 3 cups of vegetables hiding inside– you don’t even taste it!
  • Covered in chocolate buttercream

Overview: Chocolate Zucchini Cake Ingredients

This decadent cake is made with fresh summer zucchini and pantry basics. Did you know that cocoa powder can dry out baked goods much more than flour? To compensate for this, we ensure there’s plenty of added moisture in the cake batter. Let’s review:

  • Flour: Sturdy all-purpose flour is the base of this cake recipe. Do not use cake flour– when combined with ultra-light cocoa powder, cake flour is too fine.
  • Unsweetened Natural Cocoa Powder: Cocoa powder takes the place of some flour. Just as in my regular chocolate cake recipe, make sure you’re using natural unsweetened cocoa powder instead of dutch-process cocoa powder. If you’re interested, see dutch-process vs natural cocoa powder for an in-depth explanation.
  • Baking Soda & Baking Powder: Use both baking soda and baking powder for lift.
  • Espresso Powder: Espresso powder accentuates the chocolate flavor. While optional, I highly recommend using it. The chocolate zucchini cake won’t taste like coffee. Rather, the espresso powder helps bring out the intense chocolate flavor.
  • Salt: Salt balances the flavor.
  • Oil: Oil adds moisture. You can try replacing *some* of the oil with unsweetened applesauce. I’ve done this with chocolate cakes and muffins and the result is wonderful, but I don’t recommend replacing all of it. Regardless of the zucchini inside, this isn’t health food, it’s dessert. Don’t make it something it’s not! 🙂
  • Sugar: We’ll use a combination of brown sugar and white granulated sugar. Brown sugar not only provides moisture, but flavor as well.
  • Eggs: 4 eggs bind everything together and add moisture. Remember room temperature is important.
  • Sour Cream: You can use sour cream or plain yogurt. Either add moisture.
  • Vanilla Extract: Pure vanilla extract adds flavor.
  • Zucchini: There are a whopping 3 cups of shredded zucchini in this recipe. Testing how much we can get away with… without actually tasting it! Zucchini is pure magic in cakes– nothing but flavorless moisture. Same goes with my zucchini bread, too!
  • Chocolate Chips: For mega chocolate flavor, add chocolate chips to the batter. They’re key to those melty pockets of chocolate in each slice. I use semi-sweet chocolate chips, but mini chocolate chips or even dark chocolate chips would pair wonderfully.

wet ingredients in a glass bowl and dry ingredients in a glass bowl

2 images of shredded zucchini on a white cutting board and chocolate cake batter in a glass bowl with a hand mixer

2 round cake pans filled with chocolate zucchini cake batter before baking

Overview: How to Make Chocolate Zucchini Cake

This chocolate zucchini cake comes together quickly and easily! Simply whisk the dry ingredients in one bowl and beat the wet ingredients together in another bowl. Combine the wet and dry ingredients, then add the chocolate chips. The cake batter will be slightly thick thanks to all of the zucchini! Divide the batter between two 9-inch cake pans or you can make a quarter sheet cake using a 9×13 inch cake pan. See my recipe notes for details.

  • Need cupcakes instead? This recipe yields about 24-30 cupcakes. See recipe note.

spreading chocolate fudge frosting onto layer of chocolate zucchini cake on a serving plate

Chocolate Frosting

We’re topping and filling this chocolate zucchini cake with smooth, silky, and creamy chocolate buttercream. We’re using my favorite chocolate buttercream recipe, but increasing the quantity. We do this for my regular chocolate cake, too. If you would rather top this cake with vanilla frosting, use the vanilla frosting included in my white cake recipe. Regardless of which you choose, you’ll have enough frosting to frost the entire layer cake AND a little leftover for some fun piping on top. Decorate however you’d like! I used Ateco #30 tip for the piping.

overhead image of chocolate zucchini cake with piped frosting decorations with a slice cut out

chocolate zucchini cake on a serving plate

Deep, dark, luxuriously rich, crazy moist, and weirdly loaded with vegetables that you absolutely can’t taste. After one bite you’ll be convinced this is the best way to eat your veggies! You’ll love my zucchini oatmeal chocolate chip cookies, too.

More Chocolate Recipes

clock clock icon cutlery cutlery icon flag flag icon folder folder icon instagram instagram icon pinterest pinterest icon facebook facebook icon print print icon squares squares icon
slice of chocolate zucchini cake on a black plate with a fork

Chocolate Zucchini Cake

  • Author: Sally
  • Prep Time: 15 minutes
  • Cook Time: 30 minutes
  • Total Time: 3 hours, 30 minutes
  • Yield: serves 10-12
  • Category: Dessert
  • Method: Baking
  • Cuisine: American


This super rich and moist chocolate zucchini cake is topped with milk chocolate fudge frosting- you won’t even taste the vegetables!


  • 2 cups (250g) all-purpose flour (spoon & leveled)
  • 3/4 cup (63g) unsweetened natural cocoa powder
  • 2 teaspoons baking soda
  • 1/2 teaspoon baking powder
  • 1 teaspoon espresso powder (optional)
  • 1/2 teaspoon salt
  • 1 cup (240ml) canola or vegetable oil
  • 1 cup (200g) granulated sugar
  • 3/4 cup (150g) packed light or dark brown sugar
  • 4 large eggs, at room temperature
  • 1/3 cup (80g) sour cream or plain yogurt, at room temperature
  • 2 teaspoons pure vanilla extract
  • 3 cups shredded zucchini (about 3 medium)*
  • 1 cup (180g) semi-sweet chocolate chips
  • chocolate frosting or vanilla frosting


  1. Preheat oven to 350°F (177°C). Grease two 9×2 inch cake pans. (Make sure they’re at least 2 inches high, deep dish style.) Set aside.
  2. Make the cake: Whisk the flour, cocoa powder, baking soda, baking powder, espresso powder (if using), and salt together in a large bowl. In another large bowl using a handheld or stand mixer fitted with a paddle or whisk attachment, beat the oil, granulated sugar, brown sugar, eggs, sour cream, vanilla, and zucchini together until combined. Pour into dry ingredients and beat on medium speed until completely combined. Beat in the chocolate chips. Batter will be slightly thick.
  3. Pour batter evenly into cake pans. Bake for around 25-32 minutes or until the cakes are baked through. To test for doneness, insert a toothpick into the center of the cake. If it comes out clean, it is done. Allow cakes to cool completely in the pans set on a wire rack. The cakes must be completely cool before frosting and assembling.
  4. Assemble and frost: First, using a large serrated knife, slice a thin layer off the tops of the cakes to create a flat surface. Discard (or crumble over ice cream!). Place 1 cake layer on your cake stand or serving plate. Evenly cover the top with frosting. Top with 2nd layer and spread the remaining frosting all over the top and sides. Pipe any leftover frosting on top. (I used Ateco #30 tip.) Decorate with chocolate sprinkles or mini chocolate chips if desired. Slice and serve.
  5. Cover any leftover cake and store at room temperature for 2-3 days or in the refrigerator for up to 5 days.


  1. Make Ahead Instructions: Prepare cakes and frosting 1 day in advance. Keep cakes at room temperature, covered tightly. Refrigerate prepared frosting in an airtight container, then bring to room temperature when ready to use. Frosted or unfrosted cakes may be frozen up to 2 months, thaw overnight in the refrigerator and bring to room temperature, if desired, before serving.
  2. Special Tools (affiliate links): Box Grater, Glass Mixing Bowls, KitchenAid Stand Mixer, KitchenAid Hand Mixer, Round Cake Pan, Cupcake Liners, Cupcake Pan, #30 Ateco Closed Star Tip, and Disposable Icing Bags
  3. Blot the Zucchini: Give the shredded zucchini a very light blotting with a towel. Don’t squeeze too much moisture out, just a little blot before adding to the wet ingredients. I own and love this box grater— works quickly!
  4. 9×13 Cake: Interested in making a sheet cake instead? This batter will fit into a 9×13 pan. The bake time is long– at least 45 minutes to ensure the thick cake is baked through. Same oven temperature.
  5. Cupcakes: This recipe yields 24-30 cupcakes. Bake for 18-22 minutes or until a toothpick inserted in the center comes out *mostly* clean with no wet batter. Same oven temperature.

Keywords: chocolate zucchini cake

Also try these as cupcakes! Directions in the recipe notes.

chocolate zucchini cupcake topped with chocolate fudge frosting


  1. Hello Sally~

    Wondering if this recipe would work without the chocolate chips? I’m considering this recipe with your ganache frosting. Thank you.

    1. Yes, you can certainly leave out the chocolate chips and the ganache frosting would be wonderful!

  2. Hi, Sally!

    Would it work ok with butter instead of oil, or half of each?

    1. Hi Nuri! I recommend sticking with the recipe.

  3. Hi Sally, does this cake freeze well? Thanks, Ally

    1. Sure does! See instructions in notes.

  4. This is by far the BEST chocolate cake ever. Hands down. Everyone who has eaten it can’t believe it has zucchini in it. One week I made it 3 different times because it was loved that much. So simple to make and I didn’t even mention how unbelievably moist it is. It’s great without the frosting but why would you want to do that lol. Double the chocolaty deliciousness I say. I even turned it into cupcakes for easy serving. So glad you shared it. It’s one of my go too recipes.

  5. Hi Sally ,had never heard of a zucchini chocolate combo and I tried this out for a small baking competition and won the second place ! The cakes texture and taste was outstanding and would love to try out all your other recipes . Thank you so much

  6. I would rate it more than 5 if I could! I had RAVE reviews on the chocolates cupcakes I made!!! I need to make this a bunt cake for Christmas. What sort of baking adjustments should I make?
    As always, Sally, your recipes make me look good!
    Please get back to me ASAP, as I need to make this again on Tuesday.
    Thanks so much!

    1. Thanks Nancy! I haven’t tried this as a bundt cake but readers have had success. Bake at 350 degrees F for well over the baking time the layers require. Keep your eye on it and use a toothpick to test for doneness.

  7. I just have say that this is the moist and by far the best chocolate cake I have ever made!!!!! Well done!

  8. Hi Sally! This cake tastes great, based on the scraps I had. I subbed half of the oil for applesauce and it worked brilliantly. For whatever reason, I wasn’t expecting it to be as deeply moist as it was on the outside, which made decorating it a bit of a challenge. Could be I just didn’t use enough frosting (I used the swiss meringue buttercream on it). Thanks for another good recipe.

  9. Hi Sally – I’m so excited to make this cake for my Galentine’s soiree this week. Could I use a bundt pan? I’m afraid my 9″ round cake pans aren’t tall enough.

    Thanks so much!

    1. Hi Jesse! I haven’t tried this as a bundt cake but readers have had success. Bake at 350 degrees F for well over the baking time the layers require. Keep your eye on it and use a toothpick to test for doneness.

  10. This is my favorite recipe of all time. And I love that my kids request it for their birthdays!

  11. Do you have nutritional info? Carbs? Fat? And such?

    1. Hi Diane! I’m unsure of the nutritional info of this recipe, but there are many great online calculators like this one:

  12. Catherine Sullivan says:

    All I had at home was Dutch processed Special Dark cocoa powder. I added 1 tablespoon white vinegar for an acid to react to the baking soda. It turned out amazing!

    1. I’m so glad you were able to make it work for you and that you enjoyed it, Catherine!

  13. I replaced the zucchini with steamed broccoli wizzed in the food processor. It was AMAZING and my green phobic 4 year old had no idea he had just consumed his nemesis

  14. Hi Sally! Could I put fresh strawberries sliced up in between the layers to add freshness or would that just be too much moisture?

    1. Hi Katie, It’s a very moist cake but you can add berries between the layers if you wish.

  15. If I was planning to make this eggless do you think it would hold?

    1. No, it won’t.

  16. Could you replace the canola/vegetable oil with virgin olive oil?

    1. I recommend 1 cup of melted coconut oil as a substitute for the vegetable oil.

  17. Hi! Has anyone tried this with a gluten free flour, specifically almond or coconut flour? Thanks in advance!

  18. What can I use instead of zucchini? I only have one and I want to make it today, please help!

    1. Shredded apple or carrot works too!

  19. Hi Sally! Your cake certainly lives up to ALL its claims – super moist, delicious, dreamy!!! I used what I had on hand – subbed light brown sugar for the white sugar, plain drained yogurt for the sour cream, chopped up 72 % cacao dark chocolate bar for the chocolate chips, packet of finely crushed instant Sanka for the espresso powder, used unblotted grated zucchini & *added* at least 2/3 cup of hot strong brewed coffee for extra moisture. Batter was thinner at that point but baked up beautifully in no time flat with an unbeatable texture. Only thing I’d do differently would be to melt the chocolate chips into the hot coffee before mixing in to really intensify the chocolate flavor throughout this champion of cakes! I used a swiss meringue buttercream for frosting, then drizzled a a stream of thin ganache on top…Thank you so much for this masterpiece of a cake!

  20. Great recipe! My family and neighbors loved it. Got more than 30 cupcakes out of it and used Ganache on top instead of buttercream due to transportation issues. Tasted great on day 2 as well. Thanks for sharing.

  21. Hi Sally, thank you for sharing your amazing recipes. I have tried so many chocolate zucchini cakes/muffin recipes all somewhat dry. Yours is the best according to my husband and granddaughter . I made the cake and muffins or my sons bday (43) and will deliver them curb side tomorrow. Thanks again be well and stay safe!

  22. Gail Hudson says:

    Hi Sally,
    May I congratulate you on a magically decorated cake. Gorgeous.
    I will make this cake. I have one question. I have a group that are gluten free. If I use gluten free flour will it work?? Or should I just make it for MEEE !!
    Gail in Australia

    1. Hi Gail, Thank you! I have not tested this recipe with gluten free flour but let me know if you do.

  23. Can I use brewed espresso instead of powder? If so, how much? I plan to make this for my son’s birthday on Memorial Day!

    1. Hi Ruthie, while I recommend espresso powder (or even instant coffee granules), you can use brewed very strong black coffee or brewed espresso. I recommend 1 Tablespoon.

      1. The cake came out great. I used the fresh espresso, and used 3 cups finely shredded carrots instead of the zucchini. Having seconds now! Happy upcoming birthday to you as well, Sally. Thank you for your wonderful recipes

  24. This is our family’s favorite chocolate cake recipe and we make it every year at least once. I was wondering if I could halve the recipe to make a single layer cake? The heart wants the double layer but the jeans are begging for a single layer during quarantine. Haha! Love your site and all the hard work you put into your recipes.

    1. I’m so happy your family enjoys it, Amy! Yes you can cut it in half 🙂

  25. Allison W. says:

    Thank you, thank you, thank you! While I’m a pretty fair baker, I’m not typically good at making chocolate cake. In my opinion there is nothing worse than dry chocolate cake. I actually halved this recipe and put it into 2smaller, round pyrex glass bowls. My husband hates cake and so I usually make half the amount so I don’t eat the whole thing! I then have a mini double layer cake just for me. Well, I was letting it cool and hubby told me how good it smelled. He actually asked for a “taste”. I hadn’t frosted it yet but told him to take a bite at his own risk, not letting him know about the zucchini. He ate the whole stinking small cake leaving me with only a 1/2 of a 1/2! Honestly, in my opinion it doesn’t even need frosting! I did put a few extra chocolate chips in the batter because, well-it was my cake after all! Yum! This is a definite keeper. You are a genius.

  26. Thanks for cross-referencing recipes since I started out looking at zucchini cookies and the chocolate zucchini cake sounded more appealing. I also made half the recipe and not planning to frost. I know the sugar and fats make these recipes so much tastier, though I prefer to use a little less so will see how it turns out. Hopefully the ratio of dry and wet ingredients didn’t change too much when I made these small adjustments.

  27. Hi Sally,

    Can I use Chocolate Crean Cheese Frosting instead?

    1. Sure can!

  28. Hi Sally, I’m thinking of making this recipe for July 4th, but as a cupcake. Would the recipe still be possible?

    1. Yes, see recipe notes!

      1. Thank you! Also, if we want to add frosting to the cupcakes from this recipe, what frosting would you recommend?

  29. Hi Sally, is the baking soda, sodium bicarbonate?
    Planning to make this with the excess monster zucchini we have from the veg garden!

    1. Hilari @ Sally's Baking Addiction says:

      Hi Sheena, yes! Baking soda is sodium bicarbonate. If interested, here’s our post about baking powder vs baking soda. Hope you enjoy this cake- happy baking!

  30. Hi Sally, I love this recipe and have made it before with lots of success however, during a pandemic a 8″ double layer cake is a lot for 2 people. If I cut the recipe in half can I get away with a 2 or 3 layer 6″ cake? Thanks! Hope you and your family are doing well.

    1. Stephanie @ Sally's Baking Addiction says:

      Hi Kellie, You can cut the recipe in half and just make a single layer 8 or 9 inch cake. If you wish to change the pan size you can use the post on Cake Pan Sizes and Conversions to calculate how much batter to use.

1 5 6 7 8 9

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

With kitchen-tested quality recipes and step-by-step tutorials, my goal is to give you the confidence to bake and cook from scratch.

Sally's signature

Recipes You’ll Love



Join the community on the 1st of every month as we tackle a new challenge recipe.Review Sally's Baking Challenge FAQ page if you have any questions.

View More

A tradition since 2013, every December we countdown to Christmas with 10 new cookie recipes in a row!

View More

The first week of every November is all about Thanksgiving Pies.

View More

My Cookbooks

Sally's Cookbooks

About Sally

Welcome to my Kitchen!

I’m Sally, a cookbook author, photographer, and blogger. My goal is to give you the confidence and knowledge to cook and bake from scratch while providing quality recipes and plenty of pictures. Grab a cookie, take a seat, and have fun exploring! more about Sally