Chocolate Chip Cookie Bars (One-Pan)
Chocolate chip cookie bars are the same flavors as a drop cookie, pressed into one pan. Whisk melted butter with two sugars, stir in the eggs, flour and chips, press the dough into a 9 x 13-inch (23 x 33 cm) pan and bake at 350°F (180°C) for 22 to 26 minutes. You get 24 chewy bars with no scooping and no batches. For individual cookies, see the chocolate chip cookie recipe, and find more in the cookie recipes hub.
Why bars work differently from cookies
A cookie spreads on a pan and bakes from all sides, so it browns at the edges and stays soft in the middle. A bar bakes in a deep, even layer with walls on every side, so it cannot spread. That changes three things:
- Melted butter. Melted butter mixes in with a whisk, so there is no creaming and no mixer. It also gives a denser, chewier bar.
- More brown sugar. This dough uses 215 g of brown sugar to 100 g of white. Brown sugar holds moisture, which keeps the bars soft for days.
- A shorter, flatter bake. The layer is only about 1/2 inch (1.25 cm) thick before baking, so it bakes in under half an hour.
The recipe
Recipe
Chocolate Chip Cookie Bars
- Yield24 bars (about 47 g each)
- Prep15 min
- Cook24 min
- Chill / rest1 hr
- Total1 hr 39 min
- Oven350°F / 180°C
Ingredients
Dry ingredients
- 2 1/4 cups280 g all-purpose flour, spooned into the cup and leveled (125 g per cup)
- 1/2 tsp3 g baking soda
- 1 tsp6 g fine salt
Wet ingredients
- 3/4 cup (1 1/2 sticks)170 g unsalted butter, melted and cooled for 5 minutes
- 1 cup, packed215 g light or dark brown sugar
- 1/2 cup100 g granulated sugar
- 2 largeabout 100 g out of the shell eggs, at room temperature
- 2 tsp10 ml vanilla extract
Mix-ins
- 1 1/2 cups255 g semisweet chocolate chips, plus 1/4 cup (45 g) more to press on top, if you like
Method
- Heat the oven to 350°F (180°C) with a rack in the center. Line a 9 x 13-inch (23 x 33 cm) pan with parchment, leaving 2 inches (5 cm) hanging over the two long sides so you can lift the bars out.
- Whisk the flour, baking soda and salt in a medium bowl.
- In a large bowl, whisk the melted butter, brown sugar and granulated sugar until smooth. Whisk in the eggs one at a time, then the vanilla.
- Fold in the flour mixture with a spatula until no dry streaks remain. Stir in the 1 1/2 cups of chocolate chips.
- Scrape the dough into the pan. Wet your fingers or press a sheet of parchment on top to spread it evenly into the corners. Scatter the extra chips on top, if using, and press them in lightly.
- Bake for 22 to 26 minutes, until the edges are golden and the center looks set but still soft and slightly shiny.
- Cool the bars in the pan on a wire rack for at least 1 hour. Lift out with the parchment, then cut into 24 bars with a large knife, wiping the blade between cuts.
Notes
- Use a metal pan. Glass holds heat and can brown the edges before the center is set; if you only have glass, lower the oven to 325°F (160°C) and check at 22 minutes.
- For a 9-inch (23 cm) square pan, halve every amount (1 egg) and start checking at 22 minutes.
- For a convection (fan) oven, bake at 325°F (160°C) and start checking at 20 minutes.
- Do not eat the raw dough. Raw flour and raw eggs can carry harmful bacteria (see the FDA links in the sources).
Pan and parchment
Use a 9 x 13-inch (23 x 33 cm) metal pan. The dough weighs about 1,140 g, which spreads to a layer roughly 1/2 inch (1.25 cm) thick across the pan. It puffs a little in the oven.
Line the pan with a parchment sling: one sheet that covers the bottom and hangs over the two long sides. After the bars cool, you can lift the whole slab out, which makes cutting cleaner and protects the pan. Grease is not needed under parchment.
How to know when they are done
Cookie bars are easy to overbake, because the middle stays soft after it comes out. Look for these cues:
- The edges are golden and just pulling away from the pan.
- The center is set when you touch it, with no wet shine, but it still gives a little.
- The top has stopped looking wet.
If the center still looks wet and glossy, give the pan 2 more minutes. If the whole top looks puffed and dry, you have gone a little far. Bars pulled while the center is slightly soft turn fudgy and chewy as they cool; bars baked too long turn dry.
Cooling and cutting
Let the bars cool in the pan for at least 1 hour. They finish setting as they cool, and warm bars crumble and smear. Lift the slab out with the parchment, set it on a cutting board, and cut it into 4 strips by 6 strips, for 24 bars. Wipe the knife between cuts. Chilling the slab for 20 minutes first makes the edges neater.
Easy variations
- Nuts. Replace 1/2 cup (85 g) of the chips with 1/2 cup (60 g) of chopped walnuts or pecans.
- Flaky salt. Sprinkle a pinch of flaky salt over the top as soon as the pan comes out.
- Chunks. Swap half the chips for chopped bar chocolate. See chocolate chunk cookies for the reasoning.
Fixing cookie bars
| Problem | Likely cause | Fix |
|---|---|---|
| Greasy | Butter too hot when mixed, or overbaked | Cool the melted butter for 5 minutes and pull the pan while the center is soft. |
| Dry or cakey | Too much flour, or baked too long | Weigh the flour (how to measure flour) and check at 22 minutes. |
| Raw center, burnt edges | Glass or dark pan, or oven too hot | Use a metal pan and an oven thermometer, or lower to 325°F (160°C) for glass. |
| Hard to cut | Cut while warm | Cool fully, then chill for 20 minutes. |
| Chips sink | Dough too loose | Press a few chips on top before baking. |
Storing and freezing
Store cooled bars in an airtight container at room temperature. For a smaller pan, halve every amount; small-batch chocolate chip cookies shows how to scale a dough down. Freeze them cut and wrapped individually. For a molten center, see chocolate-stuffed cookies.
A note on raw dough
Do not taste the dough. Raw flour and raw eggs can carry bacteria, and baking is what makes the bars safe. The FDA explains why raw flour needs cooking and how to handle eggs safely.
Questions and answers
Can I use a 9 x 13-inch (23 x 33 cm) glass pan?
Yes, but glass holds heat, so the edges bake faster. Lower the oven to 325°F (160°C) and start checking at 22 minutes.
Why are my cookie bars greasy?
The butter was probably too warm when it went in, or the dough was baked too long and the fat separated. Let the melted butter cool for 5 minutes and pull the bars while the center is still soft.
How do I cut clean bars?
Cool them completely in the pan, lift them out on the parchment, and cut with a large knife, wiping the blade between cuts. For very neat edges, chill the slab for 20 minutes first.
Can I freeze cookie bars?
Yes. Cut and wrap them individually, then freeze them in a freezer bag. Thaw at room temperature, or warm one for a few seconds in the microwave.
Sources
- Handling Flour Safely, What You Need to Know — U.S. Food and Drug Administration
- What You Need to Know About Egg Safety — U.S. Food and Drug Administration