Soft and chewy M&M chocolate chip cookie bars loaded with gooey chocolate and colorful candies. This easy one-pan dessert recipe is perfect for parties, kids, and quick homemade treats.

Published: 2026-04-02

Last Updated: 2026-05-12

Author: Sweet Recipe Team

Why You’ll Love This Recipe

These M&M chocolate chip cookie bars have the same buttery depth and chewy center you expect from a bakery cookie, but without the hassle of scooping individual dough balls. Everything bakes in one pan, creating thick bars with crisp golden edges and a soft middle packed with melted chocolate pockets and crunchy candy shells. The aroma alone — warm vanilla, brown sugar, and toasted butter — fills the kitchen within the first 15 minutes of baking.

One detail that makes these bars stand out is the melted butter technique. Instead of creaming softened butter, the melted butter blends more thoroughly with the sugars, giving the bars a denser, fudgier chew. During testing, we noticed the texture became noticeably softer the next day, almost like a cross between a blondie and a chocolate chip cookie. The brown sugar also helps retain moisture, which is why the bars stay tender even after storing.

A common mistake with cookie bars is overbaking them until the center looks fully set. That usually leads to dry, cakey squares once cooled. The center should still look slightly underdone when removed from the oven. Residual heat continues cooking the middle as the pan cools, creating that rich gooey texture. If the top browns too quickly before the center is ready, loosely tent the pan with foil during the final 8 minutes of baking.

The extra M&Ms pressed onto the surface before baking are not only decorative — they create little crunchy bursts that contrast beautifully against the soft crumb. For the best flavor balance, a tiny pinch of flaky sea salt on top right after baking cuts through the sweetness and intensifies the chocolate flavor. It is a small bakery-style trick that makes a noticeable difference.

These bars are especially practical for parties, bake sales, and holiday trays because they slice cleanly once cooled. If you try cutting them too early, the warm chocolate can cause the bars to collapse or stick to the knife. Letting the pan cool fully on a rack gives the butter and chocolate time to settle, which creates neater squares with chewy centers and crisp corners.

Whether served slightly warm with vanilla ice cream or packed into lunch boxes the next day, these cookie bars deliver layers of texture in every bite — buttery dough, melted chocolate chips, and crunchy candy-coated chocolate scattered throughout.

Irresistible M&M Chocolate Chip Pie

M&M Chocolate Chip Cookie Bars

Soft, chewy, and loaded with chocolate, these M&M chocolate chip cookie bars are an easy one-pan dessert perfect for any occasion. With a rich buttery base, colorful candy crunch, and gooey chocolate chips, they deliver bakery-style flavor in every bite—ready in under an hour.
Prep Time 15 minutes
Cook Time 30 minutes
Total Time 45 minutes
Servings: 16 bars
Course: cake, Dessert, Goûter
Cuisine: Américaine
Calories: 300

Ingredients
  

  • Dry Ingredients
  • 2 ¼ cups 280g all-purpose flour
  • 1 tsp baking soda
  • ½ tsp salt
  • Wet Ingredients
  • ¾ cup 170g unsalted butter (melted & slightly cooled)
  • 1 cup 200g brown sugar
  • ½ cup 100g granulated sugar
  • 2 large eggs
  • 2 tsp vanilla extract
  • Mix-ins
  • 1 cup 175g chocolate chips
  • 1 cup 150g M&M candies (plus extra for topping)

Equipment

  • Mixing bowls (2)
  • Whisk or electric hand mixer
  • Rubber spatula or wooden spoon
  • Measuring cups & spoons
  • 9×13-inch baking pan
  • Parchment paper
  • Oven
  • Cooling rack
  • Knife for slicing

Method
 

  1. Prep
  2. Preheat oven to 350°F (175°C)
  3. Line a 9×13-inch baking pan with parchment paper
  4. Mix Dry Ingredients
  5. In a bowl, whisk together:
  6. Flour
  7. Baking soda
  8. Salt
  9. Mix Wet Ingredients
  10. In another bowl:
  11. Combine melted butter + sugars
  12. Whisk until smooth
  13. Add eggs + vanilla
  14. Mix until creamy
  15. Combine
  16. Gradually add dry ingredients into wet
  17. Mix until just combined (don’t overmix)
  18. Add Chocolate & M&Ms
  19. Fold in:
  20. Chocolate chips
  21. M&Ms
  22. Transfer to Pan
  23. Spread batter evenly into pan
  24. Sprinkle extra M&Ms on top
  25. Bake
  26. Bake for 25–30 minutes
  27. Edges should be golden
  28. Center slightly soft (it firms up while cooling)
  29. Cool & Slice
  30. Let cool completely (important!)
  31. Cut into squares or bars

Notes

