Key takeaways
- 300 g grated zucchini, before draining; this is usually 2 medium zucchini
- 240 g plain flour
- 1 teaspoon baking powder
- 1 teaspoon baking soda
- ½ teaspoon fine salt
- 2 teaspoons ground cinnamon
- ¼ teaspoon ground nutmeg, optional
- 180 ml neutral-flavored oil, such as sunflower or rapeseed oil
- 180 g light brown sugar
- 100 g granulated sugar
- 3 large eggs, about 150 g without shells
- 2 teaspoons vanilla extract
- 100 g chopped walnuts or pecans, optional
This zucchini cake recipe makes a moist, tender cake without turning soggy: grate 300 g zucchini, squeeze out 150–180 g of excess liquid, then bake the batter in a 23 × 33 cm pan or two 20 cm round pans before finishing it with creamy cream-cheese frosting.
As an Amazon Associate we earn from qualifying purchases at no extra cost to you.
Zucchini Cake Recipe at a Glance
| Option | Pan size | Servings | Baking time | Best for |
|---|---|---|---|---|
| Sheet cake | 23 × 33 cm, about 5 cm deep | 20–24 squares | 30–38 minutes | Easy slicing and casual gatherings |
| Layer cake | Two 20 cm round pans | 12–16 slices | 25–32 minutes | A taller cake with more frosting between layers |
| Thick single cake | 23 cm round springform pan | 12–14 slices | 40–50 minutes | A centerpiece cake, provided the pan is not overfilled |
The recipe below uses plain flour, oil, brown sugar, cinnamon, and grated zucchini. It has enough structure for a sheet cake or layer cake while remaining soft after chilling. Because zucchini varies greatly in water content, the drainage step matters more than the exact weight of the whole zucchini.
Ingredients
For the cake
- 300 g grated zucchini, before draining; this is usually 2 medium zucchini
- 240 g plain flour
- 1 teaspoon baking powder
- 1 teaspoon baking soda
- ½ teaspoon fine salt
- 2 teaspoons ground cinnamon
- ¼ teaspoon ground nutmeg, optional
- 180 ml neutral-flavored oil, such as sunflower or rapeseed oil
- 180 g light brown sugar
- 100 g granulated sugar
- 3 large eggs, about 150 g without shells
- 2 teaspoons vanilla extract
- 100 g chopped walnuts or pecans, optional
For the creamy frosting
- 225 g full-fat block cream cheese, cold
- 115 g unsalted butter, softened but not melted
- 300 g icing sugar, sifted
- 1 teaspoon vanilla extract
- Pinch of salt
How to Drain Zucchini Without Drying Out the Cake
Do not leave the zucchini completely dry. The goal is to remove free liquid while retaining enough moisture to make the crumb tender.
- Wash and trim the zucchini. There is no need to peel it.
- Grate it on the large holes of a box grater. Avoid pulverizing it in a food processor, which releases liquid quickly and creates a wet pulp.
- Weigh 300 g of grated zucchini into a clean tea towel, nut-milk bag, or several layers of cheesecloth.
- Gather the cloth and twist firmly over a bowl for 30–60 seconds. For very watery zucchini, press it once more after a one-minute rest.
- Stop when approximately 150–180 g of liquid has been removed and the zucchini feels damp rather than dripping.
A useful calculation is that 300 g grated zucchini commonly produces about 120–180 ml of liquid. If all of that water goes into the batter, the center may remain gummy even when the edges look done. If you squeeze the zucchini until it is nearly dry, the cake can lose the soft texture that makes zucchini cake appealing.
If you do not have a scale, use about 2 packed cups of grated zucchini before squeezing and roughly 1¼ packed cups after draining. Weighing is more dependable because zucchini size and moisture vary.
Method
- Heat the oven to 175°C conventional or 160°C fan. Grease the selected pan and line the base with baking paper. For a round pan, grease the sides generously.
- Whisk the flour, baking powder, baking soda, salt, cinnamon, and nutmeg in a medium bowl.
- In a large bowl, whisk the oil, brown sugar, granulated sugar, eggs, and vanilla until smooth. The mixture does not need to become fluffy.
- Add the drained zucchini and stir until evenly distributed.
- Fold in the dry ingredients just until no obvious streaks of flour remain. Fold in the nuts if using. Overmixing develops gluten and can make the cake firm.
- Spread the batter evenly in the prepared pan. It should fill a sheet pan to roughly 3–4 cm deep before baking.
- Bake according to the pan guide. Begin checking at the early end of the range because dark metal pans cook faster than light-colored pans.
- Cool the cake in its pan for 15 minutes, then transfer it to a rack. Cool completely before frosting.
Pan Choices, Yield, and Baking Decisions
The 23 × 33 cm sheet pan is the most forgiving option. Its thinner layer releases steam efficiently, so it is less likely to develop a wet center. Two 20 cm round pans produce a more decorative cake, but the layers must be completely cool before frosting or the filling will soften.
A 23 cm round pan creates a deeper cake. Do not fill it more than two-thirds full. If you have leftover batter, bake it in a few lined muffin cups rather than extending the baking time indefinitely. A deep cake may need a longer bake, but excessive time can dry the outside before the middle sets.
The cake is done when the center springs back lightly, a wooden skewer comes out with a few moist crumbs, and the internal temperature is approximately 96–99°C. A skewer covered in shiny batter indicates that it needs more time. A completely clean skewer can mean the cake has already gone slightly too far.
Making the Creamy Frosting
- Beat the softened butter for 2–3 minutes until smooth and pale.
- Add the sifted icing sugar in three additions, mixing on low speed until incorporated before increasing the speed.
- Beat in the vanilla and salt.
- Add the cold cream cheese and mix only until smooth, usually 30–60 seconds. Stop as soon as the frosting holds soft peaks.
Overbeating cream cheese frosting can make it loose because the cheese warms and releases moisture. If the frosting seems soft, refrigerate it for 20–30 minutes rather than adding a large amount of extra icing sugar. Spread the frosting over a fully cooled cake, then chill the finished cake for at least 30 minutes before slicing.
Common Mistakes and Practical Fixes
- Soggy center: The zucchini was not drained enough, the pan was too small, or the cake was removed before the center set. Use the measured zucchini weight and a correctly sized pan.
- Dry edges: The pan was dark, the oven ran hot, or the cake baked too long. Check with a thermometer or begin testing early.
- Dense texture: The batter was mixed vigorously after the flour was added. Fold only until combined.
- Runny frosting: The cream cheese was warm or the frosting was overmixed. Chill it briefly and spread it while cool.
- Uneven layers: Divide batter by weight. For two round pans, place about 650–680 g of batter in each pan rather than estimating by eye.
Storage and Ownership Realities
Because the frosting contains cream cheese, store the finished cake covered in the refrigerator and eat it within 3–4 days. Let individual slices stand at room temperature for 15–20 minutes before serving for a softer crumb. An unfrosted cake can be wrapped well and frozen for up to 2 months; thaw it overnight in the refrigerator before frosting.
The ingredients that most affect repeat results are the zucchini, cream cheese, and icing sugar. Zucchini changes with season and size, block-style cream cheese is generally firmer than spreadable tub cheese, and humid conditions can make icing sugar clump. Keeping a kitchen scale, box grater, clean draining cloth, and metal cake tester available makes this recipe more consistent than relying on volume measures alone.
Important Note for Homes With Pets
This is a people-food cake, not a pet treat. Keep frosted cake away from dogs and cats because it is high in sugar and fat, and never use frosting or baked goods containing xylitol, also called birch sugar. Chocolate decorations, raisins, macadamia nuts, and some sugar-free ingredients can also be dangerous to pets. If a pet eats an ingredient that may be toxic, contact a veterinarian or an animal poison service promptly.
