• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Home
  • Recipes
  • About Me
  • Contact
  • Subscribe
    • Facebook
    • Instagram
    • Pinterest
    • Twitter
    • Youtube
Sugar Spun Run
  • All Recipes
  • Desserts
    • Cookies
    • Candy
    • Bars & Brownies
    • Cake
    • Pies
  • Breads (Yeast & Quick Breads)
  • Savory
  • Breakfast
    • Muffins
    • Scones
  • Seasonal
    • Cozy Winter / Holiday Treats
    • Easter / Spring
    • Fall Recipes
    • Summer Recipes
  • Shop
menu icon
go to homepage
search icon
Homepage link
  • Home
  • About Me
  • All Recipes
  • Contact/Work with Me
    • Facebook
    • Instagram
    • Pinterest
    • Twitter
    • Youtube
  • ร—
    Home ยป Recipes ยป Desserts

    Chocolate Zucchini Cake

    August 10, 2023 By Sam 43 Comments

    This post may contain affiliate links. As an Amazon Associate I earn from qualifying purchases. Please read my disclosure policy.
    Jump to Recipe Jump to Video
    collage of chocolate zucchini cake, top image of slice of cake with bite taken, bottom image of slice on white plate

    This chocolate zucchini cake is so chocolatey, so moist, and so flavorful, you’ll never taste the zucchini (seriously!). I top mine with an indulgent chocolate cream cheese frosting that’s simple and not-too-sweet. Recipe includes a how-to video!

    Square slice of frosted chocolate zucchini cake missing a bite.

    Incredible Chocolate Zucchini Cake

    “Your chocolate zucchini cake needs tweaking.” My mom said to me, scraping the last few fudgy crumbs from her plate onto her fork.

    “What? What’s wrong with it!?” All of my other taste-testers had raved about this recipe and I’d already marked it down as being perfected. I was in love with the rich fudginess, the deep, decadent chocolate taste and perfectly balanced moisture, the ✨perfectly✨ complementary chocolate cream cheese frosting, and honestly I was just stunned that she wasn’t.

    “Oh, it’s delicious, it’s so good.” She cut another slice. “But I can’t taste the zucchini at all. Not even a little bit.” A wave of relief washed over me immediately.

    While my mother might disagree, you are not supposed to taste the zucchini in a zucchini dessert (or zucchini bread for that matter)! No, its purpose is to impart moisture, create a lovely texture, use up a surplus of (typically ridiculously large and prolific) garden squash, and, sure, even to sneak a healthy component to an otherwise indulgent treat. This recipe ticks all the boxes and I’d be lying if I said I wasn’t patting myself on the back after trying my first bite.

    Overhead view of a frosted chocolate cake that's been cut into squares in a pan.

    Why you’ll love it:

    • Amazing crumb: Moist, without being wet or spongey (sometimes a tricky feat when adding shredded veggies to cake). The crumb is deliriously chocolatey, tender, melt-in-your mouth and so soft.
    • Easy: No peeling the zucchini, no mixer needed for the cake, and no stacking, layering, or fussy decorating required.
    • Incredible chocolate flavor: Blooming the cocoa by mixing it in steaming hot water (or hot coffee) intensifies the chocolate flavor (so helpful when making chocolate cake!).
    • Perfect frosting: So far, every single person who has tried this cake has proceeded to rave about the frosting! It’s subtly tangy, smooth and creamy. I originally considered doing a simple ganache topping, but the chocolate cream cheese frosting complements the zucchini much better.

    I’m so happy with how this cake turned out. It’s adapted from my chocolate zucchini muffins and double chocolate muffins, and the flavor is incredible. I promise no one will know there is zucchini inside (which is the whole point of the recipe–more on this below!).

    What You Need

    There are quite a few ingredients pictured below, but all but a few are pantry staples most bakers will already have on hand. Let’s talk a bit about a few of them.

    Overhead view of ingredients including zucchini, brown sugar, sour cream, cocoa powder, and more.
    • Zucchini. There is no need to peel your zucchini before shredding it–yay! Make sure you do blot it after shredding though–we want to avoid adding too much moisture to our cake.
    • Sour cream. A key source of moisture, flavor, and tenderness! Sour cream is one of my favorite ingredients to bake with. Full-fat plain greek yogurt would also work just fine here.
    • Cocoa powder. Stick with natural cocoa powder here, as dutch process cocoa could cause leavening issues since we are using only baking soda. If you want to learn more about the science behind this, check out my posts on natural vs. dutch process cocoa and baking powder vs. baking soda.
    • Hot water. Your water should be so hot it’s steaming (or boiling!). This is critical for blooming the cocoa powder and bringing out its flavor, similar to steeping tea or brewing coffee.
    • Mini chocolate chips. A sprinkle of mini chocolate chips on top of the frosting adds a nice texture. You could also throw some chocolate chips in the batter (up to a cup), but there’s enough chocolate going on here that it’s not really necessary.

    SAM’S TIP: If you’d really like to deepen the chocolate flavor, add a pinch of instant coffee or espresso to your cocoa powder and hot water mixture! This won’t make your cake taste like coffee, but it will intensify the chocolate flavor.

    Remember, this is just an overview of the ingredients I used and why. For the full recipe please scroll down to the bottom of the post!

    How to Make Chocolate Zucchini Cake

    Prep the Zucchini

    Two photos showing zucchini being shredded and blotted.
    1. Shred the zucchini using the shred blade of a food processor, then (optional, see below) very briefly pulse to chop the shreds into more manageable bits.
    2. Blot the zucchini with paper towels to remove excess moisture. I do this step after measuring/weighing the zucchini. While not all recipes require the zucchini to be blotted, I find that not blotting it made this cake too wet.

    SAM’S TIP: While you could use a box grater, I personally like using my food processor to shred my zucchini. Much like the carrots in my carrot cake, I first use the shred blade, then switch to a normal blade to briefly pulse the zucchini into smaller bits. If you do this too, be careful not to pulse too much, or you could make the zucchini watery. Of course, you could also skip this extra step and just use the hand grater, just note you may have more discernible pieces of zucchini in your cake.

    Make the Cake Batter

    Four photos showing chocolate cake batter being prepared and combined with shredded zucchini.
    1. Whisk together all dry ingredients except the cocoa powder, then set aside.
    2. Add the cocoa powder to the very hot water and whisk until smooth, then stir this mixture into your melted butter.
    3. Add the sour cream, eggs, and vanilla to the butter mixture and stir well to combine.
    4. Gently fold the dry ingredients into the wet ingredients until halfway combined, then add the zucchini. Fold in the zucchini until fully incorporated.
    Two photos showing a chocolate cake in a pan before and after baking.
    1. Pour the batter into a greased 9×13 pan and bake for 33-35 minutes at 350F.
    2. Test for doneness with a toothpick, then remove from the oven and let cool completely before frosting.

    Frosting

    Two photos showing frosting being spread over a chocolate sheet cake before adding mini chocolate chips.
    1. Prepare the frosting and spread it evenly over the cooled cake.
    2. Top with mini chocolate chips, if desired, then slice and enjoy!

    SAM’S TIP: While you can use a mixer for the frosting, don’t use it for the cake batter! If you do, you could end up over-mixing the batter, which can lead to a dense, rubbery cake.

    Metal pan of chocolate zucchini cake missing a few slices.

    Frequently Asked Questions

    Does chocolate zucchini cake taste like zucchini?

    Nope! The point of a zucchini baked good recipe is not to taste the zucchini; it’s to use up garden produce in a practical way. Baked goods are a great way to do this because the zucchini adds a ton of moisture but is neutrally flavored, so it doesn’t make your dessert taste like you’re eating vegetables.

    Does chocolate zucchini cake need to be refrigerated?

    If you need it to last longer than a day or two, yes. I recommend refrigerating after 24 hours and enjoying within five days of baking. Make sure to store in an airtight container so it doesn’t dry out in the fridge.

    Can I use a different frosting?

    Sure! Chocolate ganache, peanut butter frosting, raspberry frosting, brown butter frosting, coffee frosting, and salted caramel frosting would all be great choices here. Also, if you’re a frosting fiend like me, check out my 7 classic frosting recipes email series!

    Slice of frosted chocolate zucchini cake on a white plate.

    Would you like to see any other zucchini recipes? I’ve got one more coming later this month that I’m very excited to share!

    Enjoy!

    Let’s bake together! I’ll be walking you through all the steps in my written recipe and video below! Find over 500 of my baking videos for FREE on YouTube.

    Square slice of frosted chocolate zucchini cake missing a bite.

    Chocolate Zucchini Cake

    This chocolate zucchini cake is so chocolatey, so moist, and so flavorful, you'll never taste the zucchini! I top mine with a chocolate cream cheese frosting that's simple and not-too-sweet.
    Recipe includes a how-to video!
    5 from 18 votes
    Print Pin Rate
    Prevent your screen from going dark
    Course: Cake, Dessert
    Cuisine: American
    Prep Time: 25 minutes minutes
    Cook Time: 32 minutes minutes
    Total Time: 57 minutes minutes
    Servings: 12 servings
    Calories: 604kcal
    Author: Sam Merritt

    Ingredients

    For Cake

    • 2 cups (250 g) all-purpose flour
    • 1 cup (200 g) granulated sugar
    • 1 cup (200 g) light brown sugar firmly packed
    • 1 ½ teaspoons baking soda
    • ½ teaspoon table salt
    • ½ cup (50 g) natural cocoa powder
    • ½ cup (118 ml) steaming hot or boiling water
    • 10 Tablespoons (141 g) melted butter
    • 1 cup (240 g) sour cream
    • 2 large eggs lightly beaten
    • 2 teaspoons vanilla extract
    • 1 ½ cups (200 g) shredded zucchini I pat dry with a paper towel after weighing/measuring

    For Frosting

    • 8 oz (226 g) cream cheese softened
    • ½ cup (113 g) unsalted butter softened
    • 2 ½ cups (315 g) powdered sugar
    • ⅓ cup (35 g) cocoa powder
    • ¾ teaspoon vanilla extract
    • ⅛ teaspoon table salt
    • 2 Tablespoons mini chocolate chips for topping optional

    Recommended Equipment

    • Box grater
    • Mixing bowls
    • 13×9 baking pan
    • Electric mixer

    Instructions

    For Cake

    • Preheat oven to 350F (175C) and lightly grease a 9×13 baking dish with butter.
    • In a large mixing bowl, whisk together flour, sugars, baking soda, and salt until well-combined.
      2 cups (250 g) all-purpose flour, 1 cup (200 g) granulated sugar, 1 cup (200 g) light brown sugar, 1 ½ teaspoons baking soda, ½ teaspoon table salt
    • Pour cocoa powder into a separate, heatproof mixing bowl and then pour hot/boiling water overtop. Whisk until smooth.
      ½ cup (50 g) natural cocoa powder, ½ cup (118 ml) steaming hot or boiling water
    • Add butter and whisk until combined.
      10 Tablespoons (141 g) melted butter
    • Add sour cream, egg, and vanilla extract and whisk well.
      1 cup (240 g) sour cream, 2 large eggs, 2 teaspoons vanilla extract
    • Add dry ingredients to the wet and use a spatula to gently fold ingredients together until about halfway combined. Add zucchini and continue to stir until ingredients are well incorporated and batter is uniform – do not overmix or cake will be dense and dry.
      1 ½ cups (200 g) shredded zucchini
    • Spread batter evenly into prepared pan and transfer to center rack of 350F (175C) oven and bake for 33-35 minutes and until a toothpick inserted in center comes out clean or with moist crumbs. Allow cake to cool completely before covering with frosting.

    For Frosting

    • Combine cream cheese and butter in a mixing bowl and stir until smooth and creamy. Gradually add powdered sugar and stir until combined.
      8 oz (226 g) cream cheese, ½ cup (113 g) unsalted butter, 2 ½ cups (315 g) powdered sugar
    • Stir in cocoa powder.
      ⅓ cup (35 g) cocoa powder
    • Add vanilla extract and salt and stir until smooth and well combined.
      ¾ teaspoon vanilla extract, ⅛ teaspoon table salt
    • Spread frosting evenly over cooled cake (I ice it directly in the pan) then sprinkle with mini chocolate chips for decoration. Slice and enjoy.
      2 Tablespoons mini chocolate chips for topping

    Notes

    Storing

    Cover with foil or plastic wrap and store at room temperature for up to 24 hours or in the refrigerator for up to 5 days. Cake may also be frozen for several months.

    Nutrition

    Serving: 1serving | Calories: 604kcal | Carbohydrates: 83g | Protein: 6g | Fat: 30g | Saturated Fat: 18g | Polyunsaturated Fat: 1g | Monounsaturated Fat: 8g | Trans Fat: 1g | Cholesterol: 103mg | Sodium: 421mg | Potassium: 244mg | Fiber: 3g | Sugar: 62g | Vitamin A: 977IU | Vitamin C: 3mg | Calcium: 79mg | Iron: 2mg

    Nutritional information is based on third-party calculations and should be considered an estimate only. Actual nutritional content will vary based upon brands used, measuring methods, cooking method, portion sizes, and more.

    Tried this recipe? Show me on Instagram!Mention @SugarSpun_Sam or tag #sugarspunrun!

    Related Recipes

    • Chocolate zucchini muffins topped with chocolate chips on a metal cooling rack.
      Chocolate Zucchini Muffins
    • sliced zucchini bread
      Zucchini Bread
    • Close-up view of a chocolate chip zucchini muffin.
      Chocolate Chip Zucchini Muffins
    • zucchini roll
      Zucchini Roll
    « Blueberry Lemonade
    Oreo Frosting »

    Reader Interactions

    Comments

    1. Jessica

      August 04, 2024 at 9:08 pm

      5 stars
      Great recipe and delicious cake. easy to follow and make. Everyone loved it. I will definitely make again

      Reply
    2. Janice

      July 25, 2024 at 3:03 pm

      5 stars
      I have made this cake twice now. I really like the hint of blooming the cocoa in hot water first. this time I used hot coffee instead of hot water. my husband couldn’t wait for it to cool so it was frosted warm lol. delicious! It has been added to my go to recipes.

      Reply
      • Emily @ Sugar Spun Run

        July 25, 2024 at 5:02 pm

        We’re so happy you like it, Janice! Thanks for the review ๐Ÿฉท

        Reply
    3. Jody

      July 05, 2024 at 8:07 pm

      would halving the ingredients work to make in an 8×8 inch pan?
      thanks.

      Reply
      • Sam

        July 07, 2024 at 10:22 pm

        Hi Jody! That will work. I’m not sure on a bake time though. I would make sure to keep an eye on it. ๐Ÿ™‚

        Reply
    4. Kaitlyn

      May 19, 2024 at 1:14 pm

      Would the cupcake time and temp work for mini loaf pans?

      Reply
      • Emily @ Sugar Spun Run

        May 20, 2024 at 2:58 pm

        Hi Kaitlyn! The temperature will be the same, but the time might be different. It’s hard to say what that would be without trying it ourselves, so just keep an eye on them ๐Ÿ˜Š

        Reply
        • Kaitlyn

          May 20, 2024 at 3:05 pm

          5 stars
          Made them lastnight !! I doubled the recipe, buttered all the pans, did 2 scoops of batter using a large cookie scoop, baked at 350ยฐ for 15 minutes! Then transferred to a cooling tray right away! Came out beautifully! Tried one of the cakes this morning without frosting and it was perfectly cooked! Just have to watch when youโ€™re mixing it (double batch) that you get it incorporated enough- without making it dense!

        • Emily @ Sugar Spun Run

          May 20, 2024 at 4:06 pm

          Wonderful! Thanks for letting us know how it went for you ๐Ÿฅฐ

    5. Linda

      February 28, 2024 at 9:54 am

      Can I use frozen zucchini and if so how much and should I strain off extra water

      Reply
      • Sam

        March 05, 2024 at 3:35 pm

        Hi Linda! Frozen zucchini may hold more moisture. If I were to try it, I would thaw it, drain it, and pat it dry. You’d want to use the same amount. ๐Ÿ™‚

        Reply
    6. elaine

      September 25, 2023 at 1:28 am

      5 stars
      This cake is easy to make and so delicious. I baked the batter in two 9″ cake pans rather than a 9″x13″ pan, and greased the pans with butter and put parchment paper in the bottom. Once cooled, the cakes came out without a problem. I also added 1/2 cup of unsweetened shredded coconut to the batter which added a subtle flavor & texture. There was plenty of icing to place between the two cakes and on top, and added chocolate bits to the top as decoration. It was beautiful and a huge hit with friends at dinner.

      Reply
      • Sam

        September 25, 2023 at 10:10 pm

        I’m so glad everyone enjoyed it so much, Elaine! ๐Ÿ™‚

        Reply
    7. Natalie Morales Hendricks

      September 05, 2023 at 11:00 am

      Not a great baker but love this idea for my daughters Girl Scout bake sale. Any adaptations for cupcake version? Bake time shortens?

      Reply
      • Sam

        September 05, 2023 at 11:12 am

        Hi Natalie! They will need to bake for roughly 17-18 minutes as cupcakes. No other alterations needed. ๐Ÿ™‚

        Reply
    8. Misty

      August 30, 2023 at 10:50 pm

      I’m in the US and 604kilocalories (per serving?) is a whopping 604000 calories which is equal to about 200 days worth of calories. Please tell me this is a typo.

      Reply
      • Sam

        August 31, 2023 at 9:37 am

        Hi Misty! It’s 604 calories ๐Ÿ™‚

        Reply
    9. Lynn

      August 21, 2023 at 11:19 am

      your recipe is confusing. Listed in the ingredients it says for the cake 1 1/2 cups shredded zucchini patted dry BEFORE weighing/measuring. In step 2 it says blot the zucchini with paper towels to remove excess moisture. I do this step AFTER measuring/weighing the zucchini. So which is it…before or after?
      Thank you

      Reply
      • Sam

        August 21, 2023 at 9:50 pm

        Hi Lynn! I’m sorry for the confusion! You should weigh it and then blot it. ๐Ÿ™‚

        Reply
    10. Lorley

      August 20, 2023 at 7:32 pm

      5 stars
      Hi Sam
      Made this in cupcake form for the family today. Turned out very moist and especially loved the cream cheese frosting. Used a #16 scoop and got 27 cupcakes with just enough frosting for a simple 1M rose on top of each. I kept one cupcake at home to share with hubby. He loved it and said โ€˜ who knew a cupcake with zucchini would be so goodโ€™ Going to be baking these beauties up again soon. Thank you for developing this tasteful and moist dessert.

      Reply
      • Sam

        August 20, 2023 at 9:33 pm

        That is so great to hear, Lorley! I’m so glad they were such a hit! It really adds a lot of moisture to the cake/cupcakes without imparting the flavor. It’s pretty incredible. ๐Ÿ™‚

        Reply
    11. anne watson

      August 12, 2023 at 1:05 pm

      5 stars
      This cake is phenomenal-Iโ€™m so glad I amadeus this-Thanks for sharing this recipe!!! ๐Ÿซ๐Ÿฐ

      Reply
      • Sam

        August 14, 2023 at 9:32 pm

        I’m so glad you enjoyed it so much, Anne! ๐Ÿ™‚

        Reply
    12. April

      August 12, 2023 at 12:25 am

      5 stars
      I started a late bake, but who the โ€œzucchiniโ€ cares when this cake came out delicious!
      I was skeptical at trying to bake this cake because without fail, no matter what ALL MY cake bakes turn out like cornbread texture. Not this one!
      WOHOO I finally baked a delicious cake, with great texture, great taste. I was like โ€œbatter is uniformโ€ what the heck does that mean, lolโ€ฆthank goodness for your videos, I watched your video, rewinded, watched again to make sure. (I did not want cornbread cake. ๐Ÿคฃ)
      Thank you for this fabulous recipe and your help in making me a better baker!๐Ÿ’›

      Reply
      • Sam

        August 14, 2023 at 9:39 pm

        I’m so glad you enjoyed it so much, April! I’m so glad it was a success and not like cornbread. ๐Ÿ™‚

        Reply
    13. Laura S

      August 10, 2023 at 10:39 pm

      What can I use in place of sour cream?

      Reply
      • Sam

        August 11, 2023 at 11:33 am

        Hi Laura! Greek yogurt will work. I talk about it a little bit in the post. ๐Ÿ™‚

        Reply
        • Kaitlyn

          December 28, 2023 at 4:47 am

          5 stars
          Would some types of gluten free flour work for this recipe ? I have made it many times with regular flour and turned out great !

        • Emily @ Sugar Spun Run

          December 28, 2023 at 11:11 am

          Hi Kaitlyn! A 1:1 gluten free flour should work fine here ๐Ÿ˜Š

    14. Denise Barker

      August 10, 2023 at 2:30 pm

      Hello Sam,
      can this recipe be used to make cupcakes instead?
      Thank you
      Denise B.

      Reply
      • Sam

        August 11, 2023 at 11:37 am

        Hi Denise! That will work. You will get about 24 cupcakes. I would bake on 375 for about 17 minutes. ๐Ÿ™‚

        Reply
    15. Cheryl

      August 10, 2023 at 10:00 am

      I think you mean โ€œpat dry before weighingโ€

      Reply
      • Sam

        August 10, 2023 at 11:11 am

        Haha, yes, thank you. Fixed ๐Ÿ™‚

        Reply
        • Carolyn

          August 10, 2023 at 4:34 pm

          I have a sensitivity towards chocolate, l know who can live w/o it ๐Ÿ˜. I use carob powder in place of chocolate, will it work?

        • Sam

          August 11, 2023 at 11:35 am

          Hi Carolyn! Unfortunately I haven’t tried it so I can’t say for sure, but I think it could work as a one to one substitute. Please let me know how it goes if you try it. ๐Ÿ™‚

    Newer Comments »
    5 from 18 votes (6 ratings without comment)

    Leave a Reply Cancel reply

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

    Recipe Rating




    Primary Sidebar

    The author (Sam) in blue shirt holding donut Hi, I'm Sam! I'm dedicated to bringing you sweet, simple, and from-scratch dessert recipes. My life may or may not be controlled by my sweet tooth. Send help (or chocolate). Read more about me.

    Warm Weather Recipes

    Close-up shot of ramen noodle salad.

    Ramen Noodle Salad

    Assembled strawberry shortcake.

    Strawberry Shortcake

    close-up view of smores cookies topped with chocolate and marshmallows

    S’mores Cookies

    Overhead view of a blueberry cream cheese pie in a graham cracker crust.

    Blueberry Cream Cheese Pie

    collage of strawberry recipes

    Strawberry Recipes

    collage of blueberry recipes

    Blueberry Recipes

    More Spring Recipes

    Most Popular

    flaky biscuit on white cloth

    Easy Homemade Biscuits

    Pizza dough in glass bowl, after rising

    The Best Pizza Dough Recipe

    Slice of cheesecake

    The Best Cheesecake Recipe

    Potato soup in bowl, with toppings

    The Ultimate Creamy Potato Soup

    one bite missing from a slice of vanilla cake with chocolate frosting

    The Best Vanilla Cake Recipe

    Stack of cookies made from this chocolate chip cookie recipe with melty chocolate chips and a bite missing from the top cookie

    The WORST Chocolate Chip Cookie Recipe

    places sugar spun run has been featured (Women's Day, Redbook, Good Housekeeping, Country Living, the huffington post, People, Delish, MSN, TLC, Parade, Better Homes & Gardens, Buzzfeed)
    • Facebook
    • Instagram
    • Pinterest
    • Twitter
    • Youtube

    Privacy Policy

    Footer

    โ†‘ back to top

    ABOUT

    • About Me
    • Policies, Disclosure & Privacy
    • Terms of Use

    CONTACT

    • Contact
    • Work with Me!

    ยฉ 2020 Sugar Spun Run. All Rights Reserved

    Rate This Recipe

    Your vote:




    A rating is required
    A name is required
    An email is required

    Recipe Ratings without Comment

    Something went wrong. Please try again.