This basic cookie bar recipe is for the days when you want the taste of a chocolate chip cookie without scooping and chilling individual dough balls. It bakes into a chewy, buttery slab that cuts into neat squares, making it a solid choice for a weeknight dessert, a school bake sale, or a casual get-together. Serve it warm with vanilla ice cream, or pack it into lunchboxes the next day.
Ingredients
- 1 cup (2 sticks, 226 g) unsalted butter, melted and slightly cooled
- 1 cup (200 g) packed light brown sugar
- 1/2 cup (100 g) granulated sugar
- 2 large eggs, at room temperature
- 2 teaspoons vanilla extract
- 2 cups (250 g) all-purpose flour
- 1 teaspoon baking soda
- 1/2 teaspoon salt
- 1 1/2 cups (270 g) semisweet chocolate chips
Instructions
- Preheat your oven to 350°F (175°C). Line a 9×13-inch (23×33 cm) baking pan with parchment paper, leaving overhang on two opposite sides for easy lifting.
- In a large bowl, whisk the melted butter, brown sugar, and granulated sugar until smooth and no lumps remain. The mixture will look glossy.
- Add the eggs and vanilla; whisk vigorously for about 1 minute until the mixture is pale and slightly thickened. This helps create a shiny, crackly top.
- Add the flour, baking soda, and salt. Stir with a spatula or wooden spoon just until no dry streaks remain. Do not overmix.
- Fold in the chocolate chips. The dough will be thick and slightly sticky.
- Scrape the dough into the prepared pan. Press it into an even layer using your hands or an offset spatula. It will be a thin layer, about 1/2 inch (1.3 cm) thick.
- Bake for 22–25 minutes, until the edges are golden brown and the center is just set—it should not jiggle when you gently shake the pan. A toothpick inserted into the center should come out with a few moist crumbs, not wet batter. The top will look slightly cracked and shiny.
- Let the bars cool completely in the pan on a wire rack, about 1 hour. Use the parchment overhang to lift the slab out, then cut into 16 squares.
Scaling the Recipe for Half or Double Batches
This recipe scales cleanly. For a half batch, use a 8×8-inch (20×20 cm) pan and bake for 20–22 minutes. For a double batch, use a 12×18-inch (30×45 cm) half-sheet pan and bake for 28–30 minutes. The doneness cue is the same: edges golden, center set but still soft.
| Batch | Butter | Flour | Chocolate chips | Pan size | Bake time |
|---|---|---|---|---|---|
| Half | 1/2 cup (113 g) | 1 cup (125 g) | 3/4 cup (135 g) | 8×8 in (20×20 cm) | 20–22 min |
| Single | 1 cup (226 g) | 2 cups (250 g) | 1 1/2 cups (270 g) | 9×13 in (23×33 cm) | 22–25 min |
| Double | 2 cups (452 g) | 4 cups (500 g) | 3 cups (540 g) | 12×18 in (30×45 cm) | 28–30 min |
Swaps and Add-Ins That Change the Result
Use 1 1/2 cups (180 g) chopped walnuts or pecans instead of chocolate chips for a nutty bar. The nuts add crunch and a slightly drier texture. Swap half the chocolate chips for butterscotch chips or white chocolate chunks for a sweeter, creamier flavor. For a fruity twist, fold in 1 cup (150 g) dried cranberries or chopped dried cherries; they add chewiness and tartness. If you use a gluten-free all-purpose flour blend, the bars will be slightly more crumbly; add 1/4 teaspoon xanthan gum if your blend doesn’t include it.
How to Tell When the Bars Are Done
The center will look underdone when the edges are golden—that’s normal. The bars continue to set as they cool. The top should be lightly browned and cracked, and the edges should pull away slightly from the pan. If you insert a toothpick into the center, it should come out with moist crumbs, not wet batter. Overbaking makes the bars dry and hard; underbaking makes them gooey in the center. If you prefer a softer, fudgier bar, pull them at the 22-minute mark. For a firmer, more cake-like bar, go to 25 minutes.
Storing and Freezing Cookie Bars
Once completely cool, store the bars in an airtight container at room temperature for up to 4 days. They will stay chewy if you add a slice of bread to the container—it absorbs excess air and keeps moisture in. For longer storage, wrap the slab or individual bars tightly in plastic wrap and then foil, and freeze for up to 3 months. Thaw at room temperature for about 1 hour, or warm individual bars in the microwave for 15 seconds. Do not leave the bars out at room temperature for more than 2 hours if you plan to keep them longer; refrigerate them instead, but note that refrigeration dries them out, so bring them to room temperature before serving.
Why the Dough Is Soft and How to Fix It
If your dough seems too soft to press into the pan, it’s likely because the butter was too warm. Refrigerate the dough for 15–20 minutes before pressing, then bake as directed. If the dough is too dry and crumbly, you may have measured the flour too heavily—next time, spoon it into the measuring cup and level it off. For this recipe, a kitchen scale is the most reliable way to measure flour.
What to Serve With Cookie Bars
These bars are excellent on their own, but they pair well with a glass of cold milk, a scoop of vanilla ice cream, or a drizzle of caramel sauce. For a dessert plate, serve warm bars with a dollop of whipped cream and fresh berries. They also make a great base for an ice cream sundae—just crumble them over the top.
Raw Flour and Egg Safety
If you taste the raw dough, be aware that raw flour and raw eggs can carry harmful bacteria. To make the dough safe to eat raw, heat-treat the flour: spread it on a baking sheet and bake at 350°F (175°C) for 5–7 minutes, until it reaches 160°F (71°C), then cool completely. Use pasteurized eggs. Refrigerate any dough you don’t bake immediately. Pregnant people, young children, older adults, and anyone with a weakened immune system should avoid raw flour and raw eggs entirely.
Related
- Crockpot Taco Bar for a Crowd
- Basic Cookie Dough with Variations for Any Flavor
- Basic White Layer Cake Recipe from Scratch
Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.
Spotted an error? Tell us and we will correct it (corrections policy).