Classic Zucchini Cake – Easy Homemade Recipe

It was mid-August, and I’d made a critical error. I planted three zucchini plants because, in my defense, they were on sale at the nursery, and I’d convinced myself I’d be making zucchini noodles and grilled zucchini and zucchini fritters all summer long. Instead, my garden turned into what I can only describe as a zucchini factory. Every morning I’d walk outside and find three more baseball-bat-sized green monsters hiding under the leaves, smugly waiting for me. I gave zucchini to my neighbors, my mailman, my yoga instructor, and I’m pretty sure I left a bag on my hairdresser’s porch when she wasn’t looking. But still, they kept coming.

I hit my breaking point standing in my kitchen, staring at a pile of zucchini on my counter so big it looked like a farmer’s market display. My husband walked by, patted my shoulder, and said, “Maybe try baking with them?” In that moment, I remembered a recipe my grandmother used to make during her own annual zucchini surplus. She called it “summer squash cake,” and I remember being skeptical as a kid because, let’s be honest, the idea of vegetables in dessert was offensive to my ten-year-old brain. Now, twenty-something years later, I dug through my recipe box, found her handwritten card (stained with what I hope was vanilla extract), and got to work.

That first batch of Classic Zucchini Cake was transformative. It was moist, perfectly spiced, and completely unrecognizable as a vegetable-based dessert. My husband ate three slices before I even asked how he liked it. My neighbor, who I’d been forcing zucchini upon for weeks, texted me for the recipe immediately. And my grandmother called me, delighted I was carrying on the tradition. I’ve made this cake at least forty times since that summer, and I’ve tweaked my grandmother’s original recipe just enough to make it my own. I’m about to share every secret I’ve learned along the way.

Why You’ll Love This Recipe

  • One bowl, no fuss: You don’t need a stand mixer or any fancy equipment. One large bowl, a whisk, and a spatula are all that’s standing between you and cake.
  • It uses up zucchini secretly: If you have picky eaters (or just family members who give you side-eye when you mention vegetables), this cake solves that problem. The zucchini disappears into the batter and adds incredible moisture without any vegetal flavor.
  • Better the next day: Unlike a lot of cakes that get stale after 24 hours, this one actually deepens in flavor overnight. The spices bloom, the moisture distributes evenly, and it’s honestly better on day two.
  • Freezer-friendly: You can wrap this cake up, freeze it, and pull it out when you need a quick dessert or hostess gift. I’ve done this for last-minute dinner parties more times than I can count.
  • No fancy ingredients: Everything you need is probably already in your pantry. Flour, sugar, eggs, oil, spices — the zucchini is the only “special” item, and we both know those are everywhere in summer.

Ingredients List

For the Cake

  • 2 cups all-purpose flour (spooned and leveled, please — scooping directly from the bag packs it down)
  • 2 teaspoons baking powder
  • 1 teaspoon baking soda
  • 1 teaspoon ground cinnamon (and honestly, I often add an extra ½ teaspoon because I’m a cinnamon lover)
  • ½ teaspoon ground nutmeg (freshly grated if you have it, but pre-ground works fine)
  • ½ teaspoon fine sea salt
  • 3 large eggs, at room temperature (you can run cold eggs under warm water for a minute if you forget to pull them out)
  • 1½ cups granulated sugar
  • ¾ cup vegetable oil (canola or grapeseed work great; I’ve used melted coconut oil too, but it changes the texture slightly)
  • 2 teaspoons pure vanilla extract (I’m generous here — I usually do a heavy teaspoon and a half)
  • 2 cups packed, shredded zucchini (about 2 medium zucchini or 1 large monster-sized one)
  • ½ cup chopped walnuts or pecans, optional (I’m team walnut all the way, but I leave them out for my nut-free friends)

For the Cream Cheese Frosting

  • 8 ounces cream cheese, softened (full-fat, please — low-fat cream cheese makes the frosting runny and we’re not about that life)
  • ½ cup unsalted butter, softened (a European-style butter like Kerrygold makes a noticeable difference here, but any good butter works)
  • 3 cups powdered sugar, sifted (sifting is optional if you’re in a rush, but it makes the frosting silkier)
  • 1 teaspoon vanilla extract (some people add a pinch of salt — I say yes, add it, it balances the sweetness)

Substitutions to Consider

