Zucchini Cake Recipe
I love making this zucchini cake for my kids and serving it with fresh fruit and a glass of milk. Cinnamon, nutmeg, and grated zucchini give a familiar homemade cake a soft texture and a gently spiced flavor.
This version uses all-purpose flour, butter, granulated sugar, and brown sugar. You can keep it simple or choose the optional nuts, raisins, or chocolate chips for extra flavor and texture. A little cream cheese frosting makes a lovely finish.
The batter comes together in a few straightforward steps and bakes in a 9×13-inch pan. Give the cake plenty of time to cool before frosting, then cut it into easy squares for sharing.

Why This Cake Is Great
- Grated zucchini blends into the batter and keeps the crumb moist without giving the cake a strong vegetable flavor.
- Cinnamon and nutmeg bring a warm aroma that works with either nuts, chocolate, or a simple unfrosted slice.
- A single rectangular pan keeps assembly easy. There are no layers to stack or trim before serving.
- The optional cream cheese frosting is mixed in one bowl and spread directly over the cooled cake.
- The same batter can stay plain or include the listed optional additions, so you can choose the texture your family enjoys.
- Twelve slices are easy to portion, and the cake can be refrigerated for a convenient make-ahead dessert.
What Is the Best Zucchini?
Choose firm small or medium zucchini with smooth skin and no soft spots. You do not need to peel tender zucchini; simply wash it, trim the ends, and grate it. The little green flecks are part of the cake. Very large zucchini may have a tough center and large seeds, which are better removed before grating.
The ingredient list gives about one medium zucchini as a shopping guide, but sizes vary. Measure the grated amount rather than assuming one vegetable will always be enough. This recipe calls for excess moisture to be squeezed away, so use a light squeeze and leave the shreds moist. Wringing them until completely dry can make the batter too stiff.
Ingredients
- 2 cups all-purpose flour
- 1 1/2 teaspoons baking powder
- 1/2 teaspoon baking soda
- 1/2 teaspoon salt
- 1 teaspoon ground cinnamon
- 1/2 teaspoon ground nutmeg
- 1/2 cup unsalted butter, softened
- 1 cup granulated sugar
- 1/2 cup brown sugar, packed
- 2 large eggs
- 1 teaspoon vanilla extract
- 1 1/2 cups grated zucchini (about 1 medium zucchini, squeezed to remove excess moisture)
- 1/2 cup chopped walnuts or pecans (optional)
- 1/2 cup raisins or chocolate chips (optional)
For the Frosting (optional):
- 4 oz cream cheese, softened
- 2 tablespoons unsalted butter, softened
- 1 teaspoon vanilla extract
- 2 cups powdered sugar
- 1-2 tablespoons milk or heavy cream
Spoon the flour into the measuring cup and level it without packing. Pack the brown sugar as the list specifies. Keep the butter soft enough to press but not melted, and check that the baking powder and baking soda are fresh. Full-fat block cream cheese makes a more dependable frosting than a soft spread from a tub.
Kitchen Equipment You Will Need
As an Amazon Associate I earn from qualifying purchases.
- 9×13-inch baking pan
- Parchment paper
- Mixing bowls
- Electric hand mixer
- Whisk
- Silicone spatula
- Box grater
- Chef knife
- Cutting board
- Clean kitchen towel
- Measuring cups
- Measuring spoons
- Cake tester
- Wire cooling rack
- Oven mitts
- Offset spatula
- Covered cake container
- Freezer-safe containers
How To Make Zucchini Cake
Allow about 25 minutes of active preparation, including the optional frosting, about 40 minutes baking, and about 2 hours cooling. The estimated total is 3 hours 5 minutes. Start with the softened butter called for in the ingredients; extra time to soften cold butter is not included. Cooling depends on the pan and room temperature, so a cool cake matters more than the clock.
Step 1
Preheat the oven to 350°F (175°C) with a rack in the center. Line a 9×13-inch baking pan with parchment paper. Wash and trim the zucchini, grate it, and lightly squeeze away excess free liquid with a clean kitchen towel. Measure 1 1/2 cups without packing it hard; the shreds should still feel moist. Have the cake butter softened before mixing.
Step 2
In a medium bowl, whisk together the 2 cups all-purpose flour, baking powder, baking soda, salt, cinnamon, and nutmeg until evenly mixed. Set aside. Keep the optional frosting ingredients separate from the cake ingredients, since both groups contain butter and vanilla.
Step 3
In a large bowl, beat the 1/2 cup softened butter, granulated sugar, and packed brown sugar with an electric mixer for about 3 to 4 minutes, until lighter and fluffy. Scrape the bowl with a spatula so the mixture is evenly creamed.
Step 4
Beat in the eggs one at a time, mixing until each is incorporated before adding the next. Mix in the cake’s 1 teaspoon vanilla extract. Scrape the bottom and sides of the bowl once more so no butter mixture remains unmixed.
Step 5
Add the dry ingredients gradually on low speed, mixing only until no large dry pockets remain. Stop and scrape the bowl as needed. Do not beat the batter for a long time after adding the flour, because that can make the crumb tough.
Step 6
Gently fold in the measured grated zucchini with a spatula until evenly distributed and the last streaks of flour disappear. If using them, fold in the 1/2 cup chopped walnuts or pecans and the 1/2 cup raisins or chocolate chips. These are two optional choices, not a separate half cup of every item.
Step 7
Spread the batter evenly in the prepared pan, including the corners. Bake for 35 to 40 minutes, checking at 35 minutes. The top should spring back lightly and a toothpick inserted near the center should come out clean or with a few moist crumbs, not wet batter. Avoid testing through a chocolate chip. Continue baking as needed if the center is not done.
Step 8
Cool the cake completely in its pan on a wire rack, allowing about 2 hours or longer if it is still warm. Keep the frosting ingredients refrigerated until near the time you need them, then soften briefly until workable. For the optional frosting, beat the 4 oz cream cheese and 2 tablespoons butter until smooth. Beat in the 2 cups powdered sugar gradually, then the frosting’s 1 teaspoon vanilla. Add the listed milk or cream a little at a time, starting with 1 tablespoon and using up to 2 tablespoons only as needed. Spread over the completely cool cake.
Step 9
Cut into 12 slices and serve with tea, coffee, or milk. Refrigerate the cream-cheese-frosted cake promptly in a covered container. Keep its time out of refrigeration under 2 hours, or under 1 hour above 90°F. The estimated total of 3 hours 5 minutes includes preparation, baking, and about 2 hours cooling; a warm cake needs more cooling before frosting.

