Gluten-Free Chocolate Zucchini Cake

This post may contain affiliate links. See our disclosure policy for more.

This easy Gluten-Free Chocolate Zucchini Cake recipe is so plush and delicious no one will guess it’s gluten-free. (You’ll LOVE the chocolate frosting!)

a fork cutting into a slice of gluten-free chocolate zucchini cake with chocolate frosting

Gluten-free baking has never looked so good!

This Gluten-Free Chocolate Zucchini Cake is a GREAT recipe to fool your non-gluten-free friends and family with. Seriously. Between the deep chocolate flavor, soft, fluffy texture, and ultra-plush chocolate frosting, this fudgy cake is sure to become a family favorite whether you eat gluten-free or not!

If this is the first time you’ve baked a dessert with vegetables in it, you’re in for a (literal) treat! What always amazes me about baking with vegetables in things like carrot cake or zucchini bread, is how the veggies disappear! They also magically help make a delicious, moist cake that tastes decidedly like dessert. Even my veggie-averse kids LOVE this cake!

So next time you’re at the store or the farmer’s market, you might want to pick up a few extra zucchinis!

Here’s what you need to make this luscious gluten-free cake…

Ingredients for gluten-free chocolate zucchini cake

Simple Ingredients To Get Started

  • Grated Zucchini. You’ll use 3 whole cups of shredded zucchini for this chocolate zucchini cake recipe! It sounds like a lot (and it kind of is!), but it disappears into the cake! For best results, squeeze the extra liquid out of the fresh zucchini before using it so you don’t throw off the ratio of wet and dry ingredients.
  • Granulated/Cane Sugar & Brown Sugar. This mix helps give the cake the perfect flavor and texture!
  • Oil. Any neutral-tasting oil will do–canola oil, vegetable oil, avocado oil, etc. I don’t recommend butter or coconut oil here.
  • Sour Cream. This secret ingredient adds some acidity and moisture to the cake, which results in an ultra-plush texture. Don’t have any? You can make this chocolate zucchini cake with Greek yogurt instead!
  • Vanilla Extract & Salt. To balance the flavors & bring out the chocolate even more.
  • Eggs. You’ll need 5 eggs to bind this cake together. No need to bring them to room temperature since we’re baking with oil.
  • Gluten-Free Flour. I keep things simple with a measure-for-measure gluten-free flour blend. We recommend this one from King Arthur. If you use another brand (like Bob’s Red Mill), be sure it contains xanthan gum!
  • Unsweetened Cocoa Powder. We’re using regular/natural unsweetened cocoa powder for the chocolate cake, NOT dark or Dutch-processed cocoa powder. Trust!
  • Baking Soda & Baking Powder. This reacts with the acidity in the cocoa powder and sour cream to give you a light, moist, fluffy cake with a tender crumb.
  • Chocolate Chips. We add them to the cake batter!
  • A Quick Chocolate Buttercream. For the frosting, you’ll just need the usual ingredients: butter, powdered sugar, cocoa powder, vanilla, salt, and cream. One bonus ingredient you can consider adding is a touch of corn syrup for a glossy finish.
Making gluten-free chocolate zucchini cake, step by step

How To Make Gluten-Free Chocolate Zucchini Cake, Step By Step

First Make The Cake:

  1. Preheat The Oven & Prep The Pan. Start by preheating the oven to 350 degrees F. Grease a 9×13 inch metal baking pan and set aside. 
  2. Combine Wet Ingredients. In a large mixing bowl, combine sugar, brown sugar, and oil. Add sour cream, vanilla, and eggs. Whisk or stir until smooth and well blended. 
  3. Mix In Zucchini. Make sure you’ve squeezed the extra liquid out of the zucchini, then add it to the bowl. Stir to combine. 
  4. Add Dry Ingredients. Then, add gluten-free flour, cocoa powder, baking soda, salt, and baking powder. Stir until almost fully combined, with just a few dry patches of the flour mixture left. 
  5. Mix In Chocolate Chips and stir until just combined. Pour the cake batter into the prepared pan and gently smooth out the surface. 
  6. Bake the cake for 35-40 minutes, or until a toothpick or cake tester inserted in the center comes out clean with just a few moist crumbs (no wet batter).
  7. Cool. Remove the cake from the oven and place on a wire rack. Let the cake cool completely before you frost it. (If the cake is even a little bit warm, it will melt the frosting. I promise it’s worth the wait!)
