Gluten-Free Chocolate Zucchini Cake with Cream Cheese Frosting

Slices of gluten-free chocolate zucchini cake with cream cheese frosting on top.

This gluten-free chocolate zucchini cake uses oat flour, a gluten-free flour blend, Greek yogurt, cocoa, and freshly grated zucchini to produce a tender, moist crumb without any gritty texture. The zucchini is grated finely and gently squeezed to remove excess liquid so the batter bakes evenly and the cake stays soft without sinking or becoming gummy.

What makes this recipe stand out is how it stays rich and moist while using less oil than many gluten-free cakes. Squeezing the zucchini and adding Greek yogurt give natural moisture and structure, while the oat flour contributes flavor and a smooth texture. With a layer of chocolate cream cheese frosting, this cake is indulgent but not heavy—perfect for sharing or delivering to friends who need a comforting treat.

Why This Gluten-Free Chocolate Zucchini Cake Works

  • Squeezed zucchini controls moisture: Removing excess liquid prevents soggy centers and helps the cake hold its shape.
  • Greek yogurt adds moisture without excess oil: Yogurt keeps the crumb tender and rich with less fat.
  • Oat flour plus gluten-free flour for structure: That combination provides stability and flavor without a grainy finish.
  • Double chocolate builds depth: Cocoa powder and chocolate chips amplify the chocolate flavor and mask any gluten-free graininess.
All the ingredients needed to make a gluten-free chocolate zucchini cake with chocolate cream cheese frosting.

Ingredients & Substitutions

Everything you need to make this gluten-free chocolate zucchini cake

  • Oat flour: Adds depth and prevents a flat, starchy taste. Use store-bought oat flour or process rolled oats until fine. Almond flour can be substituted, but the cake will be slightly more delicate.
  • Gluten-free flour blend: Provides structure so the cake slices cleanly. Any reliable gluten-free blend will work.
  • Milk: Adds moisture and loosens the batter. Dairy or plant-based milks (almond, oat, soy) are fine.
  • Eggs: Give structure and lift. For a vegan version, use flax eggs (1 tablespoon ground flaxseed + 3 tablespoons water per egg).
  • Greek yogurt: Key for moistness without excess oil. Sour cream swaps 1:1; applesauce is acceptable but yields a softer crumb.
  • Light olive oil: Keeps the cake tender without strong flavor. Avocado oil, neutral vegetable oil, melted butter, or coconut oil are suitable alternatives.
  • Sugar and vanilla: Cane sugar balances the chocolate; coconut or regular granulated sugar work too. Vanilla deepens flavor.
  • Cocoa powder: Use Dutch-processed for darker, smoother chocolate notes; natural cocoa is fine if that’s what you have.
  • Leavening and salt: Baking powder, baking soda, and salt keep the crumb light and enhance chocolate flavor.
  • Zucchini: Grate finely and press out excess water. After squeezing you should have about 120–130 g (roughly 1 cup packed).
  • Mini chocolate chips: Create pockets of melted chocolate; regular chips or chopped dark chocolate work well.
A close up of gluten-free chocolate zucchini cake with chocolate cream cheese frosting and sprinkles on top.
Additional Flour Options
2/3 cup (80g) oat flour + 1/4 cup (40g) gluten-free flour
2/3 cup (80g) oat flour + 1/4 cup (30g) all-purpose flour
1 cup (160g) gluten-free flour
1 cup (120g) oat flour
1 1/4 cups (140g) almond flour + 1/4 cup (40g) gluten-free flour

Easily Adapt This Recipe for Any Diet

This cake adapts well to dietary needs without losing texture or flavor.

  • Gluten-Free: Use certified gluten-free oat flour and a trusted gluten-free blend. Check oat labels for certification.
  • Dairy-Free: Use plant-based milk and dairy-free Greek-style yogurt. Swap cream cheese and butter for dairy-free versions in the frosting.
  • Vegan: Replace eggs with flax eggs and use plant-based milk and yogurt. The cake will be slightly denser but still moist and chocolatey.

How to Make This Gluten-Free Chocolate Zucchini Cake

Follow these clear steps for a reliably moist, chocolatey cake. The ingredient amounts and full recipe are below.

Step 1: Prepare the pan and zucchini

Preheat the oven to 350°F (175°C). Line a 9×9-inch baking pan with parchment paper, leaving an overhang for easy removal. Grate one medium zucchini on the fine side of a box grater. Gently squeeze or pat the grated zucchini with paper towels or a clean kitchen cloth to remove excess moisture. You should have about 120–130 g after squeezing. Set aside.

