The first bite of these bars — soft crumb, cinnamon warmth, the crunch of toasted pecans on top — is the reason I keep a zucchini in the fridge even when it’s not August. They’re not zucchini bread’s sad, wet cousin. They’re the version you actually look forward to.
The short version: Moist, spiced bars with a tender crumb and a pecan crunch that stays crisp — no soggy textures here.
I’ve made these for three different dinner parties this month, and every single time someone asks for the recipe before they’ve finished the first bar. The trick is one extra step you probably skip with zucchini bread. Don’t.
- Serves: 12 bars (as a snack or dessert)
- Hands-On Time: 20 min | Total Time: 45 min
- Difficulty: Easy — perfect for a weekday baking project or a weekend treat
- Cost per serving: ~$0.65
- Calories: ~240 per bar (with glaze)
- Dietary Notes: Vegetarian. Adaptable for dairy-free with a few swaps.
(Photo above: Overhead shot of an 8×8 pan filled with golden-brown zucchini pecan bars, a light brown sugar glaze drizzled in uneven lines across the top, a few whole pecan halves scattered on the finished bars. The light comes from a nearby window, casting soft shadows on a marble counter.)
The Trick That Keeps These Bars From Getting Soggy

Zucchini is 95% water. If you throw shredded zucchini straight into the batter, you get a wet, dense crumb that never fully sets. The fix is brutally simple: squeeze the shredded zucchini in a clean kitchen towel until no more liquid runs out. You’ll lose about a third of the volume — that’s the water you don’t want. Do this, and the bars stay light, moist (not wet), and hold their shape when you cut them.
Second non-negotiable: toast the pecans before folding them in. Raw pecans in a baked bar steam rather than toast, so they end up soft. Toasting them first — just 5 minutes in a dry pan or oven — keeps them crunchy even after the bars cool. That contrast between soft crumb and crunchy nut is the whole point.
These bars are also forgiving. If you overbake them by a minute or two, they’re still good — just less delicate. Which is better than the alternative, which is a soggy mess.
Everything You Need — Plus My Honest Notes
- 1 ½ cups all-purpose flour (180g): Spoon and level. Scooping straight from the bag packs in too much flour and you get dry bars. Use a kitchen scale if you have one.
I don’t have a scale, so I use the spoon-and-level method — it works every time. - 1 teaspoon baking soda: The leavening. Make sure it’s fresh (not open for six months).
- ½ teaspoon salt: Balances the sweetness and brings out the cinnamon.
- 1 teaspoon ground cinnamon: You could add a pinch of nutmeg or cardamom — I’ve done both. But cinnamon alone is the classic.
- 1 cup shredded zucchini (from about 1 medium zucchini): Squeeze it dry. I cannot stress this enough.
My rule: squeeze until the towel feels damp, not soaking. You’ll end up with about ½ cup of dry shreds. - ½ cup unsalted butter, melted (1 stick): Brown butter would work here and add a nutty dimension — I’ve tried it and it’s excellent. But plain melted butter is reliable.
- ¾ cup packed light brown sugar: Adds moisture and a caramel-y depth. Dark brown sugar gives even more flavor, if you have it.
- 1 large egg: Room temperature is best, but straight from the fridge works too — just mix well.
- 1 teaspoon vanilla extract: The real stuff. Imitation makes the whole thing taste like a candle.
- ½ cup chopped pecans, toasted (plus extra for topping): Toast them in a dry skillet over medium heat for 3–4 minutes, stirring, until fragrant. Watch them — they burn fast.
- For the glaze (optional but encouraged): ½ cup powdered sugar, 2 tablespoons milk or heavy cream, ½ teaspoon vanilla, a pinch of salt. Whisk until smooth and drizzle.
Tools You’ll Actually Need
- 8×8-inch baking pan (metal or glass — both work; if using glass, reduce oven temp by 25°F)
- Box grater or food processor with shredding disk
- Clean kitchen towel (for squeezing zucchini)
- Mixing bowls (one for dry, one for wet)
- Whisk and rubber spatula
- Toothpick or cake tester
That’s it. No stand mixer required — a bowl and a whisk are enough.
The Method — No Fancy Skills Required
Read through once before you start. The baking time is short, so have everything measured and ready.
Preheat and prep: Preheat oven to 350°F. Line your 8×8 pan with parchment paper, leaving a little overhang on two sides for easy lifting. Grease the parchment lightly.
- Toast the pecans: Spread the chopped pecans on a small baking sheet or in a dry skillet. Toast at 350°F for 5 minutes, or in the skillet for 3–4 minutes over medium heat, stirring. They should be fragrant and slightly darker. Set aside to cool.
(📸 Photo tip: You’ll know they’re done when you can smell them — it’s unmistakable. Don’t walk away; they go from perfect to burnt in about 30 seconds.) - Shred and squeeze the zucchini: Grate the zucchini on the large holes of a box grater. Place the shreds in the center of your kitchen towel, gather the corners, and twist tightly over the sink. Squeeze firmly — you want as much liquid out as possible. Measure about ½ cup of dry shreds. If you have extra, it’s okay; just squeeze more.
(📸 Photo tip: The towel should be visibly damp after squeezing. If it’s just barely moist, you didn’t squeeze enough. Try again.) - Mix dry ingredients: In a medium bowl, whisk together flour, baking soda, salt, and cinnamon. Set aside.
- Mix wet ingredients: In a large bowl, whisk melted butter and brown sugar until smooth and no lumps remain. Add the egg and vanilla, whisk until combined.
- Combine: Add the dry ingredients to the wet, and fold with a rubber spatula until just barely combined — a few streaks of flour are fine. Fold in the zucchini and toasted pecans (save a handful for topping). Mix gently. Overmixing makes tough bars.
- Bake: Spread the batter evenly into the prepared pan. Sprinkle the reserved pecans on top. Bake for 22–26 minutes, until the edges are golden and a toothpick inserted in the center comes out with a few moist crumbs (not wet batter).
My oven runs hot, so I check at 22 minutes. If the toothpick is clean, you’ve gone a minute too far — but it’s still good. - Cool and glaze: Let the bars cool in the pan on a wire rack for 15 minutes, then lift them out using the parchment overhang and cool completely on the rack (about 30 minutes). While they cool, whisk together the glaze ingredients. Drizzle over the cooled bars. Let the glaze set for 10 minutes before slicing.
Slice into 12 equal bars. A long, sharp knife and a gentle sawing motion give the cleanest cuts.
How I Meal Prep These for the Week
These bars are perfect for Sunday baking. I make a double batch on weekends, and they last through Wednesday (if my friends don’t finish them first). The glaze sets up nicely on day one but stays soft enough not to crack.
- Fridge: Store in an airtight container at room temperature for up to 3 days. In the fridge they last 5 days, but the texture gets slightly denser. Bring to room temp before serving.
- Freezer: Yes! Freeze unglazed bars in a single layer on a baking sheet, then transfer to a freezer bag for up to 3 months. Glaze after thawing.
- Reheat: Microwave a single bar for 10–15 seconds to revive the softness. Or enjoy them cold — they’re still good straight from the fridge.
My Honest Advice After Making These 20 Times
- Don’t skip squeezing the zucchini. I know it’s annoying. I know it adds a step. But without it, you’ll have a pan of wet, dense bars that don’t hold together. I’ve done it both ways. The squeezed version is the one people ask for a second serving of.
- Measure flour correctly. Spoon it into the measuring cup, then level off with a flat edge. Scooping compacts the flour and you’ll get dry, crumbly bars. If you have a scale, 180g is the target.
- Don’t overmix the batter. Once you add the dry ingredients, fold until there’s no more visible flour — that’s enough. Overmixing develops gluten and gives you tough, rubbery bars. They’ll still taste fine, but the texture won’t be as tender.
- Let them cool completely before glazing. Warm bars will melt the glaze into a puddle. I’ve made that mistake twice. Now I wait the full 30 minutes. The glaze sets up to a beautiful, glossy sheen.
- If you overbake by a minute, it’s okay. These are forgiving. A slightly longer bake gives a firmer crumb that some people even prefer. I’d rather have a bar that’s a little too done than a bar that’s underbaked and gooey.
Swaps That Actually Work
- Dairy-Free: Use melted coconut oil or a neutral vegetable oil instead of butter. Replace the milk in the glaze with almond milk or oat milk. The texture is slightly different (a touch less tender), but still very good. My friend who’s dairy-free ate three bars without comment before I told her.
- Gluten-Free: Swap the all-purpose flour for a 1:1 gluten-free baking flour blend. I’ve tested this with King Arthur Measure for Measure and it works perfectly. Don’t use almond flour or coconut flour alone — the results are too dense.
- Nut-Free: Skip the pecans or use sunflower seeds or pumpkin seeds. Toasting seeds adds the same crunch. The bars won’t be “Pecan” bars anymore, but they’ll still be great.
- Add-ins: Shredded carrot (add ½ cup along with the zucchini) turns these into carrot-zucchini bars. Or fold in ½ cup chocolate chips for a sweeter version. My neighbor’s kids prefer the chocolate chip version — they call them “healthy brownies.”
- More spice: Add ½ teaspoon ground ginger and ¼ teaspoon ground cloves for a chai-spiced twist. I do this in fall and it’s exceptional.
Questions I Get About These Bars All the Time
Q: Why did my bars turn out dense and wet in the middle?
A: That’s almost always from not squeezing the zucchini enough. If the towel was barely damp after squeezing, you left too much water in. Next time, really wring it out — you should see liquid dripping into the sink. Another cause: underbaking. The center should feel just set (not jiggly) when you touch it, and a toothpick should come out with a few moist crumbs but no wet batter.
Q: Can I use whole wheat flour or coconut flour instead of all-purpose?
A: Whole wheat flour works, but substitute only up to half the amount — 100% whole wheat makes the bars too dense and dry. Coconut flour cannot be swapped directly; it absorbs vastly more liquid and would require a completely different recipe. I haven’t tested a good coconut flour version, so I don’t recommend it.
Q: How long do these keep? Can I freeze them?
A: At room temperature in an airtight container, they stay fresh for 3 days. In the fridge, up to 5 days (firmer texture). Freeze unglazed bars for up to 3 months: wrap each bar individually in plastic wrap, then place in a freezer bag. Thaw at room temperature and add the glaze afterward. The glaze doesn’t freeze well — it gets grainy.
Q: What do you serve with zucchini pecan bars?
A: They’re great on their own with coffee or tea. For dessert, a dollop of lightly sweetened whipped cream or a scoop of vanilla ice cream makes them feel like a real treat. I’ve also served them on a brunch spread alongside fruit and yogurt — they disappear faster than the scones.
More Recipes My Friends Ask For on Repeat
If these bars caught your attention, here are a few others I make when I want something simple but impressive:
- Brown Butter Chocolate Chip Cookies — The trick is browning the butter; it adds a nuttiness that makes these taste like bakery-level cookies in 15 minutes.
- Lemon Zucchini Loaf — Same zucchini technique, but bright lemon and a tangy glaze. My go-to spring bake.
- Spiced Pecan Banana Bread — Uses up brown bananas and toasty pecans. It’s the only banana bread recipe I use now.
These bars have become my default when someone says “bring dessert” and I want something that looks like I put in more effort than I actually did. The golden top, the pecan crunch, the glaze that catches the light — it’s a plate that reads as thoughtful, not fussy.
If you make them, drop a comment below — I always love hearing how they turn out for you. Or tag me on Instagram so I can see your version.
📌 Pin these Zucchini Pecan Bars for your next fall baking afternoon — they’re the kind of simple dessert that disappears before you’ve had time to cut a second row.