Notes
- Use the measured zucchini amount. Adding another handful may seem harmless, but it changes the moisture in a batter that already contains vegetables.
- A light squeeze removes free liquid while leaving the shreds supple. Do not twist the towel until the zucchini becomes a dry, compact ball.
- Cream the butter and sugars before adding eggs. This step is different from the brief mixing needed after the flour goes in.
- Scrape the bowl during mixing so dense butter or dry flour does not hide underneath the batter.
- Fold optional additions in gently and stop once they are distributed. Vigorous beating at this stage can make the cake firm.
- Check the center for doneness rather than judging only the brown edges. A clean tester from one dry corner does not prove the middle is baked.
- Allow the cake to cool completely before frosting. Even a slightly warm center can soften the cream cheese mixture and make it slide.
Ingredients You Can Add
- Walnuts: Choose them for the listed optional 1/2 cup nut portion and chop them into small pieces.
- Pecans: Use them instead of walnuts for a softer, buttery crunch, keeping the same optional nut amount.
- Raisins: Choose the listed optional 1/2 cup for chewy sweetness throughout the cake.
- Chocolate chips: Use these instead of the raisins for little pockets of chocolate in the spiced crumb.
- Pumpkin seeds: They can take the place of the optional nuts for a different crunch, if suitable for the people eating the cake.
- Orange zest: A little finely grated zest can brighten the spices. Wash the orange and avoid grating the bitter white layer.
What To Serve with Zucchini Cake
I like to enjoy this cake with my kids alongside fresh fruit and a glass of milk. Tea or coffee works well too, especially with a plain slice. Keep the serving simple so the warm spices and tender crumb have room to shine.
A little vanilla ice cream or plain Greek yogurt is another lovely choice. If you are putting together a small dessert spread, Lemon Blueberry Loaf Cake adds a brighter fruit flavor alongside this softly spiced cake.
For another vegetable-based bake, try Lloyds Carrot Cake. Or save Plum Cake for a day when you have fresh plums to use. These are separate desserts to enjoy on another occasion, rather than additions to this batter.
Variations and Swaps
- Plain cake: Leave out both optional additions for a soft, even crumb that is easy to slice.
- Unfrosted cake: Skip the optional topping when you want a simpler snack alongside coffee or milk.
- Nutty cake: Add only the listed nut portion and leave out raisins or chocolate chips.
- Raisin cake: Use the dried-fruit option and omit the nuts for a chewy texture without their crunch.
- Chocolate-chip cake: Choose chips instead of raisins; the baking temperature and pan size stay the same.
- Mixed texture: Use one nut choice and one raisin-or-chip choice, keeping each within its listed 1/2 cup amount.
- Gentler spice: Omit the nutmeg if you prefer a softer cinnamon flavor. Keep the rest of the base formula unchanged.
- Small party pieces: Bake the same cake in the same pan, then cut smaller squares after cooling. The card’s 12 slices describe the standard portions.

