Chocolate-Chip-Pecan Cookie Bars
Chocolate chip pecan cookie bars have the buttery, chewy bite of a cookie in an easy-to-slice pan. Toasted pecans add a warm, nutty crunch, while semisweet chocolate chips balance the brown and granulated sugars.
The bars bake in a 9-by-13-inch pan and make 32 servings, so they are handy for bake sales, potlucks, and cookie trays. Plan for about 60 minutes total, including cooling before you cut them.
Why you’ll love it
Why This Chocolate Chip Pecan Cookie Bars Recipe Works
A few small choices give these bars their balance of crisp edges, a tender center, and plenty of nutty chocolate flavor.
- Toasted pecans taste richer. A short toast in the oven deepens their flavor and helps them stay crisp in the soft cookie dough. Let them cool before mixing them in.
- Butter and oil work together. Butter brings the familiar flavor of a cookie, while canola oil helps keep the bars tender. Creaming both with the sugars distributes the fat evenly.
- Two sugars add balance. Granulated sugar supports a lightly crisp edge, and brown sugar contributes moisture and a deeper caramel note.
- Whole wheat pastry flour stays tender. Its finer texture suits a soft bar better than a coarser whole wheat flour. Mixing the dry ingredients in at low speed also helps avoid a tough result.
- A single pan makes serving simple. Pressing the dough into an even layer lets it bake uniformly, and the slab can be cut into 32 neat bars after it cools.
What you need
Ingredients You’ll Need
These bars use familiar cookie ingredients, with toasted pecans for extra crunch. Measure the flour carefully so the dough stays tender.
- Pecans: One cup, toasted and chopped. Toasting brings out their flavor; let them cool before adding them to the dough.
- Unsalted butter: Four tablespoons, softened. Soft butter blends smoothly with the sugars and gives the bars their classic cookie flavor.
- Canola oil: Two tablespoons. Its neutral flavor complements the butter and helps keep the crumb soft.
- Granulated sugar: One-quarter cup plus two tablespoons. It adds sweetness and helps the edges bake up lightly crisp.
- Light brown sugar: One-quarter cup plus two tablespoons. Pack it when measuring; its moisture and molasses flavor give the bars a chewy texture.
- Large egg: One egg, which binds the dough and helps it set as it bakes.
- Pure vanilla extract: One teaspoon. Vanilla rounds out the chocolate and toasted pecan flavors.
- Whole wheat pastry flour: One and one-half cups. Its fine texture is a good fit for tender cookie bars.
- Baking soda: One-half teaspoon. It helps the dough rise slightly as the bars bake.
- Kosher salt: One-half teaspoon. Salt balances the sugars and brings the chocolate flavor into focus.
- Semisweet chocolate chips: One cup. Semisweet chips keep the bars from becoming overly sweet.
The method
How to Make Chocolate Chip Pecan Cookie Bars
1. Prepare the pan and pecans
Heat the oven to 350°F. Line the bottom of a 9-by-13-inch baking pan with parchment paper. Spread the pecans in a pie plate and toast for about 8 minutes, until golden. Chop them and set aside to cool.
Watch the pecans near the end of toasting; they should smell fragrant and look lightly golden, not dark.
2. Cream the fats and sugars
Beat the softened butter, canola oil, granulated sugar, and brown sugar together in a standing electric mixer until creamy.
Scrape down the bowl if needed so there are no pockets of butter or sugar left at the bottom.
3. Add the egg and vanilla
Beat in the egg and vanilla extract until the mixture looks smooth.
Stop once the egg is fully blended; a smooth mixture helps the flour incorporate evenly.
4. Mix the dry ingredients
In a small bowl, whisk the whole wheat pastry flour, baking soda, and kosher salt. Add this mixture to the mixer and beat at low speed until combined.
Stop as soon as the flour disappears. Mixing beyond that point can make the bars less tender.
5. Fold in the chocolate and pecans
Add the chocolate chips and cooled chopped pecans. Mix just until they are distributed through the dough.
The dough should hold the chips and nuts evenly without being worked into a smooth paste.
6. Press the dough into the pan
Transfer the dough to the prepared pan and press it into an even layer, reaching the corners.
Check the thickness across the pan; a level surface helps the center and edges finish at the same time.
7. Bake until nearly set
Bake for about 20 minutes, until lightly browned and nearly set in the center. Let the pan cool completely.
The edges should look lightly colored, while the center may still seem a little soft. It will finish setting as it cools.
8. Turn out and slice
Run a knife around the edges, then invert the rectangle. Peel away the parchment and invert the slab onto a cutting board. Cut into bars and serve.
Wait until the bars are completely cool before turning them out; warm bars are more likely to break when sliced.
Tips & common mistakes
Tips and Common Mistakes
A few details make a noticeable difference in how neatly these bars bake and slice.
- Cool the pecans before mixing. Warm nuts can soften the butter in the dough. Let them cool after chopping so the dough keeps its intended texture.
- Line only the pan bottom. The parchment makes it easier to lift and invert the baked slab. Leave the pan sides unlined as directed.
- Press an even layer. Thicker spots may stay soft while thinner areas brown sooner. Take a moment to spread the dough into the corners.
- Mix the flour gently. Low speed and a short mixing time keep the bars tender. Stop when the dry ingredients are incorporated.
- Don’t overbake the center. The bars are meant to come out lightly browned and nearly set. Baking until the center looks completely firm can leave them dry after cooling.
- Let the slab cool fully. Cooling lets the center finish setting, making it easier to invert and cut without crumbling.
Make it your way
Substitutions and Variations
The pecans are easy to vary, and a couple of other modest changes can suit different tastes.
- Walnuts: Use them in place of the pecans for a slightly earthier flavor and similar crunch.
- Almonds: Chopped almonds are another good nut swap. Toast them as directed and cool before adding.
- Dried cranberries: Replace half the nuts with dried cranberries for a tart, chewy contrast to the chocolate.
- All-purpose flour: It can stand in for whole wheat pastry flour, though the bars will lose its mild whole-grain flavor. Mix only until combined.
- Dark chocolate chips: They make the bars less sweet and more cocoa-forward than semisweet chips.
Serving
What to Serve with Chocolate Chip Pecan Cookie Bars
Serve the bars at room temperature on a cookie tray, or pair one with coffee or a glass of milk for an easy afternoon treat. Their sturdy shape also makes them convenient for packing in a lunch or taking to a potluck.
For more ideas for a dessert tray, browse our cookie recipes and brownies and bars.
Storage
Make-Ahead, Storage and Reheating
Make ahead: Bake the bars ahead and let them cool completely before cutting and storing. You can toast and chop the pecans in advance; keep them covered at room temperature until you make the dough.
Storage: Keep cooled bars in an airtight container at room temperature for up to 3 days, or refrigerate them for 3 to 4 days. Separate layers with parchment to help prevent sticking.
Freezing: Freeze the cooled bars in an airtight freezer-safe container, with parchment between layers, for up to 3 months. Thaw at room temperature before serving.
Reheating: These bars are best at room temperature. If you prefer a slightly warm center, briefly warm an individual bar in the microwave and let it stand a moment before eating.
Questions
Chocolate Chip Pecan Cookie Bars FAQs
Can I make these cookie bars without a mixer?
Yes. Beat the softened butter, oil, and sugars together by hand with a sturdy spoon until creamy, then mix in the egg and vanilla before adding the dry ingredients.
Can I use a different size pan?
A 9-by-13-inch pan is specified for this batch. A different size changes the dough depth and baking time, so the center may not set as expected.
Why are my cookie bars crumbly?
They may have been cut before cooling completely, or the dough may have had too much flour. Let the slab cool fully and measure the flour without packing it into the cup.
Can I leave out the pecans?
Yes. The bars will have less crunch, but the chocolate chips still provide plenty of texture. You can replace the pecans with another nut or some dried cranberries.
How many bars does this batch make?
It makes 32 bars. Cut the cooled slab into equal portions for consistent servings.
Recipe Card

Chocolate-Chip-Pecan Cookie Bars
Ingredients
Method
- Preheat the oven to 350° and line the bottom of a 9-by-13-inch baking pan with parchment paper. Spread the pecans in a pie plate and toast for about 8 minutes, until golden. Chop the pecans and let cool.
- In the bowl of a standing electric mixer, beat the butter and oil with the granulated sugar and brown sugar until creamy. Beat in the egg and vanilla until smooth. In a small bowl, whisk the flour with the baking soda and salt; beat the dry ingredients into the mixer at low speed. Add the chocolate chips and pecans; beat just until incorporated.
- Transfer the dough to the prepared baking pan and press into an even layer. Bake for about 20 minutes, until lightly browned and nearly set in the center. Let cool completely, then run a knife around the edges and invert the rectangle. Peel off the paper and invert onto a cutting board. Cut and serve.