What to bake when you're tired of zucchini bread? Gluten-free chocolate zucchini cake! It's moist, tender, super chocolatey, and so easy to make with one bowl in 10 minutes of active time.
This tender cake is undetectably gluten-free (and optionally dairy-free) thanks to a combination of just two flours: sweet rice flour and sorghum flour. Mix up this easy batter in 10 minutes of active time - no zucchini-squeezing required! – and top this snacking cake with swirls of silky chocolate cream cheese frosting for an über-chocolatey treat.
If you're looking for ways to use up zucchini, you're going to love this dreamy chocolate zucchini cake. This well-tested recipe comes from my award-winning gluten-free baking cookbook Alternative Baker, where I've shared 140+ recipes made with flavorful gluten-free flours instead of boring all-purpose blends.
This cake is:
- gluten-free and optionally dairy-free
- moist & tender
- richly chocolatey
- made with flavorful whole-grain sorghum flour
- packed with half a pound of zucchini
- easy to make in about 10 minutes of active time
I'm so excited to share it with you, and I hope you love it as much as I and my cookbook readers do!
Ingredients & Substitution Suggestions
This recipe comes together with 10 real-food ingredients.
Flours
Two gluten-free flours make this cake moist, tender, and floofy, no xanthan gum or starches needed. Be sure to use certified gluten-free flours, such as Bob's Red Mill brand which are made in a dedicated GF facility.
Learn more about my approach to GF baking in my beginner's guide to gluten-free flours.
- Sweet rice flour adds starchy stickiness and creates a neutral backdrop for the other flavors.
- Sub by weight GF all-purpose flour such as Bob's Red Mill 1 to 1.
- Sorghum flour absorbs moisture from the zucchini and adds rich, nutty flavor to the batter.
- Sub by weight brown rice flour, or try teff flour or almond flour.
Other Ingredients
- Zucchini is the star of this show. Choose small zucchini which have lower water content and grate them on the small holes of a box grater so they'll dissolved into the batter and create a smooth, even crumb. I've formulated the recipe so that you don't need to squeeze the zucchini to remove the liquid.
- Oil and milk add moisture to the batter. I like sunflower oil, grapeseed oil, or olive oil. I've tested this with whole milk and oat milk and both work great!
- Eggs add loft and springiness. I don't recommend subbing them out if you can help it. But if you have an egg allergy, I'd recommend trying this with 1 flax egg and 4 tablespoons Greek yogurt (dairy or plant-based) or applesauce in place of the eggs. Or you could try 6-8 tablespoons Just Egg or aquafaba.
- Brown sugar adds sweetness and moisture.
- Sub by weight coconut sugar.
- Baking powder lifts the batter, making the cake light and springy.
- Salt and vanilla deepen the flavors.
Be sure to see the recipe card below for exact quantities!
Method
This recipe makes one 8-inch square cake, which you can cut into 9, 12, or 16 servings. It takes about 10 minutes to mix up with just a bowl and a whisk, plus 30-40 minutes to bake.
Frostings & Toppings
Top this cake with any frosting or ganache that you like. Here are a few favorites:
Storage
This zucchini cake keeps beautifully, staying moist and tender for days. Here's how to keep it fresh:
- Wrap and store the baked, unfrosted cake at room temperature for up to 1 day.
- Store the frosted cake in a covered container at room temperature for up to 1 day.
- Refrigerate the frosted cake for up to 5 days; bring to room temperature before serving so the frosting will be creamy.
- Freeze the cake, frosted or unfrosted and well-wrapped, for up to 1 month.
Bojon appétit! For more Bojon Gourmet in your life, follow along on Instagram, Facebook, YouTube, or Pinterest, purchase my award-winning gluten-free baking cookbook Alternative Baker, or subscribe to receive new posts via email. And if you make this gluten-free chocolate zucchini cake recipe, I’d love to know. Leave a comment and rating below, and tag your Instagram snaps @The_Bojon_Gourmet and #bojongourmet.
Mega-Moist Chocolate Zucchini Cake (Gluten-Free)
Print Recipe Pin RecipeIngredients
Wet Ingredients
- 8 ounces (225 g) zucchini, grated on the fine holes of a box grater
- 1 cup (200 g) packed light or dark brown sugar
- 2 large eggs
- ¼ cup (60 ml) neutral oil such as sunflower, or olive oil
- ¼ cup (60 ml) whole milk or plant milk
- 1 teaspoon vanilla extract
Dry Ingredients
- ¾ cup (60 g) Dutch-process cocoa powder
- ¾ cup + 2 tablespoons (115 g) sorghum flour (I use Bob's Red Mill brand; or try brown rice or teff flour)
- ¼ cup (39 g) sweet rice flour (or GF AP flour)
- 2 teaspoons baking powder
- ½ teaspoon fine sea salt
Topping
- 1 recipe chocolate cream cheese frosting
Equipment
Instructions
Prepare Things
- To make the cake, position a rack in the center of the oven and preheat to 350ºF (175ºC). Line an 8-inch square cake pan with parchment paper on all sides.
Batter
- Trim the zucchini and grate them on the medium holes of a box grater (the ones that measure 1⁄8 inch [2–3 mm]); you should have 2 cups packed grated zucchini.
- In a large bowl, whisk together the zucchini, brown sugar, eggs, oil, milk and vanilla extract until combined well.
- In a medium bowl, sift together the cocoa powder, sorghum flour, sweet rice flour, baking powder, and salt, pushing through any clumps. Stir the flour mixture into the egg mixture until smooth.
- Pour the batter into the prepared pan.
Bake
- Bake the cake at 350ºF until the top springs back to the touch, and a toothpick inserted near the center comes out with moist crumbs, 30-40 minutes.
- Let cool completely, then lift the cake out of the pan, invert onto a serving platter, and peel away the parchment.
- Top with swirls of chocolate cream cheese frosting. Cut into squares, and serve.
Storage
- Store the cake, covered, at cool room temperature for up to 24 hours, in the fridge for up to 5 days, or freeze for up to several months. The cake is best at room temperature so the frosting will be soft.
Deborah Ribeiro says
Do you think millet flour would work?
Alanna Taylor-Tobin says
Hi Deborah,
That's a great question - I think it will! Just a word of warning that millet used on its own can have a slightly bitter flavor. My advice is to make sure it's super fresh when you bake with it. Be sure to sub by weight and not volume (though it should be similar to sorghum regardless). Please let me know how it turns out!
-Alanna
Sonja says
Oh my, you knocked it outta the park again Alanna! I made this w 12 oz zucchini (I just have so much zucchini right now to not throw it in), 1/2 c cane sugar, ghee, 1/2 c cocoa, Bobs 1-for-1 + mochiko + 1/2 choco chips and it is still super moist and floofy, and not too sweet or too wet. I'm kicking myself I only brought one piece of it to work today LOL.
Alanna Taylor-Tobin says
Hi Sonja,
Yay, I'm so glad you love this cake and that it worked well with those modifications (which sound absolutely delicious!) Hope your work day is over soon so you can get home to MOAR CAKE hehe!
xoxo,
A
Diane in Santa Fe says
I followed your recipe except for lining my square Pyrex dish with paper (only lined the bottom because I didnโt plan to invert the cake). I used your ganache recipe to frost the cake while still warm and it seeped into the cake slightly and made this moist cake even more moist. This recipe is really quite easy to follow and produced a cake that is better than most Iโve had from high end bakeries and restaurants. It baked in 30 minutes and required no adjustments at high altitude. I will be making this often due to popular demand! Thank you for creating this fabulous recipe!!
Alanna Taylor-Tobin says
Hi Diane,
Aw yay, I'm so glad you loved this recipe and that it worked well with ganache! Love the idea of adding the ganache to the still-warm cake to lock in moisture - brilliant! That's great to know that this recipe works at altitude too. Thank you so much for the great feedback, I know it will help other bakers!
xo,
Alanna
Amy says
I adore your recipes, and I'm confident that this one will be delicious as always. But before I dive in, I wanted to ask if you think it would have enough structural integrity to stack? I'm wanting to make this as a birthday cake for a friend and was hoping to do a two layer cake.
Alanna Taylor-Tobin says
Hi Amy,
Yes this cake is definitely stackable - I've made it into a 3-layer cake by doubling the recipe and baking it in 3 8-inch round cake pans. Or you could use 2 9-inch pans. Please let me know how it turns out. And thank you so much for the kind words; I'm very glad you're enjoying the recipes!
xo,
A
Claire says
I'd like to try this recipe but I noticed you don't drain your zucchini or squeeze out all the liquid after grating it. Is this correct? I hesitate because all that liquid could ruin the cake and leave it raw no matter how long one bakes it. Can you please clarify this? Thanks!
Alanna Taylor-Tobin says
Hi Claire,
Great question! I developed this recipe to work with the moisture in the zucchini. So as long as you use small zucchini, you shouldn't have any trouble with excessive moisture in the batter. However if you're using larger zucchini, those could contain more moisture than would be ideal, in which case you could gently squeeze out some of the moisture.
Please let me know what you try!
-Alanna
Claire says
OK, thanks for clarifying! I will make note of this when I try the recipe.
Alanna Taylor-Tobin says
Fabulous, keep me posted!