Storage
Store the cream-cheese-frosted cake covered in the refrigerator at 40°F or below and use within 3 to 4 days. Refrigerate promptly after frosting and keep cumulative serving time out under 2 hours, or under 1 hour above 90°F. Even though the frosting contains sugar, this recipe is not intended for room-temperature storage. Unfrosted cake can be kept airtight at cool room temperature for up to 2 days, or refrigerated.
For longer storage, freeze completely cooled unfrosted pieces in airtight freezer-safe containers for up to 3 months for best quality. Separate pieces with parchment if stacking them. Thaw covered in the refrigerator before frosting or serving. Freezing individual portions makes it easier to take out just what you need without repeatedly warming and chilling the entire cake.
FAQ
Do I need to peel the zucchini?
No, tender skin can stay on. Wash and trim the zucchini, then grate it. If a very large vegetable has a tough, seedy center, remove that part and measure the usable shreds.
Can I use frozen zucchini?
Fresh zucchini is the clearest choice for this recipe. Frozen shreds release more water after thawing, so texture can vary. If using them, thaw in the refrigerator, drain excess liquid, and measure the moist shreds without packing tightly.
Can I reduce the sugar or use honey?
That changes more than sweetness: sugar affects texture and moisture, while honey also adds liquid. The written recipe uses granulated and brown sugar. For a less sweet serving, leave off the optional frosting instead of changing the batter.
Can I substitute whole wheat flour?
Whole wheat flour absorbs liquid differently and can make this cake denser. The base recipe uses all-purpose flour; a complete swap would need its own testing. The same caution applies to removing eggs or using a gluten-free blend.
Why is my cake dry?
Too much flour, very dry squeezed zucchini, or overbaking can all contribute. Measure carefully, leave the zucchini shreds moist, and begin checking at 35 minutes. Ovens vary, so use the center’s doneness cues.
Why is the frosting runny?
Warm cream cheese, melted butter, too much milk, or a warm cake can soften it. Use workable but not melted ingredients, add the milk gradually, and wait for the cake to cool completely. Refrigerate the finished cake promptly.

