Chocolate Zucchini Cake

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

I originally published this recipe in 2017 and have since added new photos, a video tutorial, and additional success tips.

cake server removing slice of chocolate zucchini cake.

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! Zucchini recipes have never been more decadent than this one. 🙂

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 is the hidden vegetable inside. If you’re one who believes these veggies should only be in zucchini casserole, zucchini fritters, or zucchini biscuits and have nothing to do with dessert, keep an open mind. Carrot cake, anyone?!


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
  • A delicious way to use up a bumper crop of summer zucchini
  • 3 cups of vegetables hiding inside—and you don’t even taste it
  • Covered in fudge-like chocolate buttercream

One reader, Stacie, commented:Delicious chocolate cake! No evidence of three cups of zucchini in there! So good!!! ★★★★★

One reader, Emily, commented:This was amazing! Probably the best chocolate cake we’ve ever had—so moist! And no one even guessed there was zucchini in it. ★★★★★

One reader, Kara, commented:This wasn’t just the best zucchini recipe I’ve ever tried, it was the best cake recipe as well! The zucchini here makes this moist and fudgy, almost like a brownie, but still fluffy like cake. I used cream cheese frosting and it was divine. I will be making this for birthdays in the future! ★★★★★

fork with a bite of a slice of chocolate zucchini cake.

Overview: Chocolate Zucchini Cake Ingredients

This decadent cake is made with fresh 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 a few key ingredients:

  • 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.
  • 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. We use it in chocolate zucchini bread and in this chocolate cake roll, too. You can find espresso powder in the coffee aisle at the grocery store or online.
  • 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. Despite the zucchini inside, this isn’t health food, it’s dessert. Don’t try to make it into something it’s not!
  • Eggs: 4 eggs bind everything together and add moisture. Remember that room-temperature ingredients are important.
  • Sour Cream: Just like in chocolate peanut butter cake, you can use sour cream or plain yogurt. Either add moisture.
  • Zucchini: Use 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, apple zucchini bread, and zucchini muffins, too!

Optional 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 (just like in my peanut butter chocolate chip zucchini bread), but mini chocolate chips or even dark chocolate chips pair wonderfully, too.

ingredients on marbled surface including chocolate chips, cocoa powder, oil, flour, eggs, espresso powder, brown sugar, and sour cream.
shredded zucchini on cutting board

Let Me Show You How to Make It:

This chocolate zucchini cake comes together quickly and easily, just like my regular zucchini cake. 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 the recipe Notes section for details.

  • Need cupcakes instead? This recipe yields about 24–30 cupcakes. See recipe Notes.
chocolate batter in glass bowl and shown again in 2 round cake pans.
chocolate cakes in round cake pans on gold cooling rack.

Chocolate Frosting

We’re topping and filling this chocolate zucchini cake with smooth, silky, and creamy chocolate buttercream. You’ll use my favorite chocolate buttercream recipe, but increase the quantity as directed in the recipe card below.

How to Assemble a Layer Cake

If you’re new to assembling and layering cakes, or if you just need a refresher, see my How to Assemble a Layer Cake video tutorial. The quick video guide will walk you through how to stack and decorate it.

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 Wilton 1M for the pictured piping:

chocolate frosting in glass bowl with blue spatula and shown again being spread on chocolate cake layer.
close-up of piped chocolate frosting with chocolate sprinkles and mini chocolate chips.
chocolate zucchini cake on marble and wood cake stand.

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

slice of chocolate zucchini cake with chocolate frosting on beige plate.
Print
clock clock iconcutlery cutlery iconflag flag iconfolder folder iconinstagram instagram iconpinterest pinterest iconfacebook facebook iconprint print iconsquares squares iconheart heart iconheart solid heart solid icon
slice of chocolate zucchini cake with chocolate frosting on beige plate.

Chocolate Zucchini Cake

4.9 from 226 reviews
  • Author: Sally McKenney
  • Prep Time: 15 minutes
  • Cook Time: 30 minutes
  • Total Time: 3 hours, 30 minutes
  • Yield: serves 10-12
  • Category: Dessert
  • Method: Baking
  • Cuisine: American
Save Recipe

Description

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


Ingredients

Cake

  • 2 cups (250g) all-purpose flour (spooned & leveled)
  • 3/4 cup (62g) 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 (about 360g) shredded zucchini (lightly blotted; see recipe Note) (2 medium zucchini, about .751 lb.)
  • 1 cup (180g) semi-sweet chocolate chips (regular or mini)

