M&M Chocolate Chip Cookie Bars

Loading…

By Reading time

As these bars bake, the edges turn golden before the middle looks fully settled. That’s the moment I watch closely: cookie bars keep cooking in the hot pan after they leave the oven, and a center that looks dry can turn crumbly once it cools. These M&M Chocolate Chip Cookie Bars bake in one pan, so you get soft centers, crisp edges, and candy in every slice without scooping individual cookies.

The dough starts with softened butter creamed with two kinds of sugar, which gives the bars a sturdy, tender crumb. I fold in the chocolate chips and M&M’s at the end so they stay distributed instead of getting broken up during mixing. Spread the dough evenly in the pan, let the bars cool completely before cutting, and you’ll have neat squares with chocolate and candy in every bite.

M&M Chocolate Chip Cookie Bars golden chewy
“

Kitchen Note

Once the flour goes in, stop mixing as soon as you can’t see dry flour. A few extra seconds of beating can make cookie bars dense instead of tender.

Save these M&M Chocolate Chip Cookie Bars for a bake sale or a treat-box bake: soft cookie centers, chocolate chips, and candy-coated crunch in every square.

Save to Pinterest

Why an Even Layer Matters More Than a Dark Top

Cookie bars bake as one broad slab, not as separate rounds with open space around each one. That changes what you’re watching for: the edges can brown while the center is still catching up, and an uneven layer makes that difference even bigger. A mound in the middle takes longer to bake than a thin corner, so the edges can dry out while you wait for the thick part to look finished.

Spread the dough to an even thickness across the 9×13-inch pan before it goes into the oven. Then use the full bake window as a guide rather than waiting for the whole surface to turn deep brown. The edges should be golden and the center should look set; it doesn’t need to look as browned as a cookie’s edge. Cooling the bars in the pan is part of the texture, too. The slab firms up as it cools, which helps it hold together when you cut it.

What the Butter, Sugars, and Mix-Ins Bring to These Bars

M&M Chocolate Chip Cookie Bars golden chewy
  • Butter — Softened unsalted butter creams smoothly with the sugars and gives the bars their rich cookie texture. It should yield when pressed but shouldn’t look melted or greasy. Unsalted butter lets you control the salt in the dough; salted butter works as a swap if you leave out the kosher salt.
  • Brown and granulated sugars — Packed light brown sugar brings moisture and a gentle caramel note, while granulated sugar helps the edges bake up with a little more structure. Keep both for the intended balance; replacing all the brown sugar with white sugar makes the bars less tender.
  • Eggs — Room-temperature eggs blend into the creamed butter more evenly than cold eggs. Take them out ahead of mixing, or place them in a bowl of warm tap water for a few minutes if you forgot.
  • All-purpose flour — It gives the bars enough structure to cut cleanly without making them cakey. For a gluten-free version, use a cup-for-cup gluten-free baking blend made for cookies; almond or coconut flour won’t behave as a direct replacement.
  • Baking soda — This helps the dough rise and spread as it bakes. Measure it accurately rather than adding extra; too much can leave a soapy aftertaste and make the bars puff unevenly.
  • Chocolate chips and M&M’s — Semisweet chips add soft pockets of chocolate, while M&M’s bring crunch and color. Use fresh chips and candies for the cleanest texture; minis also work, though they’ll give you smaller bits of candy throughout.
  • Vanilla and kosher salt — Vanilla rounds out the buttery, brown-sugar flavor, and salt keeps the sweetness from tasting flat. Pure vanilla is lovely, but a standard vanilla extract is perfectly fine here.

From Creamed Butter to Clean-Cut Cookie Bars

Prepare the pan and oven

Heat the oven to 350°F and grease a 9×13-inch baking pan. Grease the corners and sides as well as the bottom so the edges release after cooling. Set the pan aside while you mix the dough.

Cream the butter and sugars

Beat the softened butter with the packed light brown sugar and granulated sugar in a large bowl for about 2 minutes. The mixture should look creamy and evenly combined, not like separate butter pieces and sugar. If the butter is too cold, it won’t blend smoothly; let it soften before you start rather than trying to beat it into submission.

Blend in the eggs, then the dry ingredients

Beat in the room-temperature eggs and vanilla until combined. In a separate bowl, whisk the flour, baking soda, and kosher salt so the leavener and salt are spread through the flour. Add that mixture to the butter mixture and stop as soon as no dry flour remains.

Fold in the chocolate and candy

Fold in the semisweet chocolate chips and M&M’s with a spatula, using broad turns to distribute them without crushing the candies. Transfer the dough to the prepared pan and spread it evenly into the corners. If the layer is thicker in the middle, smooth it out before baking so it cooks at a more even pace.