I’ve made this cake for friends with various dietary needs, and here’s what I’ve learned:

  • Gluten-free: I’ve successfully used King Arthur’s Gluten-Free Measure for Measure flour with no other changes. The texture is slightly more tender, so be gentle when removing it from the pan.
  • Dairy-free frosting: Use a vegan cream cheese (Kite Hill is my favorite) and vegan butter. The frosting will be slightly softer, so chill it for 15 minutes before frosting.
  • Less sugar: You can reduce the granulated sugar to 1¼ cups. The cake will still be moist, just slightly less sweet. Don’t go below 1 cup though — sugar isn’t just for sweetness here, it helps with texture.
  • Egg-free: I haven’t tested this, but readers have told me that a flax egg (1 tablespoon ground flax + 3 tablespoons water, per egg) works. I’d recommend adding an extra ¼ cup of grated zucchini for moisture.

Step-by-Step Instructions

1. Prep Your Zucchini (This is the Most Important Step)

This is where I messed up the first three times I made this cake. I didn’t squeeze the zucchini well enough, and my cake came out gummy and wet in the center. Do not skip this step.

Grate your zucchini using the large holes of a box grater (or a food processor if you’re feeling fancy). You should get about 2 packed cups. Place the shredded zucchini in a clean dish towel or several layers of paper towels. Gather the ends together and squeeze. Squeeze hard. Squeeze like you’re wringing out a wet bath towel. You want to remove as much liquid as possible — I’m talking about ¼ cup of liquid will come out if you do it right. Your zucchini should feel almost dry to the touch. Set it aside while you mix the dry ingredients.

2. Preheat and Prep Your Pan

Preheat your oven to 350°F (175°C). Grease a 9×13-inch rectangular pan (this is my preferred size) or two 9-inch round cake pans. If you’re using the round pans, you’ll get a beautiful layered cake, but I’m lazy and love the sheet cake version. For the sheet pan, line the bottom with parchment paper — it makes removal a breeze and your cake won’t stick. My grandmother used to grease with butter and flour the old-fashioned way, but I use Baker’s Joy spray and never have issues.

3. Mix Your Dry Ingredients

In a large bowl, whisk together the flour, baking powder, baking soda, cinnamon, nutmeg, and salt. Whisk them well because you want the leavening evenly distributed. I once skipped this step and ended up with a bitter pocket of baking soda in one bite. Not pleasant. Set this bowl aside.

4. Whisk the Wet Ingredients

In another large bowl (or the bowl of your stand mixer if you’re using one), whisk together the eggs, sugar, oil, and vanilla. The mixture should become slightly pale and frothy — this takes about 2 minutes of whisking by hand. If you’re using a stand mixer, mix on medium speed for about 1 minute. This step incorporates air, which is part of what makes your cake light despite all that moisture from the zucchini.

5. Combine Wet and Dry

Add the dry ingredients to the wet ingredients in three additions, folding gently with a rubber spatula. Here’s my mistake on batch number two — I overmixed. The batter should be combined but still a little lumpy. Overmixing develops gluten, which makes your cake tough instead of tender. Fold until you can’t see streaks of flour, then stop. Maybe do one more fold just for good measure, then stop. Seriously.

6. Fold in the Zucchini and Nuts (if using)

Now add your squeezed-out zucchini and fold it in until evenly distributed. The batter will suddenly look much more substantial and wet. This is right where you want it. If you’re adding nuts, fold them in too, but I prefer to sprinkle mine on top of the frosting later so they stay crunchy. Your call.

7. Pour and Bake

Pour the batter into your prepared pan and spread it evenly. It’s thick, so use an offset spatula or the back of a spoon to smooth it all the way to the edges. Tap the pan on the counter a few times to release any air bubbles.

Bake for 35 to 40 minutes, or until a toothpick inserted in the center comes out with just a few moist crumbs attached. The cake should pull away from the edges just slightly. I start checking at 32 minutes because all ovens are different — my mother’s oven runs hot, so her cake is always done at 30 minutes, while mine takes a full 38. You’ll know your oven best.

8. Cool Completely

Let the cake cool in the pan on a wire rack for about 15 minutes. If you’re using a 9×13 pan, you can leave it in the pan and frost it right there. If you’re using round pans, carefully remove the cakes from the pans after 15 minutes and transfer to wire racks to cool completely. And I mean completely. Frosting a warm cake is a one-way ticket to a melty, runny mess. I learned this lesson the hard way when my first frosting attempt slid off the cake like a landslide.

9. Make the Cream Cheese Frosting

While the cake is cooling, make your frosting. In a large bowl using an electric hand mixer (or the stand mixer with the paddle attachment), beat the softened cream cheese and butter together until smooth and fluffy — about 3 minutes. Scrape down the sides as needed. Add the vanilla and a pinch of salt if you’re using it. With the mixer on low, gradually add the powdered sugar. Once it’s all incorporated, increase speed to medium and beat for about 2 minutes until light and fluffy. If the frosting seems too soft, pop it in the fridge for 15 minutes to firm up.