Chocolate Buttercream

  • 1 and 1/4 cups (282g) unsalted butter, softened to room temperature
  • 3 and 1/2 cups (420g) confectioners’ sugar
  • 3/4 cup (62g) unsweetened cocoa powder (natural or Dutch-process)
  • 35 Tablespoons (45–75ml) heavy cream (or half-and-half or whole milk), at room temperature
  • 1/4 teaspoon salt
  • 1 teaspoon pure vanilla extract
  • optional for decoration: chocolate chips and/or chocolate sprinkles


Instructions

  1. Preheat oven to 350°F (177°C). Grease two 9-inch round cake pans, line with parchment paper rounds, then grease the parchment paper. Parchment paper helps the cakes seamlessly release from the pans. (If it’s helpful, see this parchment paper rounds for cakes video & post.)
  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 attachment, beat the oil, granulated sugar, brown sugar, eggs, sour cream, and vanilla together until combined. Add the zucchini and mix to incorporate. Add the dry ingredients to the batter and beat on medium speed until completely combined. Fold in the chocolate chips. Batter will be slightly thick.
  3. Pour batter evenly into cake pans. Bake for around 28–32 minutes or until the cakes are baked through. To test for doneness, lightly poke the top of the cake with your finger—if it bounces back instead of leaving , the cake is done. Or you can insert a toothpick into the center of the cake—if it comes out clean, it’s done.
  4. Set the cakes on a cooling rack and let cool in the pans for 1 hour. After 1 hour, remove the cakes from the pans, discard the parchment rounds, and let the cakes finish cooling directly on the rack. The cakes must be completely cool before frosting and assembling.
  5. Make the buttercream: With a handheld or stand mixer fitted with a paddle attachment, beat the butter on medium speed until creamy, about 2 minutes. Add confectioners’ sugar, cocoa powder, 3 Tablespoons of cream, salt, and vanilla. Beat on low speed for 30 seconds, then gradually increase to high speed and beat until it’s smooth and creamy. Do not over-whip. Add 1/4 cup more confectioners’ sugar or cocoa powder if frosting is too thin or 1–2 more Tablespoons of cream if frosting is too thick. (I usually add 1 more.) Taste. Add another pinch of salt if desired.
  6. 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, cake turntable, or serving plate. Evenly cover the top with a heaping cup of frosting. Top with 2nd cake layer and spread the remaining frosting all over the top and sides. Pipe any leftover frosting on top. (I used Wilton 1M tip.) Decorate with chocolate sprinkles or chocolate chips if desired. Slice and serve.
  7. Cover leftover cake and store at room temperature for up to 2 days or in the refrigerator for up to 5 days.

Notes

  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 GraterGlass Mixing Bowls | Electric Mixer (Handheld or Stand) | 9-inch Round Cake Pan | Cake Turntable | Wilton 1M Piping Tip | Piping Bag (Reusable or Disposable) | Cake Carrier (for storage)
  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-inch Cake: Interested in making a sheet cake instead? This batter will fit into a 9×13-inch pan. The bake time is long—at least 45 minutes to ensure the thick cake is baked through. Same oven temperature.
  5. Non-Chocolate Zucchini Cake: Looking for zucchini cake without chocolate? Here is my regular zucchini cake topped with brown butter cream cheese frosting.
  6. 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.

Instead of cake, try these as cupcakes! Directions in the recipe Notes above.

chocolate zucchini cupcake topped with chocolate fudge frosting
sally mckenney headshot purple shirt.
About the Author

Sally McKenney

Sally McKenney is a baker, food photographer, and New York Times best-selling author. Her kitchen-tested recipes and step-by-step tutorials have given millions of readers the knowledge and confidence to bake from scratch. Sally’s work has been featured on TODAY, Good Morning America, Taste of Home, People, and more.

Read More

