Updated Oct 8, 2026· 9 min read

Key takeaways

  • 2 cups finely grated zucchini, drained as described below
  • 2 cups all-purpose flour, about 240 grams
  • 1 teaspoon baking powder
  • 1 teaspoon baking soda
  • 1 teaspoon ground cinnamon
  • 1/2 teaspoon fine salt
  • 1/4 teaspoon ground nutmeg, optional
  • 3 large eggs, room temperature if possible
  • 1 cup granulated sugar
  • 1/2 cup packed light brown sugar
  • 3/4 cup neutral oil, such as canola or vegetable oil
  • 2 teaspoons vanilla extract
  • 1/2 cup chopped walnuts or pecans, optional

The best zucchini bar recipe uses 2 cups of finely grated zucchini, drained by hand until it weighs about 8 ounces, and bakes in a 9-by-13-inch metal pan at 350°F for 25–32 minutes. The result is a moist, tender bar that is sturdy enough for cream cheese frosting without becoming wet or gummy.

For the most reliable texture, do not leave the zucchini undrained and do not squeeze it completely dry like frozen spinach. Remove enough liquid to prevent sogginess while retaining a little moisture for the batter. This recipe includes exact draining instructions, adjusted pan sizes, doneness tests, and several frosting choices.

Zucchini Bar Recipe at a Glance

Detail Recommended specification
Yield 24 small bars or 16 generous bars
Primary pan 9-by-13-inch light-colored metal pan
Oven temperature 350°F conventional oven or 325°F convection
Baking time 25–32 minutes in a 9-by-13-inch pan
Zucchini 2 cups finely grated, approximately 8 ounces after draining
Texture Moist, soft, and cake-like rather than dense or brownie-like
Best frosting Cream cheese frosting for tang, or vanilla buttercream for a firmer finish

Ingredients

For the zucchini bars

  • 2 cups finely grated zucchini, drained as described below
  • 2 cups all-purpose flour, about 240 grams
  • 1 teaspoon baking powder
  • 1 teaspoon baking soda
  • 1 teaspoon ground cinnamon
  • 1/2 teaspoon fine salt
  • 1/4 teaspoon ground nutmeg, optional
  • 3 large eggs, room temperature if possible
  • 1 cup granulated sugar
  • 1/2 cup packed light brown sugar
  • 3/4 cup neutral oil, such as canola or vegetable oil
  • 2 teaspoons vanilla extract
  • 1/2 cup chopped walnuts or pecans, optional

For cream cheese frosting

  • 8 ounces full-fat cream cheese, softened but not warm
  • 1/2 cup unsalted butter, softened
  • 3 cups powdered sugar, sifted if lumpy
  • 1 teaspoon vanilla extract
  • Pinch of salt

The oil keeps the bars soft after refrigeration, while brown sugar contributes moisture and a mild caramel flavor. If you prefer less sweetness, reduce the granulated sugar to 3/4 cup; do not reduce the flour or eggs, because those changes affect structure.

How to Drain Zucchini Precisely

Draining zucchini means removing excess free water after grating while leaving enough moisture to produce tender bars. The most repeatable method is to weigh the zucchini before and after squeezing rather than relying only on visual judgment.

  • Step 1: Wash and trim. Rinse the zucchini, dry it, and cut off both ends. There is no need to peel small or medium zucchini.
  • Step 2: Grate finely. Use the small or medium holes of a box grater. Very large shreds release liquid unevenly and can leave noticeable strands in the finished bars.
  • Step 3: Measure the grated zucchini. Start with approximately 3 cups of loosely packed grated zucchini. This usually produces about 2 cups after draining, but water content varies considerably.
  • Step 4: Rest for 5 minutes. Place the zucchini in a bowl and let it stand. This allows liquid to collect naturally rather than forcing you to over-squeeze it.
  • Step 5: Transfer to a clean kitchen towel. Gather the towel around the zucchini and twist it over a sink or bowl. A thin cotton towel works better than a thick terry towel, which can hold onto shreds.
  • Step 6: Squeeze in stages. Press firmly for about 15 seconds, loosen the towel, redistribute the zucchini, and squeeze again. Stop when the zucchini feels moist but no longer drips continuously.
  • Step 7: Weigh the result. Aim for approximately 8 ounces, or 225 grams, of drained zucchini for this recipe. If you do not have a scale, use 2 cups lightly packed after squeezing.