Zucchini Pecan Bars That Stay Moist (Not Soggy)
Equipment
- 8×8-inch baking pan
- Box grater
- Clean Kitchen Towel
- Mixing bowls
- Whisk
- Rubber Spatula
- Toothpick or cake tester
Ingredients
Bars
- 1 ½ cups all-purpose flour (180g, spooned and leveled)
- 1 teaspoon baking soda
- ½ teaspoon salt
- 1 teaspoon ground cinnamon
- 1 cup shredded zucchini (from 1 medium, squeezed dry to yield ~½ cup)
- ½ cup unsalted butter, melted (1 stick)
- ¾ cup packed light brown sugar
- 1 large egg
- 1 teaspoon vanilla extract
- ½ cup chopped pecans, toasted (plus extra for topping)
Glaze (optional)
- ½ cup powdered sugar
- 2 tablespoons milk or heavy cream
- ½ teaspoon vanilla extract
- 1 pinch salt
Instructions
- Preheat oven to 350°F. Line an 8×8-inch baking pan with parchment paper, leaving overhang on two sides. Grease lightly.
- Toast the pecans: Spread chopped pecans on a small baking sheet and toast in the oven for 5 minutes, or in a dry skillet over medium heat for 3-4 minutes, stirring until fragrant. Set aside to cool.
- Shred and squeeze the zucchini: Grate zucchini on the large holes of a box grater. Place in a clean kitchen towel, gather corners, and twist tightly over the sink to squeeze out as much liquid as possible. Measure about ½ cup of dry shreds.
- Mix dry ingredients: In a medium bowl, whisk together flour, baking soda, salt, and cinnamon.
- Mix wet ingredients: In a large bowl, whisk melted butter and brown sugar until smooth. Add egg and vanilla, whisk until combined.
- Combine: Add dry ingredients to wet, folding with a rubber spatula until just barely combined (a few streaks of flour are fine). Fold in squeezed zucchini and toasted pecans, reserving a handful for topping. Do not overmix.
- Spread batter evenly into prepared pan. Sprinkle reserved pecans on top. Bake for 22-26 minutes, until edges are golden and a toothpick inserted in the center comes out with a few moist crumbs (not wet batter). Let cool in pan on a wire rack for 15 minutes, then lift out using parchment and cool completely on rack (about 30 minutes).
- For the glaze: Whisk together powdered sugar, milk, vanilla, and a pinch of salt until smooth. Drizzle over cooled bars. Let set 10 minutes before slicing into 12 bars.