10. Frost and Serve

Frost the cooled cake with an offset spatula, spreading all the way to the edges. I make swoopy swirls on top because I’m not a perfect piper and I’ve embraced the rustic look. Sprinkle with extra chopped nuts if you like, or a dusting of cinnamon. Slice, serve, and watch people’s faces when you tell them there’s an entire vegetable hiding inside.

Pro Tips & Tricks

Don’t Skip Squeezing the Zucchini

This is the most common mistake and I cannot emphasize it enough. The first time I made this cake, I thought “oh, it’ll cook off” and ended up with a cake that was so wet it basically had a center of zucchini pudding. Not cute. Squeeze until you think you’ve squeezed enough, then squeeze one more time. Your cake will be tender and moist without being soggy.

Weigh Your Flour if You Can

I know I said you don’t need fancy equipment, but if you have a kitchen scale, using 240 grams of flour instead of 2 cups yields more consistent results every time. When you scoop flour, it packs down differently depending on how humid your kitchen is, how deep your flour bin is, and even your scooping technique. Weighing eliminates the guesswork. I finally bought a $15 scale from Amazon after ruining a batch of cookies, and it’s changed my baking life.

Room Temperature Ingredients Matter

This is one of those baking rules that’s actually real and not just fussy. Room-temperature eggs incorporate more air into the batter. Room-temperature butter for the frosting creams more smoothly. Pull your eggs and cream cheese out of the fridge an hour before you start. If you’re forgetful like me, place the eggs in a bowl of warm water for 10 minutes and soften the cream cheese in the microwave for 10 seconds at a time (do not melt it, just soften).

Don’t Overmix the Batter

This deserves its own bullet point because I’ve done it so many times. When you add the flour to the wet ingredients, the batter will be thick and a little lumpy. That’s fine. Overmixing develops the gluten in the flour, making your cake tough and dense. A few lumps in the batter are actually a good sign — they’ll bake out. I use a spatula and fold until the flour just disappears. No electric mixer for this step.

Toast Your Nuts Before Adding

If you’re using walnuts or pecans, toast them in a dry skillet over medium heat for 3-5 minutes until fragrant. This intensifies their flavor and keeps them crunchy even after baking. I never skip this step now. Just watch them carefully — nuts go from toasted to burnt in about 15 seconds.

Variations & Substitutions

Zucchini Carrot Cake Hybrid

This is what I make when I want to feel a little healthier (I know, it’s still cake, but let me have this). Swap half the zucchini for grated carrots and add ½ cup of crushed pineapple, well-drained. The pineapple adds incredible moisture and a tangy sweetness that works beautifully with the cream cheese frosting. Just squeeze the pineapple well — you’re already going to be squeezing zucchini, so it’s not much extra work.

Chocolate Zucchini Cake

This is wildly popular in my house. Reduce the flour to 1¾ cups and add ½ cup of unsweetened cocoa powder. Replace the cinnamon and nutmeg with 1 teaspoon of espresso powder (to enhance the chocolate flavor without making it taste like coffee). The frosting changes to a chocolate cream cheese version — just add ¼ cup of cocoa powder to the frosting ingredients. It’s decadent and nobody will ever believe there’s zucchini in it. My husband still thinks I’m magic.

Lemon Zucchini Cake

For a brighter, more summery version, add the zest of two lemons to the batter along with the wet ingredients. Replace the cinnamon with 1 teaspoon of lemon extract (or just use extra vanilla). Skip the cream cheese frosting and use a simple lemon glaze instead: 1½ cups powdered sugar mixed with 2-3 tablespoons of fresh lemon juice. Drizzle it over the cooled cake. This version screams summer afternoon on the porch.

Vegan-Friendly Version

Use the flax eggs I mentioned earlier (3 flax eggs total). Replace the oil with an equal amount of melted coconut oil or vegan butter. The cake texture might be slightly more delicate, so bake at 325°F for a few extra minutes and check with a toothpick. For the frosting, Kite Hill cream cheese is the best vegan option I’ve found, and Miyoko’s butter works perfectly.

Serving Suggestions

This cake is ridiculously versatile. I’ve served it at brunch, afternoon tea, birthday parties, and even as a Thanksgiving dessert option (it’s a welcome break from heavy pies). Here’s how I like to enjoy it:

For a simple snack: Cut a slice, warm it in the microwave for 10 seconds, and enjoy with a cup of black coffee. The warmth makes the cream cheese frosting slightly melty and the spices even more fragrant.

For a brunch spread: Serve it alongside fresh berries and a dollop of whipped cream. The fruit adds a fresh contrast to the sweet, spiced cake. I did this for my sister’s baby shower and people asked for the recipe all afternoon.