Do not salt the zucchini during draining. Salt draws out additional water and can make the bars taste overly seasoned. If your zucchini is exceptionally wet and still releases liquid after two squeezing cycles, drain it once more; if it is unusually dry, add 1 tablespoon of its reserved liquid to the batter.

How to Make This Zucchini Bar Recipe

  • Step 1: Prepare the pan. Heat the oven to 350°F. Grease a 9-by-13-inch pan and line the bottom with parchment, leaving two overhanging edges for lifting. The parchment makes cutting and frosting easier.
  • Step 2: Combine the dry ingredients. Whisk the flour, baking powder, baking soda, cinnamon, nutmeg, and salt in a medium bowl. Mixing them first distributes the leaveners evenly and prevents concentrated pockets of baking soda.
  • Step 3: Mix the wet ingredients. In a large bowl, whisk the eggs, granulated sugar, brown sugar, oil, and vanilla until smooth. The mixture does not need to be beaten to a foam.
  • Step 4: Add the zucchini. Stir the drained zucchini into the wet mixture. Separate any compact clumps with a fork so the zucchini spreads throughout the batter.
  • Step 5: Fold in the dry ingredients. Add the flour mixture and stir just until no dry streaks remain. Overmixing develops gluten and can make the bars chewy rather than tender.
  • Step 6: Add nuts if using. Fold in the chopped walnuts or pecans at the end. For an even distribution, toss the nuts with 1 teaspoon of the flour mixture before adding them.
  • Step 7: Bake. Spread the batter evenly in the prepared pan. Bake for 25–32 minutes, rotating the pan once after 18 minutes if your oven has hot spots.
  • Step 8: Cool completely. Let the bars cool in the pan for 20 minutes, then use the parchment to transfer them to a rack. Cool fully before frosting; warm bars can melt the frosting and make it slide.

Pan-Size Adjustments and Baking Times

Pan area changes the thickness of the batter, so baking time should change with it. The quantities below assume the full recipe and a metal pan with straight sides. Glass pans often require reducing the oven temperature by 25°F and adding several minutes, while dark nonstick pans can brown more quickly.

Pan size Approximate batter depth Baking temperature Estimated time Expected result
9-by-13 inches About 1 inch 350°F 25–32 minutes Classic thin bars, easiest to frost and cut
9-by-9 inches About 1.4 inches 350°F 32–40 minutes Thicker, softer squares
8-by-8 inches About 1.7 inches 350°F 38–48 minutes Very thick bars; center needs careful checking
10-by-15-inch jelly-roll pan About 0.8 inch 350°F 20–26 minutes Thin, easy-to-cut party bars
12 standard muffin cups Individual portions 350°F 18–24 minutes Cupcake-style zucchini cakes

For a 9-by-9-inch or 8-by-8-inch pan, do not fill it more than two-thirds full. If the pan is smaller than the recommended size and has low sides, reserve excess batter for a few cupcakes rather than risking overflow.

How to Tell When the Bars Are Done

Begin checking at the early end of the time range. The center should spring back lightly when pressed, and a wooden pick inserted in the middle should come out with a few moist crumbs but no wet batter. The edges may pull away from the pan by about 1/8 inch, but substantial separation usually indicates overbaking.

For the most accurate result, an instant-read thermometer should register approximately 200–210°F in the center of the cake portion. This is a practical doneness check, not a substitute for judging texture. If the center collapses after cooling, the bars were probably underbaked or contained too much unremoved zucchini liquid.

Frosting Options

Cream cheese frosting

Beat the softened cream cheese and butter until smooth, then add the powdered sugar in three additions. Mix in vanilla and salt. This amount makes a moderately thick layer for a 9-by-13-inch pan. For a less sweet frosting, use 2 1/2 cups powdered sugar, but expect a softer finish.

Vanilla buttercream

Beat 1/2 cup softened unsalted butter until creamy, then gradually mix in 2 1/2 cups powdered sugar, 2 tablespoons milk or cream, 2 teaspoons vanilla, and a pinch of salt. Buttercream is the better choice when the bars will sit at room temperature for a few hours because it is firmer than cream cheese frosting.

Maple glaze

