Food

Chocolate Chip Bars with Walnuts: Easy Recipe

By Hayride Live · Updated · 4 min read

Chocolate chip bars with walnuts are a chewy, buttery dessert baked in a square pan instead of dropped as cookies. The main difference from cookies is that you press the dough into the pan, so the bars bake up thicker and softer in the center with crisp edges. Most recipes call for a 9×13-inch pan, but you can use a 9×9-inch pan for thicker bars if you adjust the baking time.

Choose Your Pan and Adjust Baking Time

The pan size changes both the thickness and the baking time. A 9×13-inch (23×33 cm) pan gives bars about 1 inch (2.5 cm) thick, which bake in 25–30 minutes at 350°F (175°C). A 9×9-inch (23×23 cm) pan makes bars about 1.5 inches (4 cm) thick, so they need 35–40 minutes. Always check for doneness with a toothpick inserted into the center—it should come out with a few moist crumbs, not wet batter.

If you use a glass pan, reduce the oven temperature by 25°F (15°C) because glass heats faster than metal. Grease the pan or line it with parchment paper so the bars lift out cleanly after cooling.

Mix the Dough in One Bowl

This bar dough comes together faster than cookie dough because you don’t need to chill it. Melt the butter first, then let it cool slightly so it doesn’t cook the eggs. Whisk the melted butter with brown sugar and granulated sugar until smooth, then beat in the eggs and vanilla. Stir in the flour, baking soda, and salt until just combined—overmixing makes the bars tough.

Fold in the chocolate chips and chopped walnuts last. Use semi-sweet or dark chocolate chips for a balanced sweetness; milk chocolate makes the bars sweeter. Toast the walnuts in a dry skillet over medium heat for 3–5 minutes until fragrant before adding them, if you want a deeper flavor.

Key Ratios for a Standard Batch

A typical recipe for a 9×13-inch pan uses:

  • 2 cups (250 g) all-purpose flour
  • 1 cup (2 sticks, 226 g) unsalted butter, melted
  • 1 cup (200 g) packed brown sugar
  • 1/2 cup (100 g) granulated sugar
  • 2 large eggs
  • 1 teaspoon vanilla extract
  • 1 teaspoon baking soda
  • 1/2 teaspoon salt
  • 1 1/2 cups (270 g) chocolate chips
  • 1 cup (120 g) chopped walnuts

For a 9×9-inch pan, cut all ingredients in half. For a thicker, more cake-like bar, add 1/4 cup (30 g) more flour and one extra egg.

Bake Until the Center Is Set

Preheat the oven to 350°F (175°C). Press the dough evenly into the prepared pan—use your hands or a spatula. Bake for 25–30 minutes (9×13) or 35–40 minutes (9×9), until the top is golden brown and the edges pull away from the pan. The center will look slightly underdone when you pull it out, but it sets as it cools. Let the bars cool in the pan on a wire rack for at least 20 minutes before cutting, or they will crumble.

For cleaner cuts, chill the cooled bars in the refrigerator for 30 minutes, then slice with a sharp knife. Wipe the knife between cuts for neat edges.

Store and Freeze for Later

Keep the bars in an airtight container at room temperature for up to 4 days. They also freeze well: wrap individual bars in plastic wrap, then place them in a freezer bag for up to 3 months. Thaw at room temperature for about 30 minutes, or warm a bar in the microwave for 10–15 seconds.

If the bars get too dry after a day, add a slice of bread to the container—it releases moisture and softens the bars. For a firmer texture, store them in the refrigerator, but bring them to room temperature before serving.

When You Want a Different Texture

For a fudgier bar, reduce the flour to 1 3/4 cups (220 g) and add 1/2 cup (85 g) extra chocolate chips. For a cakier bar, add 1/2 teaspoon baking powder along with the baking soda. If you don’t have walnuts, use pecans or omit them entirely—the bars still work. For a nut-free version, swap the walnuts for 1/2 cup (60 g) of dried cranberries or shredded coconut.

If you want a shiny, crackly top like a brownie, whisk the eggs and sugar together for 2 minutes until pale and thick before adding the melted butter. This extra step incorporates air and creates a crust.

Chocolate Chip Bars with Walnuts: Common Questions

Why are my bars too crumbly?

They likely baked too long or cooled too little. Check the bars at the shorter time, and let them cool completely before cutting. If they still crumble, add one more egg next time to bind the dough.

Can I use a cookie scoop to make these as cookies instead?

Yes, drop the dough by rounded tablespoons onto a baking sheet and bake at 350°F (175°C) for 10–12 minutes, until edges are set. The dough doesn’t need chilling.

How do I know when the bars are done without a toothpick?

The top should be golden brown and the edges should pull away from the pan. Press the center lightly—if it springs back, it’s done. If it leaves an indent, bake for 3–5 more minutes.

Spotted a mistake? Tell us and we will correct it. How we write and check articles.