Key takeaways
- 2 cups (225 grams) finely grated zucchini, lightly packed
- 2 cups (250 grams) all-purpose flour, measured by weight or spooned into measuring cups and leveled
- 1 teaspoon baking powder
- 1 teaspoon baking soda
- 1 teaspoon ground cinnamon
- 1/2 teaspoon ground nutmeg
- 1/2 teaspoon fine salt
- 3 large eggs, about 150 grams without shells
- 1 1/4 cups (250 grams) granulated sugar
- 3/4 cup (160 grams) neutral oil, such as canola or vegetable oil
- 2 teaspoons vanilla extract
- 1 cup (100 grams) chopped walnuts or pecans, optional
This zucchini cake recipe makes a moist, tender 9-by-13-inch cake with a lightly spiced crumb and stable cream cheese frosting; the key is to grate the zucchini finely, squeeze only excess liquid, and cool the cake completely before frosting.
Use about 2 cups of lightly packed grated zucchini, or approximately 225 grams, for reliable moisture without a soggy center. If your zucchini is unusually wet, drain it for 5 to 10 minutes and press it gently once—do not wring it completely dry, because the retained moisture is what keeps this cake soft.
Our top picks
As an Amazon Associate we earn from qualifying purchases at no extra cost to you. Ratings are shown as listed on Amazon.
Zucchini Cake Recipe at a Glance
| Item | Specification |
|---|---|
| Yield | 16 squares from a 9-by-13-inch pan |
| Prep time | 25 minutes |
| Baking time | 35 to 45 minutes |
| Cooling time before frosting | At least 90 minutes |
| Oven temperature | 350°F (175°C) |
| Recommended pan | Light-colored metal 9-by-13-inch pan |
| Approximate batter weight | 1.45 to 1.6 kilograms |
Ingredients
For the cake
- 2 cups (225 grams) finely grated zucchini, lightly packed
- 2 cups (250 grams) all-purpose flour, measured by weight or spooned into measuring cups and leveled
- 1 teaspoon baking powder
- 1 teaspoon baking soda
- 1 teaspoon ground cinnamon
- 1/2 teaspoon ground nutmeg
- 1/2 teaspoon fine salt
- 3 large eggs, about 150 grams without shells
- 1 1/4 cups (250 grams) granulated sugar
- 3/4 cup (160 grams) neutral oil, such as canola or vegetable oil
- 2 teaspoons vanilla extract
- 1 cup (100 grams) chopped walnuts or pecans, optional
For the cream cheese frosting
- 8 ounces (226 grams) full-fat block cream cheese, softened but still cool
- 1/2 cup (113 grams) unsalted butter, softened
- 3 1/2 cups (420 grams) confectioners’ sugar, sifted if lumpy
- 2 teaspoons vanilla extract
- 1/4 teaspoon fine salt
- 1 to 2 tablespoons heavy cream or milk, only if needed for spreading consistency
How to Make This Zucchini Cake Recipe
1. Prepare the pan and oven
Heat the oven to 350°F (175°C). Grease a 9-by-13-inch metal baking pan and line the bottom with parchment, leaving a little overhang on two sides for lifting.
A light-colored metal pan gives the most even result. Dark metal pans absorb more heat and can brown the edges before the center is finished, so reduce the oven temperature to 325°F (165°C) if using one and begin checking five minutes early. A glass pan also tends to require a slightly lower temperature and may add several minutes to the bake.
2. Grate and measure the zucchini
Wash the zucchini and trim the ends, but do not peel it. Grate it on the large holes of a box grater, then lightly pack it into a measuring cup or weigh 225 grams.
Assess the moisture before adding it. If the grated zucchini looks moist but does not release a pool of liquid, use it as it is. If liquid collects in the bowl, place the zucchini in a clean kitchen towel or fine-mesh sieve and press gently until the visible dripping stops. Avoid twisting the towel tightly. Removing too much water produces a denser, less tender cake.
For very large, mature zucchini with firm seeds, scrape out the seedy center before grating. Young zucchini can be grated whole.
3. Mix the dry ingredients
Whisk the flour, baking powder, baking soda, cinnamon, nutmeg, and salt in a medium bowl. Combining the leaveners with the flour first helps distribute them evenly, preventing concentrated pockets of baking soda or flat areas in the finished cake.
4. Mix the wet ingredients
In a large bowl, whisk the eggs and sugar for about 30 seconds, just until combined. Whisk in the oil and vanilla. The oil gives this cake a softer texture than butter-based cakes and helps it remain moist after refrigeration.
5. Combine without overmixing
Add the dry ingredients to the wet mixture in two additions. Stir with a spatula just until no broad streaks of flour remain, then fold in the grated zucchini and optional nuts.
The batter will be thick, and a few small lumps are acceptable. Stop mixing as soon as the flour disappears. Excess stirring develops gluten, which can make the cake chewy rather than tender.
6. Bake and check the center
Spread the batter evenly in the prepared pan. Bake for 35 to 45 minutes, rotating the pan once after about 25 minutes if your oven has hot spots.
The cake is ready when the center springs back lightly and a toothpick inserted in the middle comes out with a few moist crumbs but no wet batter. For a more precise check, the center should register approximately 200°F to 205°F (93°C to 96°C) on an instant-read thermometer.
Do not judge doneness by the edges alone. Zucchini cakes can look set around the perimeter while the middle remains underbaked because of the vegetable’s water content.
7. Cool in stages
Set the pan on a cooling rack for 20 minutes. Then run a thin knife around the edges and use the parchment to lift the cake onto the rack, if desired. Let it cool until no warmth remains in the center, usually another 60 to 90 minutes.
This two-stage cooling process matters for frosting. Frosting a warm cake melts the butter and cream cheese, causing sliding, thin spots, and a greasy surface. If you need to speed up the process, refrigerate the uncovered cake for 30 to 45 minutes after it has cooled at room temperature for at least 20 minutes.
8. Make the frosting
Beat the softened butter for 1 to 2 minutes until smooth. Add the cream cheese and beat only until combined, about 30 to 45 seconds. Overbeating cream cheese can loosen its structure and make the frosting runny.
Add the confectioners’ sugar in three additions, mixing on low speed after each addition. Add the vanilla and salt, then beat briefly on medium speed until smooth. If the frosting is too firm, add heavy cream or milk 1 teaspoon at a time. If it is too soft, refrigerate it for 15 to 20 minutes before spreading.
9. Frost and portion
Spread the frosting over the fully cooled cake with an offset spatula. For cleaner squares, refrigerate the frosted cake for 20 to 30 minutes, then cut it into 16 portions using a sharp knife wiped clean between cuts.
For a 9-by-13-inch pan, cutting four rows by four rows makes pieces approximately 2 1/4 by 3 1/4 inches. For smaller party portions, cut five rows by four rows for 20 pieces.
Pan-Size Adjustments
| Pan | Approximate batter depth | Baking guidance | Expected yield |
|---|---|---|---|
| 9-by-13-inch rectangle | About 1 inch | 350°F for 35 to 45 minutes | 16 to 20 pieces |
| 9-inch round, 2-inch deep | About 1 1/2 inches | 350°F for 40 to 50 minutes | 10 to 12 slices |
| Two 8-inch round pans | About 1 1/4 inches each | 350°F for 28 to 36 minutes | 16 cake slices |
| 24 standard muffin cups | Two-thirds full | 350°F for 18 to 23 minutes | 24 cupcakes |
These times are estimates because pan material, batter depth, and oven calibration vary. Keep the same total batter quantity and check the center rather than relying only on the clock. Do not fill a round pan more than two-thirds full; the thick batter needs room to rise without overflowing.
Worked Example: Adjusting the Zucchini
Suppose your zucchini produces 300 grams of grated flesh instead of the target 225 grams. The extra 75 grams is roughly one-third more zucchini, which can make the center wet and extend baking time considerably. The most dependable adjustment is to reserve 75 grams for another dish rather than adding extra flour, because increasing flour changes the cake’s texture and can make it heavy.
If your zucchini is only slightly over the target—up to about 250 grams—press it gently in a sieve and use it. If you have only 175 grams, add it without compensating; the cake will be somewhat less moist but should still work. Avoid adding water, milk, or applesauce to replace missing zucchini liquid.
What Makes the Frosting Stable
- Use block-style full-fat cream cheese. Tub-style cream cheese generally contains more water and can produce a softer frosting.
- Soften the butter and cream cheese separately. They should yield to gentle pressure but should not be warm or glossy.
- Mix cream cheese briefly. Long beating incorporates heat and can make the frosting slack.
- Cool the cake completely before spreading. This is the most important step for preventing melting.
- Chill the finished cake before slicing or transporting it. Twenty to thirty minutes firms the frosting without making the cake hard.
Storage and Ownership Realities
Because the frosting contains cream cheese, store the finished cake covered in the refrigerator. It is best within three days, although the unfrosted cake can be wrapped and refrigerated for up to four days. Let refrigerated portions stand at room temperature for 20 to 30 minutes before serving for the softest crumb.
Freeze unfrosted cake squares for up to two months, wrapped first in plastic and then in a freezer-safe container. Freeze frosted pieces uncovered for about one hour until firm, then wrap them individually. Thaw them overnight in the refrigerator and remove the wrapping only after the frosting has set.
The most common failures are excessive squeezing of the zucchini, measuring flour by compressing it into a cup, underbaking the center, and frosting while warm. A serrated knife is useful if the cake has a delicate crumb, while a metal offset spatula makes the frosting easier to spread evenly.
Easy Variations
For a citrus version, add 1 tablespoon of finely grated orange zest to the wet ingredients and replace half the vanilla in the frosting with 1 teaspoon of orange zest. For a chocolate variation, replace 1/4 cup (30 grams) of the flour with unsweetened cocoa powder and add 2 tablespoons of milk to the batter. The cocoa absorbs moisture, so do not omit the added liquid.
For a nut-free cake, leave out the walnuts or pecans without changing the other quantities. Raisins or chopped dried cranberries can be added at a maximum of 3/4 cup; toss them with 1 teaspoon of the measured flour before folding them in to reduce sinking.
Frequently Asked Questions
Do I need to peel zucchini for this cake?
No. The thin green skin softens during baking and adds color without creating a tough texture. Peel only zucchini with unusually thick or damaged skin.
Should zucchini be squeezed dry for zucchini cake?
Only excess liquid should be removed. Lightly press very wet grated zucchini, but do not wring it dry, because the remaining moisture helps create the cake’s tender crumb.
Can I make this zucchini cake in a 9-inch round pan?
Yes, but the batter will be deeper, so baking usually takes 40 to 50 minutes at 350°F. Use a pan at least 2 inches deep, place it on the center oven rack, and test the middle with a toothpick or thermometer.
Why is my cream cheese frosting runny?
The cream cheese may have been too warm, the frosting may have been overbeaten, or liquid may have been added too quickly. Refrigerate it for 15 to 20 minutes; if it remains loose, beat in additional sifted confectioners’ sugar 1 tablespoon at a time.
Can zucchini cake sit at room temperature?
The unfrosted cake can sit covered at room temperature for up to two days in a cool, dry room. Once topped with cream cheese frosting, refrigerate it and avoid leaving it out for more than two hours.
How do I know when the cake is fully baked?
The center should spring back lightly, and a toothpick should show moist crumbs rather than wet batter. An instant-read thermometer inserted into the center should read approximately 200°F to 205°F (93°C to 96°C).



Write Your Review
No reviews yet. Be the first to share your experience!