Bar Cookie Recipes from Scratch: One Pan, Endless Variations
In this article
Bar cookies are the weeknight baker's secret weapon: one pan, no scooping, no chilling dough between batches, and a built-in portioning system. This master recipe produces a chewy, buttery brown-sugar base that bakes in about 30 minutes and takes kindly to chocolate, nuts, dried fruit, or a swirl of jam. Because the dough is pressed into the pan rather than shaped by hand, it stays tender and moist for days, and the squares travel well to potlucks and lunchboxes.
Ingredients
- 1 cup (2 sticks / 226 g) unsalted butter, melted and cooled slightly
- 1 1/2 cups (300 g) packed light brown sugar
- 1/2 cup (100 g) granulated sugar
- 2 large eggs, room temperature
- 2 teaspoons vanilla extract
- 2 1/2 cups (313 g) all-purpose flour
- 1 teaspoon baking powder
- 1/2 teaspoon baking soda
- 1 teaspoon fine sea salt
- 2 cups (340 g) semisweet chocolate chips, divided
- 1 cup (100 g) chopped pecans or walnuts, optional
Instructions
- Heat the oven to 350°F (175°C). Line a 9×13-inch metal baking pan with parchment paper, leaving a 2-inch overhang on the long sides, and lightly grease the paper. A metal pan gives the crispest edges; glass or ceramic runs about 25°F hotter, so reduce the oven to 325°F if using one.
- Whisk the melted butter with both sugars in a large bowl until smooth and glossy, about 1 minute. Beat in the eggs one at a time, then the vanilla, until the mixture is emulsified and slightly lightened.
- In a separate bowl, whisk the flour, baking powder, baking soda, and salt. Add the dry ingredients to the wet in two additions, folding with a spatula just until no dry streaks remain. Overmixing develops gluten and makes the bars tough.
- Fold in 1 1/2 cups of the chocolate chips and all the nuts, if using. The dough will be stiff and slightly sticky.
- Scrape the dough into the prepared pan and press it into an even layer with lightly dampened fingertips or the back of a spatula. Scatter the remaining 1/2 cup chocolate chips over the top and press them in gently.
- Bake on the middle rack for 28–32 minutes, until the edges are set and pull slightly away from the pan and the center is just barely firm to the touch. A toothpick inserted in the center should come out with moist crumbs, not wet batter.
- Cool completely in the pan on a wire rack, about 2 hours. This is not optional: cutting warm bars smears the chocolate and crumbles the squares. Lift the slab out by the parchment overhang and cut into 24 bars with a long, sharp knife, wiping the blade between cuts.
Tips
- Weigh your flour. Scooping from the bag can pack in an extra 20–30% flour, which turns chewy bars into dry bricks. A kitchen scale settles it every time.
- Don't overbake. The residual heat of the pan continues cooking the bars as they cool. Pull them when the center still looks a shade underdone.
- Cool before cutting. If you must cut early, chill the pan for 20 minutes first; the chocolate will set and the cuts will stay clean.
- Use the right pan. Metal browns the edges best. If you only have glass, drop the oven temperature by 25°F and check 5 minutes early.
Serving Suggestions
Serve the bars at room temperature with a glass of cold milk, or warm them for 10 seconds in the microwave and top with vanilla ice cream for a quick dessert. For a party, cut them smaller (32 squares) and stack them on a platter with a dusting of powdered sugar. They pair well with coffee, and a small square crumbled over Greek yogurt makes a reasonable breakfast treat.
Variations
- Chocolate swirl: Melt 4 oz (113 g) semisweet chocolate, drizzle it over the dough in the pan, and drag a knife through it before baking.
- Jam crumble: Spread 3/4 cup raspberry or apricot jam over the dough, then dot with a streusel made from 1/2 cup flour, 1/4 cup brown sugar, and 4 tablespoons cold butter.
- Oatmeal raisin: Replace 1 cup of the flour with 1 cup old-fashioned oats, swap the chocolate chips for 1 1/2 cups raisins, and add 1 teaspoon cinnamon.
- Lemon bars: Skip the chocolate and nuts; press the dough into the pan, bake 15 minutes, pour over a filling of 4 eggs, 1 1/2 cups sugar, 1/3 cup flour, and 2/3 cup lemon juice, then bake 20–25 minutes more until set.
Storage and Reheating
Store cooled bars in an airtight container at room temperature for up to 4 days, separating layers with parchment. For longer storage, wrap the whole slab or individual squares tightly in plastic wrap, then foil, and freeze for up to 3 months. Thaw at room temperature for 1–2 hours. To reheat, warm a single bar in the microwave for 10–15 seconds, or place the whole pan, loosely covered with foil, in a 300°F oven for 8–10 minutes. Do not refreeze thawed bars.
Frequently Asked Questions
Can I halve the recipe? Yes. Use an 8×8-inch pan and bake for 22–26 minutes; start checking at 20 minutes because the smaller pan bakes faster.
Why are my bars dry and crumbly? Usually too much flour or too long in the oven. Weigh the flour and pull the pan when the center is just set; the bars firm up as they cool.
Can I use salted butter? Yes, but reduce the added salt to 1/4 teaspoon. The bars will taste slightly saltier, which many people prefer.
How do I get clean cuts? Chill the slab for 20–30 minutes, use a long knife, and wipe the blade with a damp cloth between cuts. A bench scraper also works well.
Can I make the dough ahead? Yes. Press it into the pan, cover, and refrigerate for up to 24 hours. Add 3–5 minutes to the bake time since the dough starts cold.
What if I only have a glass pan? Reduce the oven temperature to 325°F and check at 25 minutes. Glass holds heat longer, so the bars may need a few extra minutes but will brown faster on the bottom.