For a special occasion: Make it into a layer cake using two 9-inch round pans. Double the frosting recipe so you can frost between the layers and over the top. Decorate with extra nuts and cinnamon sticks for a stunning presentation. I made this version for my grandmother’s 80th birthday and she cried (in a good way).

For a summer BBQ: Cut the sheet cake into small squares and serve them on a platter. It’s a great finger dessert and it won’t melt in the sun like ice cream-based desserts. Plus, it uses up that garden zucchini, so you can flex to your neighbors about your baking skills.

For a potluck: This travels beautifully. Keep it in the pan with the lid on, or transfer to a cake carrier. It survives car rides without falling apart and doesn’t need refrigeration for up to 8 hours (though I’d refrigerate it if you’re in a hot climate).

FAQ’s

How should I store this zucchini cake?

Cover the cake tightly and store it in the refrigerator for up to 5 days. Because of the cream cheese frosting, it needs to be refrigerated. Let it sit at room temperature for about 30 minutes before serving to take the chill off. The cake actually tastes better cold to me, but my husband prefers it room temperature.

Can I freeze this cake?

Absolutely. Freeze the unfrosted cake for best results. Wrap it tightly in plastic wrap, then foil, and freeze for up to 3 months. Thaw overnight in the refrigerator and frost the next day. You can also freeze individual slices with a piece of parchment between them — perfect for pulling out a single serving when you have a late-night craving. If you’ve already frosted it, freeze it uncovered for an hour to set the frosting, then wrap it well. The texture holds up surprisingly well.

My cake came out too dense. What happened?

This is almost always from overmixing the batter or not squeezing the zucchini enough. Remember, fold until the flour is just combined. A few lumps are fine. Also, double-check that your baking powder and baking soda are fresh — if they’re more than six months old, they might not be active enough to give your cake lift. I date my baking powder with a Sharpie so I know when to replace it.

Can I make this cake ahead of time?

Yes, and I actually encourage it. This is one of those cakes that gets better as it sits. Bake the cake a day ahead, cool it completely, wrap it tightly, and store at room temperature overnight. Frost it the next day. Or make the whole thing, refrigerate it, and it will be even more moist and flavorful the next day. I always make this the night before I need it.

Why does my zucchini cake have a green tint?

That’s just the zucchini peeking through. The green flecks of skin are natural and harmless. If you want to avoid green specks entirely, peel your zucchini before grating it. I personally love the tiny green dots — it proves there’s really vegetable in there, which I find charming. My kids used to try to pick them out until they realized it still tasted like cake.

Can I use frozen zucchini for this recipe?

You can, but you need to thaw and squeeze it thoroughly first. Frozen zucchini releases even more water than fresh once it thaws. I recommend squeezing it in a dish towel, then squeezing it again. You might get ½ cup of water from frozen zucchini. It works in a pinch, but I prefer fresh for the best texture.

What if I don’t have a 9×13 pan?

No problem. Use two 8-inch or 9-inch round pans (bake for 30-35 minutes) or a Bundt pan (bake for 45-50 minutes). If using a Bundt pan, the cake will be done when a skewer inserted in the deepest part comes out clean. The frosting for a Bundt cake can be a simple drizzle rather than a thick layer.

The top of my cake cracked while baking. Is that bad?

Not at all! A cracked top can happen if your oven runs slightly hot or if you overmixed the batter. It doesn’t affect the taste at all, and the frosting covers any imperfections anyway. I’ve baked this cake probably forty times and the top has cracked maybe ten of them. It’s fine.

Related Recipes:

Final Thoughts

I’m sitting here writing this with a slice of last night’s zucchini cake next to me, and I’m already thinking about when I’ll make it again. Maybe this weekend for my book club. Maybe I’ll surprise my mom with one next time I visit. Maybe I’ll finally use up those three zucchini plants that are still producing like they’re trying to win an award.

That’s the beautiful thing about this recipe — it’s not just a way to use up vegetables. It’s a cake that’s earned a permanent spot in my baking rotation, summer or not. It’s forgiving enough for beginner bakers, impressive enough for experienced ones, and delicious enough that nobody ever guesses the secret ingredient. My grandmother would be so happy to know her recipe is still out here making people smile. I hope you’ll give it a try, make it your own, and share it with people you love.

If you make this zucchini cake, I’d absolutely love to hear about it. Did you add the nuts? Did you make the chocolate version? Did you finally pawn off that giant zucchini sitting on your counter? Drop me a comment or tag me in your photos. I genuinely want to see what you create. Sometimes baking feels a little magical, and this is one of those recipes that proves it.

Leave a Comment

Scroll to Top