Whisk 1 1/2 cups powdered sugar with 2 tablespoons pure maple syrup and 1–2 tablespoons milk. Drizzle it over completely cooled bars. A glaze uses less dairy, cuts more cleanly, and highlights the cinnamon, but it does not provide the thick frosting layer associated with traditional zucchini bars.

Simple lemon icing

Mix 1 1/2 cups powdered sugar with 2 tablespoons lemon juice and enough water to create a pourable icing. The acidity provides contrast to the sweet, moist cake. Apply it in a thin layer so it sets rather than pooling in the center.

Common Mistakes and Ownership Realities

  • Using volume alone for zucchini: Two cups of very wet zucchini can contain much more water than two cups of well-drained zucchini. Weighing the drained amount gives the most consistent result.
  • Over-squeezing: Completely dry zucchini can produce crumbly bars. Stop when dripping has slowed to occasional drops and the shreds still feel moist.
  • Overmixing: Once flour is added, mix only until incorporated. A few small lumps are preferable to a tough crumb.
  • Frosting warm bars: Cream cheese frosting softens quickly on a warm surface. Cool the bars for at least 1 hour, or refrigerate them for 20–30 minutes before frosting.
  • Storing uncovered: The exposed edges dry first. Store frosted bars in an airtight container in the refrigerator for up to 4 days.
  • Cutting immediately: The crumb firms as it cools. For clean squares, chill the frosted slab for 30 minutes and wipe the knife between cuts.

Frosted bars with cream cheese frosting should remain refrigerated. Let them stand at room temperature for 15–20 minutes before serving for a softer texture. Unfrosted bars can be wrapped tightly and frozen for up to 2 months; thaw them in their wrapping to reduce condensation on the surface.

Worked Example: Adjusting the Recipe for a 9-by-9-Inch Pan

A 9-by-13-inch pan has 117 square inches of surface area, while a 9-by-9-inch pan has 81 square inches. Dividing 117 by 81 gives approximately 1.44, so the full recipe will be about 44% deeper in the smaller pan. That is why the estimated baking time increases from roughly 25–32 minutes to 32–40 minutes.

For a thinner 9-by-9-inch version, use 75% of every ingredient: 1 1/2 cups flour, 1 1/2 cups drained zucchini, 2 eggs plus 1 tablespoon beaten egg, 3/4 cup combined sugars, and 9 tablespoons oil. Start checking at 25 minutes. This calculation preserves a thickness closer to the original rather than simply changing the pan and hoping the center cooks evenly.

Frequently Asked Questions

Should zucchini be peeled for zucchini bars?

No. The skin of a small or medium zucchini is tender and adds color without creating a tough texture. Peel only very large zucchini if the skin is thick or waxy, and remove the seedy central section if it is spongy.

Can I use frozen zucchini?

Yes, but thaw it completely and drain it more thoroughly than fresh zucchini. Frozen zucchini releases substantial liquid after thawing, so squeeze it in a towel until it weighs about 8 ounces before adding it to the batter.

Why are my zucchini bars soggy in the middle?

The most common causes are excess zucchini liquid, an undersized pan, or removing the bars from the oven too early. Check the center with a wooden pick and confirm that the drained zucchini is close to 225 grams. If the top is browning before the center is done, tent the pan loosely with foil and continue baking.

Can I replace the oil with butter?

You can replace the 3/4 cup oil with 3/4 cup melted and cooled unsalted butter. The bars will have a richer flavor but may be slightly firmer after refrigeration because butter solidifies when cold.

How should zucchini bars be stored?

Store bars with cream cheese frosting in an airtight container in the refrigerator for up to 4 days. Unfrosted bars can remain covered at room temperature for up to 2 days, or they can be frozen for up to 2 months when tightly wrapped.

Can I make this zucchini bar recipe less sweet?

Reduce the granulated sugar from 1 cup to 3/4 cup while keeping the brown sugar unchanged. Avoid cutting the total sugar by more than 1/4 cup, because sugar contributes moisture and tenderness as well as sweetness.

A
affadmin
We compare specs, materials and verified owner reviews before a product earns a spot. Rankings are never paid.
Affiliate disclosure. As an Amazon Associate we earn from qualifying purchases at no extra cost to you. Prices accurate as of the date shown.