Bake, cool, and slice

Bake for 24 to 28 minutes, until the edges are golden and the center looks set. Let the bars cool completely in the pan before cutting; a warm slab is soft and much more likely to crumble under the knife. Once cool, slice into 24 bars.

Three Simple Swaps for a Different Batch

Make the chocolate more intense

Swap the semisweet chocolate chips for dark chocolate chips in the same amount. The bars will taste less sweet and the chocolate notes will stand out more against the M&M’s.

Use peanut butter M&M’s

Replace the regular M&M’s with the same amount of peanut butter M&M’s. You’ll get a stronger peanut-butter flavor and a softer candy center, while the semisweet chips keep the bars from leaning too sweet.

Make a gluten-free pan

Replace the all-purpose flour with a cup-for-cup gluten-free baking blend intended for cookies. The bars may be a little more delicate, so let them cool completely before slicing; use gluten-free chocolate chips and candies if you need to avoid cross-contact.

Storage and Reheating

  • Room temperature: Keep the cooled bars in an airtight container for up to 4 days. The edges soften a little as they sit, but the bars stay easy to slice.
  • Freezer: Freeze the bars in a single layer until firm, then transfer them to a freezer-safe container with parchment between layers. They keep well for up to 2 months; thaw at room temperature.
  • Reheating: Microwave one bar for 8 to 10 seconds if you want the chocolate soft again. Avoid longer bursts, since the candy and chocolate can get hot before the center feels warm.

Questions That Come Up While Baking These Cookie Bars

Can I use salted butter instead of unsalted?+

Yes. Use the same softened butter and leave out the kosher salt; salted butter already adds salt, and the amount varies by brand. The bars will still have plenty of flavor from the brown sugar, vanilla, chocolate, and candy.

Can I leave out the chocolate chips?+

Yes, you can omit them and keep the M&M’s. The bars will have fewer soft chocolate pockets and a more candy-forward sweetness, but the dough will still bake into sliceable cookie bars.

How do I cut the bars without crumbling them?+

Let the pan cool completely before slicing. Use a sharp knife and wipe away crumbs between cuts for cleaner edges; if the bars are still warm, the soft center can pull apart instead of holding a neat line.

Why did my cookie bars turn out dry?+

Overbaking is the most common reason: the edges can look ready before the center has fully set, so watch for the specified visual cues instead of waiting for a dark top. Measuring flour heavily can also make the dough dry, so spoon it into the measuring cup and level it rather than packing it down.

Can I use cold eggs straight from the refrigerator?+

Room-temperature eggs blend more easily into the creamed butter. If yours are cold, set them in warm tap water for a few minutes before cracking them into the bowl; this helps the dough come together without little bits of firm butter.

M&M Chocolate Chip Cookie Bars

M&M chocolate chip cookie bars bake in a 9x13-inch pan with golden edges, a set center, semisweet chocolate chips, and colorful M&M’s in every bite. Cool them completely in the pan before cutting for neat bars.
Prep Time 15 minutes
Cook Time 26 minutes
Total Time 41 minutes
Servings: 24 servings
Course: Dessert
Cuisine: American
Calories: 230

Ingredients
  

  • 1 cup unsalted butter softened
  • 1 cup light brown sugar packed
  • 0.5 cup granulated sugar
  • 2 eggs large, at room temperature
  • 2 tsp vanilla extract
  • 2.25 cup all-purpose flour
  • 1 tsp baking soda
  • 0.75 tsp kosher salt
  • 1 cup semisweet chocolate chips
  • 1 cup M&M’s

Equipment

  • 1 9x13-inch baking pan

Method
 

  1. Heat the oven to 350°F and grease a 9x13-inch baking pan.
  2. In a large bowl, beat the butter, brown sugar, and granulated sugar until creamy, about 2 minutes.
  3. Beat in the eggs and vanilla until combined.
  4. In a separate bowl, whisk together the flour, baking soda, and salt, then add to the butter mixture and mix just until no dry flour remains.
  5. Fold in the chocolate chips and M&M’s, then spread the dough evenly in the prepared pan.
  6. Bake for 24 to 28 minutes, until the edges are golden and the center looks set.
  7. Cool completely in the pan before cutting into bars.

Notes

For clean cuts, cool the bars completely in the pan before slicing. Store in an airtight container at room temperature for up to 4 days or refrigerate for up to 5 days; freeze for up to 3 months. A cup-for-cup gluten-free flour blend may work as a swap, though the texture may vary.

Loved this recipe?

Pin it for later or print a clean copy for your kitchen binder.

Save to Pinterest

Leave a Comment

Recipe Rating