Making chocolate frosting for zucchini cake, step by step

Then, Make The Frosting & Assemble The Cake:

  1. Beat The Butter. Add the softened butter to a large bowl. Beat with a hand mixer on low speed for about 2 minutes, until it’s light and fluffy. 
  2. Mix. Then, add powdered sugar, cocoa powder, salt, and vanilla extract. Add the cream, then mix for 30 seconds on low speed, then about 1 minute on medium speed, or until well combined. 
  3. Adjust. At this point, you’ll want to adjust for texture. If the frosting is too dry or thick, add a little bit of additional cream at a time until it thins out. If the frosting is too thin or too wet, you can add more powdered sugar or cocoa powder a teaspoon at a time, until you reach the right consistency. The frosting should be easy to spread but should still hold its shape. (If you want the frosting to look extra glossy, you can add 1-2 Tablespoons of corn syrup at this point.)
  4. Decorate. Then, spread or pipe the frosting onto the cake as desired. 
  5. Serve & Store. Enjoy the cake right away, or cover the cake tightly (or transfer slices to an airtight container) and store in the refrigerator 3-4 days. 
gluten-free chocolate zucchini cake cut into squares
a fork cutting into a slice of gluten-free chocolate zucchini cake with chocolate frosting

FAQ + Tips And Tricks For The BEst Gluten-Free Zucchini Cake

Squeeze That Zucchini! One important tip you don’t want to skip is to squeeze the excess moisture out of the grated zucchini before adding it to the cake batter. This is important so you don’t add too much moisture to the recipe (which can cause the cake to sink).

Choose The Right Cocoa. I love Dutch processed cocoa for a lot of projects, but NOT for this cake recipe. You need the acidity of natural cocoa powder (like Hershey’s) to react with the baking soda. If you use dark cocoa, it won’t rise properly. (You CAN use either type of cocoa in the frosting–I still prefer natural cocoa powder)

How To Grate Zucchini. We wrote a whole post all about how to grate zucchini for baking! TLDR: use a food processor with a grating blade to get the job done in seconds!

Dairy-Free? You can try swapping a plain dairy-free yogurt in for the sour cream, and vegan butter and coconut cream in the frosting. I haven’t tried it this way myself, but that’s where I’d start!

Can I Make This Gluten-Free Chocolate Zucchini Cake With Almond Flour or Coconut Flour? Not with this recipe. Instead, you might like this healthy chocolate zucchini cake. Do NOT use coconut flour, as it absorbs a LOT of liquid and you’ll be left with a dry, crumbly cake.

Can I Make This As A Layer Cake? Yes! You can bake it in two 9-inch round pans. You’ll want to adjust the baking time to about 25-30 minutes or so.

slices of gluten-free chocolate zucchini cake with chocolate frosting on white plates

More Summer Recipes To Try

Overhead view of a pan of gluten-free blueberry crisp

Gluten-Free Blueberry Crisp

WE ♥

🌟 Did you make this recipe?

Leave a star rating below when you try our Gluten-Free Chocolate Zucchini Cake recipe! We can’t wait to hear what you think! Sharing it on Instagram? Tag us @sweetsandthankyou so we can see your creations!

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
a fork cutting into a slice of gluten-free chocolate zucchini cake with chocolate frosting

Gluten-Free Chocolate Zucchini Cake


5 Stars 4 Stars 3 Stars 2 Stars 1 Star

No reviews

  • Author: Emily Dixon, Sweets & Thank You
  • Total Time: 1 hour 10 minutes
  • Yield: 20 servings 1x
  • Diet: Gluten Free

Description

This easy Gluten-Free Chocolate Zucchini Cake recipe is so plush and delicious no one will guess it’s gluten-free. (You’ll LOVE the chocolate frosting!)


Ingredients

Scale