Slightly underbake for gooey texture
Use room temperature eggs for better mixing
Add a pinch of flaky salt on top for a bakery-style finish
Chill dough 20 mins if you want thicker bars

Expert Tips & Techniques

For thick, chewy cookie bars with crisp edges, avoid aggressively mixing the batter once the flour is added. Overmixing develops excess gluten, which can turn the bars dense and tough instead of soft and tender. Stir only until the flour disappears, then immediately fold in the chocolate chips and M&Ms.

Using parchment paper with overhanging edges makes removal much easier and prevents broken corners when slicing. During recipe testing, we found metal baking pans produce slightly crispier edges than glass pans because they conduct heat more efficiently. If using glass, expect the bars to need an additional 3–5 minutes in the oven.

Another professional bakery trick is reserving a small handful of chocolate chips and candies to press onto the top before baking. This creates a more polished appearance and ensures visible chocolate throughout the surface once sliced. For deeper flavor, lightly toast the butter until it smells nutty before mixing it with the sugars. Brown butter introduces caramel notes that pair beautifully with milk chocolate candies.

If your bars turn out greasy, the butter was likely too hot when mixed with the eggs. Let melted butter cool for several minutes before combining. Hot butter can partially cook the eggs and affect the dough texture. If the dough feels unusually thin, chilling it for 20 minutes before baking helps control spreading and creates thicker bars.

Store cooled bars in an airtight container for up to 4 days at room temperature. To bring back the freshly baked texture, warm a square in the microwave for 8–10 seconds. The chocolate softens again and the center becomes rich and gooey without drying out.

Variations & Alternatives

These cookie bars adapt well to different flavors and dietary needs. For a darker chocolate profile, swap semi-sweet chocolate chunks for milk chocolate chips and add chopped toasted pecans or walnuts. Peanut butter lovers can replace half the chocolate chips with peanut butter chips for a salty-sweet contrast that works especially well with peanut M&Ms.

To create a festive version, use seasonal M&M colors for holidays, birthdays, or themed dessert trays. Around the holidays, adding crushed peppermint candies creates a refreshing crunch against the buttery dough.

For gluten-free cookie bars, use a reliable 1:1 gluten-free flour blend containing xanthan gum. The bars may bake slightly softer, so allowing extra cooling time helps them firm up before slicing. Vegan adaptations also work surprisingly well: substitute plant-based butter, dairy-free chocolate chips, and flax eggs. The texture becomes slightly softer but still chewy and rich.

If you enjoy bakery-style salted desserts, sprinkle flaky sea salt over the bars immediately after baking. The salt enhances the caramel flavor from the brown sugar and balances the sweetness without overpowering the chocolate.

Frequently Asked Questions

  • Q: Why are my cookie bars dry instead of chewy?
    Overbaking is usually the cause. Remove the pan when the edges are golden but the center still looks slightly soft. The bars continue cooking as they cool in the pan.
  • Q: Can I freeze these cookie bars?
    Yes. Once fully cooled, wrap individual squares tightly and freeze for up to 2 months. Let them thaw at room temperature or warm briefly in the microwave before serving.
  • Q: Can I make the dough ahead of time?
    Absolutely. The dough can be refrigerated for up to 24 hours before baking. Chilled dough often produces thicker bars with deeper caramel flavor because the sugars have more time to hydrate.
  • Q: Why did my M&Ms crack during baking?
    Some cracking is normal because the candy shell expands in the oven. Pressing extra candies onto the surface halfway through baking can improve the final appearance if needed.
  • Q: What is the best way to cut clean squares?
    Let the bars cool completely before slicing and use a sharp knife wiped clean between cuts. Warm bars are much softer and can fall apart when cut too early.

👨‍🍳 About the Author

Sweet Recipe Team is led by professional pastry chefs and recipe developers with more than 9 years of hands-on baking experience in commercial kitchens, dessert studios, and culinary test environments. The team specializes in approachable dessert recipes that combine bakery-quality texture with reliable home baking methods.

Every recipe is tested multiple times using standard home ovens and commonly available ingredients to ensure consistent results. The focus is not only on flavor, but also on texture, timing, and realistic troubleshooting. From chewy cookie bars to layered cakes and delicate pastries, each dessert is developed with practical techniques that help home bakers understand why a method works — not just what to do.

The team pays close attention to details that improve baking success, such as ingredient temperature, pan material, resting time, and mixing technique. Those small adjustments often make the difference between average desserts and bakery-style results.

Beyond recipe development, Sweet Recipe Team continues researching pastry trends, testing new flavor combinations, and refining classic desserts to create recipes that feel dependable, balanced, and genuinely enjoyable to bake. Their goal is to make homemade desserts feel achievable while still delivering the rich textures, aromas, and presentation associated with professional pastry kitchens.

Leave a Comment

Your email address will not be published. Required fields are marked *

Recipe Rating




Scroll to Top