The Best Zucchini Cake Recipe (Moist, Spiced, Never Soggy)
The first time I made zucchini cake, I read one blog that said to squeeze every last drop of water out of the zucchini, so I did, twice. The cake came out dry and a little flat, nothing like the moist, tender cake I was expecting. This homemade zucchini cake fixes that exact mistake, a soft, spiced cake studded with grated zucchini and finished with tangy cream cheese frosting.

Why You’ll Love This Zucchini Cake
- The perfect way to use up garden zucchini. If your garden or your neighbor’s garden has handed you more zucchini than you know what to do with, this zucchini cake puts it to excellent use.
- Moist without being soggy. This recipe explains exactly how much moisture zucchini actually needs to keep, and when it’s safe to remove some.
- Warm, cozy spice flavor. Cinnamon and a touch of nutmeg give this zucchini cake the same comforting flavor profile as carrot cake.
- Works in four formats. Sheet cake, layer cake, Bundt, or cupcakes, all from the same base.
- A genuine crowd-pleaser. Potlucks, backyard gatherings, or a Tuesday dessert that quietly uses up half your garden harvest.
What You Need
For the Cake
- 2 1/2 cups (315g) all-purpose flour
- 1 teaspoon baking powder
- 1 teaspoon baking soda
- 1 teaspoon cinnamon
- 1/4 teaspoon nutmeg
- 1/2 teaspoon salt
- 1 cup (240ml) neutral oil (vegetable or canola)
- 1 cup (200g) granulated sugar
- 1/2 cup (100g) light brown sugar, packed
- 3 large eggs, room temperature
- 1 teaspoon vanilla extract
- 2 cups (about 2 medium) zucchini, grated, not squeezed dry
- 1/2 cup chopped walnuts (optional)
For the Cream Cheese Frosting
- 8 ounces cream cheese, softened
- 1/2 cup (113g) unsalted butter, softened
- 3 cups (360g) powdered sugar, sifted
- 1 teaspoon vanilla extract
- Pinch of salt
A Quick Note on Zucchini
Zucchini cake recipes are generally written to account for how much water is in grated zucchini, so this recipe does not call for squeezing it dry. That said, zucchini varies quite a bit depending on where it comes from. Store-bought zucchini is fairly consistent, but garden-grown zucchini, especially a larger, more mature one, can carry noticeably more water. If your grated zucchini is sitting in a visible pool of liquid after grating, a light squeeze to remove the excess is fine, but there’s no need to wring it out completely. Peeling isn’t necessary either. The skin softens completely as this zucchini cake bakes.
Baking Tools I Actually Use
| Amount | Name | Notes |
|---|---|---|
| 1 | 9×13 metal baking pan | For the classic sheet cake format |
| 1 | Box grater or food processor with grating attachment | Speeds up prep significantly |
| 1 | KitchenAid stand mixer or hand mixer | For creaming and frosting |
| 1 | Digital kitchen scale | For accurate flour measurement |
| 1 | Offset spatula | For smooth frosting application |
| 1 | Wire cooling rack | For cooling evenly |
The One Rule: Don’t Squeeze the Zucchini Dry
This is the single most avoidable mistake in every homemade zucchini cake, and it’s the one that got me on my first attempt.
There’s a genuine contradiction across zucchini recipes online, some insist you must squeeze out the water, others say never to bother, and both sides sound confident. According to King Arthur Baking’s guidance on baking with zucchini most recipes are deliberately written to account for the vegetable’s natural water content, and that water is exactly what helps create such a moist, tender crumb in the first place. Squeezing it out removes the very thing the recipe is counting on, which leads to an overly dry zucchini cake instead of a better one.
The reason zucchini works so well for this in the first place comes down to where its water actually sits. According to FoodCrumbles’ explanation of why zucchini works so well in baking zucchini is well over 90 percent water, but that water is held inside the plant’s cell walls rather than sitting loose, which is why grated zucchini looks solid rather than watery on its own. That trapped water releases gradually as the cake bakes, which is a much gentler process than dumping in an equivalent amount of liquid all at once, and it’s exactly why this zucchini cake turns out moist rather than soggy when the water is left in.
The nuance worth knowing is that not all zucchini carries the same amount of water. Store-bought zucchini tends to be fairly consistent, but garden-grown zucchini, particularly larger, more mature ones, often holds noticeably more moisture. If your grated zucchini is pooling a visible amount of liquid in the bowl, a light squeeze to remove the excess is reasonable. If it isn’t, leave it alone. This recipe is built around not squeezing, which is why it produces a genuinely moist zucchini cake rather than a dry one dressed up with frosting.
Step by Step Instructions
Step 1: Prep the Pan Preheat the oven to 350 degrees F. Grease and flour a 9×13 inch pan.
Step 2: Mix Dry Ingredients Whisk the flour, baking powder, baking soda, cinnamon, nutmeg, and salt together in a medium bowl. Set aside.
Step 3: Mix Oil and Sugars In a large bowl, whisk the oil, granulated sugar, and brown sugar together until well combined.
Step 4: Add Eggs and Vanilla Whisk in the eggs one at a time, then the vanilla extract, until smooth.
Step 5: Add the Flour Mixture Fold the dry ingredients into the wet ingredients just until combined.
Step 6: Fold in the Zucchini and Walnuts Gently fold in the grated zucchini and walnuts, if using, without overmixing.
Step 7: Bake Pour the batter into the prepared pan and bake for 35 to 40 minutes, until a toothpick inserted in the center comes out clean.

