Zucchini cake takes everything great about zucchini bread and turns it into a proper layer cake — moist, lightly spiced, and topped with rich cream cheese frosting. Grated zucchini keeps the crumb incredibly soft without adding any noticeable vegetable flavor, so what you’re left with is a tender, spiced cake that tastes like it came from a bakery.
Why Zucchini Makes Such a Good Cake
Just like in zucchini bread, grated zucchini adds moisture to the batter as it bakes, keeping the cake soft and tender for days. Combined with warm spices like cinnamon and a touch of nutmeg, it creates a flavor profile similar to carrot cake, but with an even more delicate texture.
Ingredients
For the cake
- 2 cups grated zucchini (about 1 large zucchini), excess moisture squeezed out
- 2 ½ cups all-purpose flour
- 1 teaspoon baking soda
- ½ teaspoon baking powder
- 1 teaspoon ground cinnamon
- ¼ teaspoon ground nutmeg
- ½ teaspoon salt
- 3 large eggs
- 1 cup vegetable oil
- 1 cup granulated sugar
- ½ cup packed brown sugar
- 1 teaspoon vanilla extract
For the cream cheese frosting
- 8 oz cream cheese, softened
- ½ cup (1 stick) unsalted butter, softened
- 3 cups powdered sugar
- 1 teaspoon vanilla extract
- Pinch of salt
Optional add-ins
- ½ cup chopped walnuts or pecans
- Extra chopped nuts, for garnish
Equipment
- A box grater
- Two 9-inch round cake pans (or one 9×13-inch pan)
- Parchment paper
- Two mixing bowls
- A hand or stand mixer
- A wire rack
Instructions
Step 1: Prep the zucchini
Wash and trim the zucchini, then grate it using the large holes of a box grater. Place the grated zucchini on a clean kitchen towel or between paper towels and squeeze out as much liquid as possible.
Step 2: Preheat and prep the pans
Preheat your oven to 350°F (175°C). Grease two 9-inch round cake pans and line the bottoms with parchment paper for easy removal.
Step 3: Mix the dry ingredients
In a bowl, whisk together the flour, baking soda, baking powder, cinnamon, nutmeg, and salt.
Step 4: Mix the wet ingredients
In a large bowl, whisk together the eggs, vegetable oil, granulated sugar, brown sugar, and vanilla extract until smooth. Fold in the squeezed, grated zucchini.
Step 5: Combine
Add the dry ingredients to the wet ingredients in two batches, folding gently with a spatula just until no streaks of flour remain. If using nuts, fold them in now.
Step 6: Bake
Divide the batter evenly between the two prepared cake pans, smoothing the tops. Bake for 28-32 minutes, until a toothpick inserted into the center comes out clean or with a few moist crumbs. (If using a 9×13-inch pan instead, bake for 40-45 minutes.)
Step 7: Cool
Let the cakes cool in the pans for about 10 minutes, then turn them out onto a wire rack to cool completely before frosting — frosting a warm cake will cause the frosting to melt and slide.
Step 8: Make the frosting
In a large bowl, beat the softened cream cheese and butter together with a hand or stand mixer until smooth and creamy. Gradually add the powdered sugar, beating until fully combined and fluffy. Mix in the vanilla extract and a pinch of salt.
Step 9: Frost and assemble
Once the cakes are completely cool, place one layer on a serving plate and spread an even layer of frosting on top. Add the second layer and frost the top and sides of the cake. Garnish with extra chopped nuts if desired.
Tips for the Best Zucchini Cake
- Squeeze the zucchini thoroughly to avoid a dense or soggy cake.
- Let the cake layers cool completely before frosting — even slightly warm layers can cause the frosting to slip.
- Use room-temperature cream cheese and butter for a smooth, lump-free frosting.
- Make it a sheet cake for easier serving at a crowd — just use a 9×13-inch pan and adjust the bake time as noted above.
- Add shredded coconut to the batter for extra texture and flavor.
Storage
Store the frosted cake covered in the refrigerator for up to 5 days, since the cream cheese frosting needs to stay chilled. Let slices sit at room temperature for about 15-20 minutes before serving for the best texture. Unfrosted cake layers can also be wrapped tightly and frozen for up to 3 months.
Final Thoughts
Zucchini cake with cream cheese frosting is a wonderful way to use up a garden zucchini while getting a moist, spiced cake that rivals any bakery version. It’s a great choice for birthdays, potlucks, or just because you’ve got more zucchini than you know what to do with.

