Food

Chocolate Zucchini Squares: Easy Bars

By Hayride Live · Updated · 4 min read

Chocolate zucchini squares are moist, fudgy bar cookies that use shredded zucchini to add moisture without a vegetable taste. The direct answer is yes, you can bake them as a quick bread-style bar, and the detail most people get wrong is that you should not squeeze the zucchini dry—the moisture is what keeps the squares tender.

These squares are a practical way to use up garden zucchini, and they taste like a cross between a brownie and a chocolate snack cake. They are sturdy enough for lunchboxes and potlucks, and they freeze well. The batter comes together in one bowl, and the whole pan bakes in about half an hour.

Pick the Pan and Preheat Before You Grate

Use a 9×13-inch (23×33 cm) metal or glass baking pan for standard squares. A metal pan gives a slightly crisper edge; glass bakes a bit slower in the center, so check at the longer end of the time range. Preheat the oven to 350°F (175°C). Grease the pan or line it with parchment paper that overhangs two sides—the overhang makes lifting the whole slab out much easier for clean cuts.

Grate the zucchini on the large holes of a box grater. You need about 2 cups (240 g) of loosely packed shredded zucchini, which is usually one medium zucchini (about 8 oz / 225 g). Do not peel it; the green flecks disappear into the dark batter, and the skin holds the shreds together. Do not salt or squeeze it. The zucchini’s water content is what replaces some of the fat and keeps the crumb soft.

Mix the Batter in One Bowl

Whisk the dry ingredients first so the cocoa and leavening are evenly distributed. In a large bowl, whisk together 1 ¾ cups (220 g) all-purpose flour, ½ cup (45 g) unsweetened cocoa powder, 1 teaspoon baking soda, ½ teaspoon baking powder, and ½ teaspoon salt. Set that aside.

In a second bowl or the same one (just push the dry mix aside), beat together ¾ cup (170 g) melted butter or neutral oil, 1 cup (200 g) granulated sugar, ½ cup (110 g) packed brown sugar, and 2 large eggs. Add 1 teaspoon vanilla extract. Stir in the grated zucchini—it will look like a lot, but it shrinks as it bakes. Pour the wet mixture into the dry ingredients and fold until just combined. Do not overmix; a few streaks of flour are fine.

If you want a deeper chocolate flavor, add ½ cup (90 g) of semisweet chocolate chips or chopped chocolate to the batter. For a nutty crunch, fold in ½ cup (60 g) of chopped walnuts or pecans. Both are optional, but they add texture that contrasts with the soft crumb.

Bake Until the Center Is Set, Not Just the Edges

Spread the batter evenly into the prepared pan. Bake at 350°F (175°C) for 25–30 minutes. The squares are done when a toothpick inserted into the center comes out with only a few moist crumbs attached—not wet batter. The edges will pull away from the pan slightly, and the top will look set and slightly cracked. If you use a glass pan, start checking at 28 minutes; metal pans often finish at 25 minutes.

Let the pan cool completely on a wire rack before cutting. Warm squares crumble, so patience pays off. Once cool, lift the slab out using the parchment overhang, then cut into 24 squares (about 2 inches / 5 cm each). For cleaner cuts, wipe the knife between slices.

Store and Freeze Without Losing Moisture

Keep the squares in an airtight container at room temperature for up to 3 days. They stay moist because of the zucchini, but they can get sticky if stacked warm, so cool fully first. For longer storage, wrap the uncut slab or individual squares tightly in plastic wrap, then place in a freezer bag. They freeze for up to 3 months. Thaw at room temperature for about 30 minutes, or warm a square in the microwave for 10–15 seconds.

If you refrigerate them, they will firm up but also dry out faster—bring them to room temperature before serving. The zucchini’s moisture also means these squares are less likely to dry out than standard brownies, but they are not as dense as a true brownie; they are more like a snack cake.

Swap Ingredients Without Changing the Bake Time

You can replace up to half the all-purpose flour with whole wheat flour; the squares will be slightly denser and more rustic. For a dairy-free version, use a neutral oil (like canola or sunflower) instead of butter and skip the chocolate chips if they contain milk—check the label. To make them egg-free, use a flax egg (1 tablespoon ground flaxseed mixed with 3 tablespoons water, left to thicken for 5 minutes) for each egg; the texture will be a bit more tender and slightly less cakey.

If you have more zucchini than you need, grate and freeze it in 2-cup portions in freezer bags. Thaw in the fridge, and do not drain the liquid—add it straight to the batter. The bake time stays the same.

Chocolate Zucchini Squares for Big Batches and Kids

To double the recipe, use two 9×13-inch pans rather than one larger pan, because a single huge pan will bake unevenly. Bake both pans on the same rack if they fit, or swap racks halfway through. The time stays about the same, but check each pan individually. For smaller kids, cut the squares into 1-inch (2.5 cm) bites—they are easy to pick up and not too crumbly. These squares are also a good way to use up the last of a large zucchini; just measure the grated amount and adjust the pan size if you have less than 2 cups (use an 8×8-inch / 20×20 cm pan and reduce the bake time to 20–25 minutes).

If you are baking with children, let them stir the dry ingredients and add the zucchini—it is a safe task with no hot surfaces. The oven step is for an adult. The finished squares are not overly sweet, so they work as an after-school snack without a frosting.

Spotted a mistake? Tell us and we will correct it. How we write and check articles.