Step 8: Cool Completely Cool the cake in the pan on a wire rack completely before frosting.
Step 9: Make the Cream Cheese Frosting Beat the cream cheese and butter together until smooth. Add the powdered sugar gradually, then mix in the vanilla and salt until fluffy.
Step 10: Frost and Serve Spread the frosting evenly over the cooled zucchini cake with an offset spatula. Slice and serve.

Common Mistakes to Avoid
Even with fresh zucchini, a few small missteps can still leave this zucchini cake dry or dense, so here’s exactly what to watch for.
- Squeezing the zucchini bone dry. This is the single biggest cause of a dry, disappointing zucchini cake.
- Using expired baking soda or baking powder. Both weaken over time, and a flat zucchini cake is often a leavening problem rather than a zucchini problem.
- Overmixing after adding the flour. This develops gluten and turns a light cake into a dense, tough one.
- Frosting a warm cake. This melts the cream cheese frosting and makes it slide right off.
- Skipping the toothpick test. Zucchini cake can look done on top while still being wet in the center, so always check with a toothpick before pulling it from the oven.
Variations
This zucchini cake recipe adapts easily depending on what your garden, or your schedule, hands you.
Zucchini Bundt Cake Pour all the batter into a well greased 12 cup Bundt pan and bake at 350 degrees F for 50 to 55 minutes.
Zucchini Layer Cake Divide the batter between two 9-inch round pans and bake for 28 to 32 minutes, then fill and frost as a true layer cake.
Chocolate Chip Zucchini Cake Fold 1 cup of mini chocolate chips into the batter along with the zucchini.
Zucchini Cupcakes Divide the batter into lined muffin tins and bake for 20 to 22 minutes. Makes about 24 cupcakes.
Gluten Free Zucchini Cake Substitute a 1 to 1 gluten free flour blend for the all-purpose flour, keeping all other measurements the same.
Serving Ideas
A light sprinkle of chopped walnuts over the finished cream cheese frosting gives this zucchini cake a rustic, bakery-style finish that hints at what’s inside before the first slice is even cut. Serve at room temperature so the frosting stays soft, and pair a slice with a cup of coffee for an easy afternoon treat.
This zucchini cake also travels well to potlucks and backyard gatherings, and it holds its own right alongside the site’s other spiced, cream-cheese-frosted cakes on a dessert table.
How to Store Zucchini Cake
Room temperature: Covered, this zucchini cake stays fresh for up to 2 days, especially if unfrosted.
Refrigerator: Store covered for up to 5 days, particularly once frosted with cream cheese frosting. Let it sit at room temperature for about 20 minutes before serving.
Freezer: Unfrosted zucchini cake wrapped tightly in plastic wrap and foil freezes well for up to 3 months. Thaw overnight in the refrigerator before frosting.