Shredding a zucchini into a strainer bag.
Squeezing the liquid out of the shredded zucchini in a strainer bag.

Step 2: Mix the chocolate cake batter

In a large bowl, whisk together 1/2 cup milk, 2 eggs (or flax eggs), 1/4 cup Greek yogurt, 1/4 cup light olive oil, 3/4 cup cane sugar (about 150 g), and 2 teaspoons vanilla until smooth. Add 2/3 cup oat flour (80 g), 1/2 cup cocoa powder (40 g), 1/4 cup gluten-free flour (40 g), 1 teaspoon baking powder, 1/2 teaspoon baking soda, and 1/2 teaspoon salt. Stir just until combined—avoid overmixing. Fold in the squeezed zucchini and 1/4 cup mini chocolate chips until evenly distributed.

Adding all the dry ingredients to the cake batter.
Folding in the shredded zucchini and mini chocolate chips to the cake batter.

Step 3: Bake the cake

Spread the batter evenly in the prepared pan and bake for 34–38 minutes, or until a toothpick inserted in the center comes out clean or with a few moist crumbs. Allow the cake to cool completely before frosting.

Step 4: Make the chocolate cream cheese frosting

In a bowl, beat together 6 ounces (170 g) cream cheese, 3 tablespoons butter, 1 teaspoon vanilla, and 2 tablespoons milk until smooth. Add 1/4 cup cocoa powder (20 g), 1 cup powdered sugar (about 120 g), 1/2 teaspoon cinnamon, and 1/8 teaspoon salt. Beat until creamy. Spread over the cooled cake. Chill for 20–30 minutes if you prefer firmer slices.

Creaming together the cream cheese and butter and a mixing bowl.
Adding the powdered sugar to the frosting mixture.
The top view of a gluten-free chocolate zucchini cake with cream cheese frosting.

Expert Tips

  • Squeeze the zucchini gently: Remove excess water but avoid over-drying so the cake stays tender.
  • Use room-temperature ingredients: Eggs, yogurt, and cream cheese mix more evenly and produce a smoother batter and frosting.
  • Mix just until combined: Overmixing can make gluten-free cakes dense.
  • Test for doneness: Pull the cake when a toothpick shows a few moist crumbs for a soft, rich texture.
  • Cool before frosting: Frosting a warm cake will melt and smear; cooling gives cleaner slices.

Serving and Storage

  • Serve chilled or at room temperature.
  • Store covered in the refrigerator up to 5 days because of the cream cheese frosting; the texture often improves after a day.
  • Unfrosted slices freeze well for up to 3 months; thaw in the refrigerator overnight.

Frequently Asked Questions

How do I store this cake?

Keep the cake covered in the refrigerator for up to 5 days. Let slices sit at room temperature for 10–15 minutes before serving.

What makes the cake so moist?

Greek yogurt combined with squeezed zucchini provides moisture without excess oil, keeping the crumb tender and preventing gumminess.

Can I use almond flour instead of oat flour?

Yes. Almond flour will make the cake a touch denser and less oat-forward. If using almond flour, consider adding an extra tablespoon of yogurt to maintain moisture.

How can I reduce sugar?

Skip the frosting or use a darker, less sweet chocolate frosting or a light dusting of cocoa powder. You can also reduce the sugar in the batter slightly, but expect a small change in texture.

Full Recipe (Overview)

Yield: 16 servings | Prep: 10 minutes | Cook: 35 minutes | Total: 45 minutes

Ingredients (summary)

  • 1/2 cup milk
  • 2 eggs
  • 1/4 cup Greek yogurt
  • 1/4 cup light olive oil
  • 3/4 cup cane sugar (150 g)
  • 2 tsp vanilla
  • 2/3 cup oat flour (80 g)
  • 1/2 cup cocoa powder (40 g)
  • 1/4 cup gluten-free flour (40 g)
  • 1 tsp baking powder
  • 1/2 tsp baking soda
  • 1/2 tsp salt
  • 1 cup shredded zucchini (about 120–130 g after squeezing)
  • 1/4 cup mini chocolate chips

Frosting

  • 6 oz cream cheese
  • 3 tbsp butter
  • 1 tsp vanilla
  • 2 tbsp milk
  • 1/4 cup cocoa powder (20 g)
  • 1 cup powdered sugar (120 g)
  • 1/2 tsp cinnamon
  • 1/8 tsp salt

Notes

Squeeze the zucchini gently—too much liquid will make the cake sink, but over-squeezing will reduce tenderness. Use room-temperature ingredients for even mixing, and stop mixing as soon as the batter comes together. Allow the cake to cool before frosting for neat, clean slices.