For The Chocolate Zucchini Cake:

  • 1 cup oil (vegetable oil, avocado oil, or canola oil)
  • 1 cup (200 grams) granulated sugar
  • 3/4 (150 grams) brown sugar
  • 1/2 cup sour cream
  • 5 eggs
  • 2 teaspoons vanilla extract
  • 3 cups shredded zucchini*
  • 1 3/4 cup (210 grams) gluten-free measure-for-measure flour
  • 3/4 cup (62 grams) unsweetened cocoa powder (natural NOT Dutch-processed/dark)**
  • 2 teaspoons baking soda
  • 1/2 teaspoon baking powder
  • 1/2 teaspoon kosher salt
  • 1 cup (6 oz.) semi-sweet or dark chocolate chips

For The Chocolate Frosting:

  • 1 1/4 cups (2.5 sticks) butter, softened
  • 3 1/2 cups (420 grams) powdered sugar (plus more, if needed)
  • 3/4 cup (65 grams) unsweetened cocoa powder**
  • 1 1/2 teaspoons vanilla extract
  • 1/4 teaspoon kosher salt
  • 1/3 cup heavy cream (plus more, if needed)
  • Optional: 1-2 Tablespoons corn syrup (for a glossy finish)

Instructions

First, Make The Cake:

  1. Preheat The Oven & Prep The Pan. Start by preheating the oven to 350 degrees F. Grease a 9×13 inch metal baking pan and set aside. 
  2. Combine Wet Ingredients. In a large bowl, combine sugar, brown sugar, and oil. Add sour cream, vanilla, and eggs. Whisk or stir until smooth and well blended. 
  3. Mix In Zucchini. Make sure you’ve squeezed the extra liquid out of the zucchini, then add it to the bowl. Stir to combine. 
  4. Add Dry Ingredients. Then, add gluten-free flour, cocoa powder, baking soda, salt, and baking powder. Stir until almost fully combined, with just a few dry patches left. 
  5. Mix In Chocolate Chips and stir until just combined. Pour the cake batter into the prepared pan and gently smooth out the surface. 
  6. Bake the cake for 35-40 minutes, or until a toothpick inserted in the center comes out clean with just a few moist crumbs (no wet batter).
  7. Cool. Remove the cake from the oven and let the cake cool completely before you frost it. (If the cake is even a little bit warm, it will melt the frosting. I promise it’s worth the wait!)

Then, Mix Up The Frosting:

  1. Beat The Butter. Add the softened butter to a large bowl. Beat with a hand mixer on low speed for about 2 minutes, until it’s light and fluffy. 
  2. Mix. Then, add powdered sugar, cocoa powder, salt, and vanilla extract. Add the cream, then mix for 30 seconds on low speed, then about 1 minute on medium speed, or until well combined. 
  3. Adjust. At this point, you’ll want to adjust for texture. If the frosting is too dry or thick, add a little bit of additional cream at a time until it thins out. If the frosting is too thin or too wet, you can add more powdered sugar or cocoa powder a teaspoon at a time, until you reach the right consistency. The frosting should be easy to spread but should still hold its shape. (If you want the frosting to look extra glossy, you can add 1-2 Tablespoons of corn syrup at this point.)
  4. Decorate. Then, spread or pipe the frosting onto the cake as desired. 
  5. Serve & Store. Enjoy the cake right away, or cover the cake and store in the refrigerator 3-4 days. 

Notes

*Zucchini: make sure you squeeze the excess liquid out of your grated zucchini. Put the grated zucchini in paper towels (or a clean kitchen towel) and squeeze to remove extra liquid. 

**Cocoa. Because of the ratio of baking soda & baking powder, you MUST use regular (natural) cocoa powder NOT Dutch-process/dark cocoa in the cake for it to work. For the frosting, you can use either natural unsweetened cocoa or Dutch processed cocoa. I prefer the taste of natural cocoa powder, so that’s what I used. 

Can I Make This As A Layer Cake? Yes! You can bake it in two 9-inch round pans. You’ll want to adjust the baking time to about 25-30 minutes or so. 

  • Prep Time: 35 minutes
  • Cook Time: 35 minutes
  • Category: Dessert
  • Method: Oven
  • Cuisine: American
Recipe Card powered byTasty Recipes

Leave a Reply

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

Recipe rating 5 Stars 4 Stars 3 Stars 2 Stars 1 Star