The Best Zucchini Cake Recipe (Moist, Spiced, Never Soggy)
Ingredients
Equipment
Method
- Preheat oven to 350 degrees F. Grease and flour a 9×13 inch pan.

- Whisk the flour, baking powder, baking soda, cinnamon, nutmeg, and salt in a medium bowl. Set aside.

- In a large bowl, whisk the oil, granulated sugar, and brown sugar together until combined.

- Whisk in the eggs one at a time, then the vanilla extract, until smooth.

- Fold the dry ingredients into the wet ingredients just until combined.

- Gently fold in the grated zucchini and walnuts, if using.

- Pour into the prepared pan and bake for 35 to 40 minutes, until a toothpick comes out clean.

- Cool completely in the pCooling The Best Zucchini Cake Recipe (Moist, Spiced, Never Soggy)an on a wire rack before frosting.

- Beat the cream cheese and butter until smooth, add powdered sugar gradually, then mix in vanilla and salt until fluffy.

- Spread the frosting evenly over the cooled cake with an offset spatula, then slice and serve.

Notes
- Do not squeeze the zucchini dry. The moisture is what keeps this cake tender.
- Only give it a light squeeze if it’s visibly pooling liquid, which is more common with garden-grown zucchini.
- Always confirm doneness with a toothpick, since the top can look done before the center is fully baked.
- Store refrigerated up to 5 days once frosted. Bring to room temperature before serving.
Frequently Asked Questions
Should I squeeze the water out of my zucchini before baking? Generally no. Most zucchini cake recipes, including this one, are written to use that natural moisture for a tender crumb. Only give it a light squeeze if it’s noticeably pooling liquid, which is more common with larger, garden-grown zucchini.
Why did my zucchini cake turn out soggy or gummy in the middle? This is usually from underbaking rather than the zucchini itself, since zucchini cake can look done on top while the center is still wet. Always confirm with a toothpick test.
Do I need to peel the zucchini first? No. The skin softens completely as the cake bakes and adds small flecks of green rather than any noticeable texture or flavor.
Can I make this cake ahead of time? Yes. Bake it up to 2 days ahead, wrap it tightly, and store at room temperature if unfrosted, or refrigerate if frosted.
What’s the difference between zucchini cake and carrot cake? They share a similar spiced flavor profile and cream cheese frosting, but zucchini adds moisture with almost no flavor of its own, while carrot adds both moisture and a distinct sweetness.
Can I freeze zucchini cake? Yes, unfrosted layers or slices freeze well for up to 3 months when wrapped tightly.
Do I need cake flour, or will all purpose work? All purpose flour works well here and is actually what this recipe is built around, since it gives zucchini cake the sturdier crumb needed to hold the grated zucchini.
How far ahead can I make the cream cheese frosting? Up to 3 days ahead, stored in an airtight container in the fridge. Bring it to room temperature and re-whip briefly before using.
The Story Behind Zucchini Cake
Zucchini itself arrived in the United States relatively recently compared to other squash varieties, gaining widespread popularity through Italian immigrant communities in the early 20th century before becoming a staple of American home gardens by the mid-1900s. Zucchini cake and its close relative, zucchini bread, grew directly out of a very practical problem home gardeners still face today, a single plant can produce far more zucchini than one household can reasonably eat fresh, especially by late summer.
Baking it into cakes and quick breads became the obvious solution, since zucchini’s high water content and mild flavor made it an easy, nearly invisible way to add moisture to baked goods without changing their taste. This homemade zucchini cake carries on that same practical tradition, minus the confusion over whether that moisture should be squeezed away or put to good use.
