Zucchini Chocolate Cake 

Updated August 20, 2026

Media 1 of 2
Ready In
1 hr 45 min, plus cooling
Rating
5(16)
Comments
Read comments

In my dreams, I own a very large garden. Come the month of August, I have so much watermelon, strawberries and zucchini, that I scour the internet, cookbooks and everything in between to find ways to put them to use. This cake is a delicious vehicle for  the abundance of zucchini that always exists in high summer (and sometimes into September). The zucchini adds moisture to the layers, while still keeping everything light and supple. The olive oil is subtle but adds a lovely dimension that complements the zucchini and chocolate. If you’re a person who doesn’t like dessert to be too sweet, this cake is for you. 

  • or to save this recipe.

  • Subscriber benefit: Give recipes to anyone

    As a subscriber, you have 10 gift recipes to give each month. Anyone can view them - even nonsubscribers. Learn more.

  • Share this recipe

  • Print this recipe

    or to print this recipe.

Advertisement


Ingredients

Yield:8 to 10 servings

For the Cake

  • Cooking or baking spray, such as avocado oil spray, for greasing the pans

  • 2 ½ cups/325 grams all-purpose flour

  • ¾ cup/62 grams unsweetened cocoa powder

  • 2 teaspoons baking soda

  • 1 teaspoon kosher salt (such as Diamond Crystal)

  • ½ cup/113 grams unsalted butter, at room temperature

  • 1 cup/200 grams granulated sugar

  • 1 cup/205 grams light brown sugar

  • 1 tablespoon pure vanilla extract

  • ½ cup/96 grams olive oil 

  • 3 large eggs

  • 1 cup/235 grams buttermilk

  • 2 cups/280 grams finely grated zucchini (from about 2 small zucchini), blotted dry if super wet

For the Frosting (see Tip)

  • 1½ cups/283 grams unsalted butter, at room temperature 

  • 4½ cups/508 grams powdered sugar 

  • 1 vanilla bean, pod split and seeds scraped, 1½ teaspoons vanilla paste or 1 tablespoon vanilla extract 

  • 4½ teaspoons heavy cream or buttermilk

  • Pinch of kosher salt (such as Diamond Crystal) 

Ingredient Substitution Guide
Nutritional analysis per serving (8 to 10 servings)

122 grams carbs; 144 milligrams cholesterol; 933 calories; 20 grams monounsaturated fat; 3 grams polyunsaturated fat; 23 grams saturated fat; 49 grams fat; 3 grams fiber; 525 milligrams sodium; 8 grams protein; 92 grams sugar

Note: The information shown is Edamam’s estimate based on available ingredients and preparation. It should not be considered a substitute for a professional nutritionist’s advice.

Powered by

Preparation

  1. Make the cake:

    1. Step 1

      Heat the oven to 350 degrees. Grease three (8-inch) round cake pans and line the bottoms with parchment paper.

    2. Step 2

      In a medium bowl, whisk together the flour, cocoa, baking soda and salt. Set aside.

    3. Step 3

      To the bowl of a stand mixer fitted with the paddle attachment (you could also do this in a large bowl with an electric hand mixer), add the butter, granulated sugar, brown sugar and vanilla; beat on medium speed until light and fluffy, about 2 minutes. Add the olive oil and eggs and mix until combined, about 15 seconds. Beat in the buttermilk and flour mixture in two additions each, alternating between them, and then continue to mix until the batter is completely combined. Fold in the grated zucchini.

    4. Step 4

      Divide the batter amongst the three cake pans (about 2¼ cups/546 grams batter per pan; no need to weigh, but it does ensure you have perfectly even layers).

    5. Step 5

      Transfer the cake pans to the oven to bake until a skewer or cake tester inserted into the center comes out clean, 27 to 30 minutes. Let cool for 5 minutes before inverting them onto cooling racks. Let cool completely for at least 1 hour before frosting the cake. Remove the sheets of parchment just before assembling.

  2. Make the frosting: 

    1. Step 6

      Add the butter to the bowl of a stand mixer (or a medium bowl with an electric hand mixer) and beat on medium speed until smooth, about 30 seconds. Remove the paddle attachment and place a fine-mesh sieve on top of the bowl and sift in the powdered sugar. Turn the mixer to low and beat until the powdered sugar is almost completely incorporated. Add the vanilla bean seeds and heavy cream; and beat once more until combined, about 1 minute.

  3. Assemble the Layer Cake: 

    1. Step 7

      If any of the cooled cakes have domed tops, feel free to level them with a serrated knife to make three even, flat layers. To assemble, place one cake layer on a serving plate or cake stand (see Tip) and use an offset spatula to spread the top evenly with about ⅔ cup of the frosting. Repeat with the second cake layer and another ⅔ cup of frosting, then top with the third cake layer.

    2. Step 8

      Apply a “crumb coat” to the cake: Use ½ cup frosting to apply a thin, even coat of frosting to the outside of the cake, then transfer to the fridge to chill for 20 minutes (this will firm up the frosting). Spread the remaining buttercream (about rounded 2 cups) over the cake (To add piped decorations, see Tip.)

    3. Step 9

      You can serve it right away, but for the cleanest cuts, refrigerate the cake for at least an hour (or up to 4 hours). If storing for longer, lightly cover the outside with plastic wrap to prevent the buttercream from drying out. Bring the cake to room temperature again before serving.

