Cookie Dough Bars with Chocolate Chips and M&Ms Recipe
In this article
Cookie dough bars with chocolate chips and M&Ms are a rich, chewy dessert that combines the best of chocolate chip cookies and no-bake cookie dough in one easy-to-make baked bar. These bars deliver a soft, fudgy texture with bursts of chocolate and colorful candy pieces in every bite. They’re perfect for potlucks, bake sales, or satisfying a sweet craving without making a full batch of cookies.
Ingredients
- 1 cup (2 sticks / 227g) unsalted butter, softened
- 3/4 cup (150g) granulated sugar
- 3/4 cup (165g) packed light brown sugar
- 2 large eggs
- 2 teaspoons pure vanilla extract
- 2 1/4 cups (281g) all-purpose flour
- 1 teaspoon baking soda
- 1/2 teaspoon salt
- 1 1/2 cups (255g) semisweet chocolate chips
- 1 cup (170g) M&Ms, plus extra for topping
Instructions
- Preheat the oven to 350°F (175°C). Grease a 9x13-inch baking pan or line it with parchment paper, leaving an overhang on two sides for easy removal.
- In a large mixing bowl, beat the softened butter, granulated sugar, and brown sugar together with an electric mixer on medium speed until light and fluffy, about 2–3 minutes.
- Add the eggs one at a time, beating well after each addition. Stir in the vanilla extract and mix until fully combined.
- In a separate bowl, whisk together the flour, baking soda, and salt. Gradually add the dry ingredients to the wet ingredients, mixing on low speed until just combined. Do not overmix.
- Fold in the chocolate chips and 1 cup of M&Ms using a spatula until evenly distributed throughout the dough.
- Press the dough evenly into the prepared pan, using the back of a spoon or your hands to smooth the top. Sprinkle a handful of extra M&Ms over the surface for visual appeal and extra candy flavor.
- Bake for 25 to 30 minutes, or until the edges are golden brown and the center appears set. A toothpick inserted into the center should come out with a few moist crumbs—but not wet batter.
- Allow the bars to cool completely in the pan on a wire rack. This step is crucial for clean slicing. Once cooled, use the parchment overhang to lift the bars out of the pan.
- Cut into 12 to 16 rectangular bars using a sharp knife. Wipe the knife between cuts for neat edges.
Tips
- Use room-temperature ingredients: Softened butter and room-temperature eggs blend more smoothly, resulting in a uniform texture without overmixing.
- Don’t overbake: These bars are meant to be soft and chewy. Remove them from the oven when the center still looks slightly underdone—they will continue to set as they cool.
- Flour safety: Since this recipe uses raw flour in a baked product, ensure your flour is stored properly and the bars are fully baked to avoid food safety risks. Do not eat raw dough.
- Customize mix-ins: Swap M&Ms for peanut butter chips, chopped nuts, or toffee bits depending on preference or dietary needs.
Serving Suggestions
Serve these cookie dough bars at room temperature for the ideal texture. They pair well with a cold glass of milk, a scoop of vanilla ice cream, or a drizzle of warm caramel sauce for an indulgent dessert. These bars also work well in lunchboxes or as a dessert at birthday parties, especially for kids who love colorful candies. For gatherings, arrange them on a platter with other baked treats like brownies and blondies for a dessert spread.
Variations
Make a peanut butter version by replacing 1/2 cup of the butter with creamy peanut butter and using peanut butter M&Ms. For a gluten-free option, substitute the all-purpose flour with a 1:1 gluten-free baking blend—ensure it contains xanthan gum or add 1/4 teaspoon. Try a seasonal twist by using holiday-colored M&Ms for Christmas, Halloween, or Easter. You can also add 1/2 cup of chopped pecans or walnuts for extra crunch, or stir in 1/3 cup of caramel bits for a salted caramel flavor.
Storage and Reheating
Store cooled cookie dough bars in an airtight container at room temperature for up to 5 days. For longer storage, keep them in the refrigerator for up to 10 days—allow them to come to room temperature before serving for best texture. To freeze, wrap individual bars in plastic wrap and place in a freezer-safe bag or container. They will keep for up to 3 months. Thaw overnight in the refrigerator or at room temperature for 1–2 hours. If desired, warm in the microwave for 10–15 seconds to restore a freshly baked feel.
Frequently Asked Questions
Can I use margarine instead of butter?
It’s best to use real unsalted butter for flavor and texture. Margarine has a higher water content and may alter the consistency of the bars, making them greasy or flat. Stick to butter for optimal results.
Why did my bars turn out cakey?
Cakey bars usually result from overmixing the batter or using too much flour. Measure flour correctly by spooning it into the measuring cup and leveling it off—do not scoop directly from the bag. Also, mix the dough only until the flour is incorporated.
Can I make these bars without eggs?
Eggs provide structure and moisture. While egg substitutes like flax eggs or commercial replacers can be tried, they may change the texture significantly. For best results, use real eggs as written in the recipe.
How do I prevent the M&Ms from sinking?
To keep M&Ms evenly distributed, fold them in gently after the dough is fully mixed. Pressing extra M&Ms on top after spreading the batter also ensures visible candy pieces on every bar.
Can I double the recipe?
Yes, you can double the recipe, but use a 9x13-inch pan for a single batch. For a double batch, use a 12x17-inch half-sheet pan and increase baking time to 30–35 minutes, checking for doneness as usual.
Are these safe to eat if I avoid raw dough?
Yes—these bars are fully baked, so the flour and eggs are cooked through. Unlike no-bake cookie dough, this recipe is safe to eat as written, provided it’s baked to the correct internal temperature (around 200°F in the center).