Short Description
A softly spiced zucchini sheet cake with optional nuts, raisins, or chocolate chips and an optional cream cheese frosting. Bake in one pan, cool completely, and slice into 12 portions.
Zucchini Cake Recipe
Course: DessertCuisine: AmericanDifficulty: Easy12
slices25
minutes40
minutes3
hours5
minutesA softly spiced zucchini sheet cake with optional nuts, raisins, or chocolate chips and an optional cream cheese frosting. Bake in one pan, cool completely, and slice into 12 portions.
Ingredients
2 cups all-purpose flour
1 1/2 teaspoons baking powder
1/2 teaspoon baking soda
1/2 teaspoon salt
1 teaspoon ground cinnamon
1/2 teaspoon ground nutmeg
1/2 cup unsalted butter, softened
1 cup granulated sugar
1/2 cup brown sugar, packed
2 large eggs
1 teaspoon vanilla extract
1 1/2 cups grated zucchini (about 1 medium zucchini, squeezed to remove excess moisture)
1/2 cup chopped walnuts or pecans (optional)
1/2 cup raisins or chocolate chips (optional)
- For the Frosting (optional):
4 oz cream cheese, softened
2 tablespoons unsalted butter, softened
1 teaspoon vanilla extract
2 cups powdered sugar
1-2 tablespoons milk or heavy cream
Directions
- Preheat the oven to 350°F (175°C) with a rack in the center. Line a 9×13-inch baking pan with parchment paper. Wash and trim the zucchini, grate it, and lightly squeeze away excess free liquid with a clean kitchen towel. Measure 1 1/2 cups without packing it hard; the shreds should still feel moist. Have the cake butter softened before mixing.
- In a medium bowl, whisk together the 2 cups all-purpose flour, baking powder, baking soda, salt, cinnamon, and nutmeg until evenly mixed. Set aside. Keep the optional frosting ingredients separate from the cake ingredients, since both groups contain butter and vanilla.
- In a large bowl, beat the 1/2 cup softened butter, granulated sugar, and packed brown sugar with an electric mixer for about 3 to 4 minutes, until lighter and fluffy. Scrape the bowl with a spatula so the mixture is evenly creamed.
- Beat in the eggs one at a time, mixing until each is incorporated before adding the next. Mix in the cake’s 1 teaspoon vanilla extract. Scrape the bottom and sides of the bowl once more so no butter mixture remains unmixed.
- Add the dry ingredients gradually on low speed, mixing only until no large dry pockets remain. Stop and scrape the bowl as needed. Do not beat the batter for a long time after adding the flour, because that can make the crumb tough.
- Gently fold in the measured grated zucchini with a spatula until evenly distributed and the last streaks of flour disappear. If using them, fold in the 1/2 cup chopped walnuts or pecans and the 1/2 cup raisins or chocolate chips. These are two optional choices, not a separate half cup of every item.
- Spread the batter evenly in the prepared pan, including the corners. Bake for 35 to 40 minutes, checking at 35 minutes. The top should spring back lightly and a toothpick inserted near the center should come out clean or with a few moist crumbs, not wet batter. Avoid testing through a chocolate chip. Continue baking as needed if the center is not done.
- Cool the cake completely in its pan on a wire rack, allowing about 2 hours or longer if it is still warm. Keep the frosting ingredients refrigerated until near the time you need them, then soften briefly until workable. For the optional frosting, beat the 4 oz cream cheese and 2 tablespoons butter until smooth. Beat in the 2 cups powdered sugar gradually, then the frosting’s 1 teaspoon vanilla. Add the listed milk or cream a little at a time, starting with 1 tablespoon and using up to 2 tablespoons only as needed. Spread over the completely cool cake.
- Cut into 12 slices and serve with tea, coffee, or milk. Refrigerate the cream-cheese-frosted cake promptly in a covered container. Keep its time out of refrigeration under 2 hours, or under 1 hour above 90°F. The estimated total of 3 hours 5 minutes includes preparation, baking, and about 2 hours cooling; a warm cake needs more cooling before frosting.
Notes
- Total is an estimate: 25 minutes active preparation, about 40 minutes baking, and about 2 hours cooling. Cool completely before frosting, even if more time is needed.
- Measure 1 1/2 cups moist grated zucchini after lightly squeezing away excess free liquid; do not wring it dry.
- The 1/2 cup nuts and 1/2 cup raisins or chocolate chips are optional groups; do not add a separate half cup of each choice.
- Keep the cream-cheese-frosted cake refrigerated at 40°F or below and use within 3 to 4 days. Keep serving time out under 2 hours, or 1 hour above 90°F.
