These soft and chewy M&M cookie bars are the ultimate easy dessert: a thick, buttery cookie base loaded with colorful M&Ms, baked in a single pan so there's no scooping, no chilling, and no fuss. The secret to their perfect texture is a mix of melted butter and an extra egg yolk, which gives you a tender, gooey center with slightly crisp edges—all in about 30 minutes from start to finish.
Ingredients
- 1 cup (2 sticks / 226g) unsalted butter, melted and slightly cooled
- 1 cup (200g) packed light brown sugar
- 1/2 cup (100g) granulated sugar
- 2 large eggs, at room temperature
- 1 large egg yolk
- 2 teaspoons vanilla extract
- 3 cups (360g) all-purpose flour
- 1 teaspoon baking soda
- 1 teaspoon salt
- 1 1/2 cups (240g) M&M candies, plus 1/4 cup for topping
Instructions
- Preheat your oven to 350°F (175°C). Line a 9x13-inch baking pan with parchment paper, leaving some overhang on two sides for easy lifting.
- In a large bowl, whisk together the melted butter, brown sugar, and granulated sugar until smooth and no lumps remain.
- Add the eggs, egg yolk, and vanilla extract. Whisk vigorously for about 30 seconds until the mixture is glossy and slightly thickened—this helps create that chewy texture.
- In a separate bowl, whisk the flour, baking soda, and salt. Add the dry ingredients to the wet mixture and stir with a spatula until just combined. Do not overmix.
- Gently fold in 1 1/2 cups of M&Ms. The dough will be thick and slightly sticky.
- Transfer the dough to the prepared pan and press it into an even layer using your hands or a spatula. Sprinkle the remaining 1/4 cup M&Ms on top, pressing them in lightly.
- Bake for 25–30 minutes, or until the edges are golden brown and the center is just set (it should still look slightly soft). A toothpick inserted into the center should come out with a few moist crumbs, not wet batter.
- Let the bars cool completely in the pan on a wire rack before lifting them out and cutting into squares. For cleaner cuts, chill the bars for 15 minutes in the fridge before slicing.
Tips
- Measure flour correctly: Spoon the flour into your measuring cup and level it off with a knife. Scooping directly can pack in too much flour, making the bars dry and cakey.
- Don't overbake: The bars will continue to set as they cool. Pull them out when the center is just barely set—overbaking is the most common way to lose that chewy texture.
- Use room-temperature eggs: Cold eggs can seize the melted butter, creating a lumpy dough. If you're in a hurry, place the eggs in a bowl of warm water for 5 minutes.
- Make it dairy-free: Substitute the butter with a plant-based butter stick and use dairy-free chocolate candies. The texture stays remarkably similar.
Serving Suggestions
These cookie bars are delicious on their own, but you can take them up a notch: serve them warm with a scoop of vanilla ice cream and a drizzle of chocolate sauce for a sundae-style dessert. They also make a great lunchbox treat or party platter addition—just cut them into small squares and arrange on a board with fresh fruit.
Variations
- Peanut Butter M&M Bars: Swap 1/2 cup of the all-purpose flour for 1/2 cup of creamy peanut butter (reduce butter by 2 tablespoons). Use peanut butter M&Ms.
- Chocolate Chip Cookie Bars: Replace the M&Ms with 1 1/2 cups of semi-sweet chocolate chips.
- Add nuts: Fold in 1/2 cup of chopped pecans or walnuts along with the M&Ms for extra crunch.
- Festive holiday bars: Use seasonal M&M colors (red and green for Christmas, pastel for Easter) to match the occasion.
Storage and Reheating
Store the bars in an airtight container at room temperature for up to 4 days. For longer storage, wrap them tightly in plastic wrap and freeze for up to 3 months—thaw overnight in the fridge or at room temperature for a couple of hours. To reheat, pop a bar in the microwave for 10–15 seconds until warm and gooey, or place in a 300°F oven for 5 minutes.
Frequently Asked Questions
Can I use salted butter instead of unsalted?
Yes, just reduce the added salt to 1/2 teaspoon to avoid overly salty bars.
Why are my cookie bars cakey instead of chewy?
This usually happens from overmixing the flour or overbaking. Mix only until the flour disappears, and pull the bars out as soon as the center is set—it should still look slightly underdone.
Can I make these in an 8x8-inch pan?
Yes, but the bars will be much thicker, so you'll need to increase the baking time to 35–40 minutes. Check with a toothpick and cover with foil if the top browns too quickly.
Do I need to chill the dough?
No, that's the beauty of this recipe! The melted butter and extra yolk give you a chewy texture without chilling. However, if you want thicker, more bakery-style bars, you can chill the dough for 30 minutes before baking—just add a few minutes to the bake time.
Can I use mini M&Ms?
Absolutely. Mini M&Ms distribute more evenly and are great for kids. Use the same amount (1 1/2 cups).
How do I get clean, neat squares?
Let the bars cool completely, then chill them in the fridge for 15–20 minutes. Use a sharp knife and wipe it clean between cuts.