Tips
  • If you’d like to pipe zucchini flowers and vines on your frosted cake, you’ll want to increase the ingredient amounts in the frosting as follows: 2¼ cups/510 grams unsalted butter, 6¾ cups/810 grams powdered sugar, 2¼ teaspoons vanilla paste (or 4 ½ teaspoons vanilla extract), 2 tablespoons plus ¾ teaspoon heavy cream (or buttermilk) and a big pinch of kosher salt. Set aside 2 cups of frosting for decorating and divide between two small bowls. Tint one bowl of frosting green and the other yellow with a few drops of gel paste food coloring.

  • To pipe squash flowers on the cake, you’ll need a rose petal tip (#104 from Ateco) for the petals, and a small round tip (Ateco #101) to make the small dots in the center. I like to pipe them on small pieces of parchment, chill them in the fridge for 10 minutes and then transfer them to the cake with a small offset spatula. 

  • For the vines to connect the flowers, I used a small round tip (Ateco #101) and then a small leaf tip (Ateco #352) to make small leaves on the vines.

Private Notes

Leave a Private Comment on this recipe and see it here.

Ratings

5 out of 5
16 user ratings
Your rating

or to rate this recipe.

Have you cooked this?

or to mark this recipe as cooked.

Comments

I have done the sheet pan plan, and it works really well!

This recipe arrived at just right moment for our garden zucchinis! And it's become a new favorite already (2 teenagers + parents have eaten all in <24 hours...). I usually try to follow baking recipes first time but made a few changes: 2 9in pans, extra cup or so of zucchini (squeezed), subbed melted butter for most of the olive oil (softening went awry on 1st stick), no frosting, and sprinkled some chocolate chips on top at teenagers' insistence... Came out fluffy, chocolatey, AND moist!

Made 8/14/26 as had a large zucchini languishing in the fridge. As directed, nice moist and chocolatey cake, did not dome too much. Used King Arthur's deep dark cocoa mix for the chocolate and vanilla bean paste. Frosting easy to assemble but somewhat on the sweet side, although I added 4 ounces cream cheese. Complemented the not too sweet cake nicely.

Authorized or non-alkali cocoa powder? The correct formulation makes a huge difference, especially in things such as chocolate cake.

Why add zucchini to chocolate cake? The purpose behind that escapes me completely. The thing has no flavor that can compete against cocoa, and all it does is add moisture, which can be done easily by adding something that does contribute to the flavor. If this is a way to use up extra zucchini, curb your instinct and buy, or grow, less of the stuff. Just saying

It looks good. But technically, the frosting is not buttercream. When I baked a lot, I made the real buttercream (see Julia Child).

There are many types of buttercream frosting. This recipe uses an American buttercream (butter/shortening whipped with powdered sugar). Julia Child's recipe is a French buttercream (whipped egg yolks + sugar syrup + butter). The most popular buttercream nowawadays seems to be Swiss buttercream (whipped egg whites + sugar + butter). There are also German and Italian buttercreams.

Private comments are only visible to you.

or to save this recipe.