Reader Comments and Reviews

  1. Jenny B says:
    July 21, 2020

    Just made your chocolate zucchini cake and it looks delicious. What garnered my attention to your recipe was the 3 cups of zucchini. The last recipe I made only took 2 cups of zucchini. Can’t wait to taste it. I have also made your strawberry and the lemon blueberry cakes with great success. My daughter saw the strawberry cake I made for a friend and decided upon the spot that would be her BD cake this year. She has previously for years requested a coconut cake from an old recipe book from my previous work. I usually go to your site before making any new cake and am never disappointed. Thanks for all your wonderful recipes.

  2. Mia says:
    July 20, 2020

    This was a yummy cake and no one detected the zucchini.. moist and chocolate lovers like me loved it.. my boys (men) loved it..my grandkids thought it was tasty..next trying out your naked cake for my birthday


  3. Deb Gundersen says:
    July 16, 2020

    The cocoa I have in the house is Hershey’s Special Dark. It says it is a combination of natural and Dutch cocoa. Can I use it in this cake recipe? Also, will the recipe work with gluten free flour.

    1. Sally @ Sally's Baking says:
      July 17, 2020

      Hershey’s Special Dark works in this recipe– I’ve used it before here! I haven’t tested the recipe with gluten free flour, but let me know how it goes!

  4. Doris & Alan says:
    July 9, 2020

    OMG… We’re in chocolate heaven. This is just the most delicious chocolate cake we’ve ever made. (Both my husband and I bake). Didn’t even frost it…it is truly so moist that you don’t want anything to take from that moistened bite. And we are chocolate fanatics. Sharing the recipe all over the place..

  5. Kellie says:
    July 7, 2020

    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 says:
      July 7, 2020

      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.

  6. Andi Paola says:
    June 17, 2020

    Hi Sally,

    Can I use Chocolate Crean Cheese Frosting instead?

    1. Sally @ Sally's Baking says:
      June 17, 2020

      Sure can!

  7. Patty says:
    June 16, 2020

    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.

  8. Allison W. says:
    May 27, 2020

    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.

  9. Amy says:
    May 22, 2020

    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. Sally @ Sally's Baking says:
      May 22, 2020

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

  10. Sophie says:
    May 8, 2020

    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!

  11. Larissa says:
    May 3, 2020

    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.

  12. Thalia says:
    May 1, 2020

    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!

  13. Myriam says:
    March 24, 2020

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

    1. Sally @ Sally's Baking says:
      March 24, 2020

      Shredded apple or carrot works too!

  14. Mary says:
    March 23, 2020

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

  15. Josie says:
    March 17, 2020

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

    1. Sally @ Sally's Baking says:
      March 17, 2020

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

  16. Katie says:
    March 3, 2020

    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. Sally @ Sally's Baking says:
      March 4, 2020

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

  17. Cassie says:
    February 29, 2020

    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

  18. Catherine Sullivan says:
    February 25, 2020

    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!

  19. Liz says:
    February 13, 2020

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

  20. Lydia says:
    February 9, 2020

    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.

  21. Janice Pahl says:
    January 24, 2020

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

  22. Nancy Mcleary says:
    December 21, 2019

    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. Sally @ Sally's Baking says:
      December 22, 2019

      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.

  23. Pia says:
    December 18, 2019

    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

  24. Amy says:
    December 15, 2019

    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.

  25. A says:
    December 14, 2019

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

    1. Sally @ Sally's Baking says:
      December 15, 2019

      Sure does! See instructions in notes.

  26. kali says:
    October 22, 2019

    Made this cake several times this Summer and it was a hit with everyone even our picky eaters! So moist and delicious chocolate cake heaven. Thank you

  27. Rox5280 says:
    September 20, 2019

    I’ll definitely make this cake again. The cake has chocolatey depth, and I used Guittard extra dark chips (63%), so I opted for the vanilla frosting for balance. The Vanilla Frosting is great too. Got rave reviews from the four people I shared with.

    For your high altitude peeps: At a mile high, I did *almost* textbook adjustments—added 1/4 C. flour (2T. per cup) and cut the baking powder in half. Silly, but I couldn’t bring myself to halve the baking soda to such a small amount. Baked 24 cupcakes at 350 for 23 minutes. Cake was perfectly done, though domed a skosh too much (a little pointy) for proper results. I’m just happy they didn’t rise tall and then collapse into craters. Next time, I’ll cut the baking soda, too, in search of the perfect dome.

  28. Kristy says:
    September 15, 2019

    I made this recipe a few weeks ago and even with the “help” of my toddler, baking it in three 20cm pans in a slightly dodgy oven, and reducing the amount of sugar by about two-thirds, it was delish. I found letting it sit for a day got the balance just right between the super-sweet icing and my less sweet version of the cake. Am making again for my niece’s birthday tomorrow!

  29. Tracey Binder says:
    September 12, 2019

    So delicious! No one would ever know 3 cups of zucchini are in this cake! I needed a glass of milk to enjoy it fully, its very decadent. Thanks for sharing, I am saving the recipe!

  30. Ann says:
    September 8, 2019

    I’ve been hiding zucchini in chocolate cake since my boys, (now adults), were little.
    After trying many recipes, I thought I’d found the perfect one – the one that I’ve been using for years- until- on a whim- I found your recipe and OH MY GOODNESS!
    This cake is to die for- so chocolate -e and so moist – and amazing even without the frosting I didn’t have the chance to make.
    Thank you for sharing and for my new favorite chocolate zucchini cake recipe.