Thick, chewy M&M chocolate chip cookie bars have that bakery-style center people go back for before the pan has even cooled. The edges bake up golden and just crisp enough to hold the squares, while the middle stays soft and dense with pockets of melted chocolate and candy crunch. They cut cleanly once cooled, but they still taste like the best part of a warm cookie.
The melted butter is the key here. It gives these bars their dense, fudgy texture without any extra mixing fuss, and it blends smoothly with the brown sugar so the bars bake up moist instead of cakey. Pressing a handful of M&Ms on top before baking does two things at once: it gives you that bright, classic look and keeps the candy pieces visible instead of buried in the dough.
Below you’ll find the little details that make these bars work every time, including the doneness cue that matters most and the best way to cut them so you get neat squares instead of crumbly edges.
The bars came out thick and chewy, and the center set up perfectly after cooling. I loved that the M&Ms stayed colorful on top instead of melting into the dough.
Love thick, chewy M&M chocolate chip cookie bars? Save this recipe for the next time you want an easy pan dessert with bright candy tops and clean-cut squares.
The Trick to Chewy Cookie Bars Is Keeping the Center Underbaked
Cookie bars go wrong when people wait for the middle to look fully done in the oven. By the time the center looks firm, the edges are already dry and the bars lose that soft, chewy bite. Pull these when the top is golden and the center still looks slightly underdone in the middle few inches; the residual heat in the pan finishes the job as they cool.
The other trap is overmixing once the flour goes in. Stir just until the dry streaks disappear, then stop. That keeps the bars tender instead of tough, and it matters more here than in a drop cookie because the batter is thicker and gets worked more easily.
What the Butter and Sugar Are Really Doing Here

- Melted unsalted butter — This gives the bars their dense, chewy texture and makes the dough easy to mix by hand. Salted butter works in a pinch, but reduce the added salt slightly so the bars don’t taste sharp.
- Brown sugar — This is what gives the bars their soft center and deeper caramel flavor. Pack it firmly into the cup; loose brown sugar means less moisture and a drier bake.
- Granulated sugar — A little white sugar helps the tops set with a light crackle instead of turning overly soft. Swapping it all for brown sugar makes the bars heavier and more cake-like.
- All-purpose flour — This gives the bars structure without making them bread-y. Measure it lightly or spoon and level it; packed flour is the fastest way to turn chewy bars into dry ones.
- M&M candies and chocolate chips — The chips melt into pockets, while the M&Ms keep their shape and give you that candy-bar look. Add most of the M&Ms to the dough, then press the rest on top so the bars look finished before they even cool.
Building the Batter So the Bars Stay Thick, Not Puffy
Mix the Butter, Sugar, Eggs, and Vanilla First
Whisk the melted butter with both sugars until the mixture looks glossy and slightly thickened. That helps the sugar start dissolving before the flour goes in, which is part of what gives these bars that dense, chewy bite. Add the eggs and vanilla next and whisk until the batter looks smooth and a little lighter in color.
Fold in the Dry Ingredients Without Beating Them
Stir in the flour, baking soda, and salt just until you stop seeing dry patches. If you keep mixing after that point, the bars can turn tough and bready. Once the flour is mostly absorbed, switch to a spatula and fold in the chocolate chips and most of the M&Ms so they stay evenly scattered.
Press the Candy on Top Before Baking
Spread the dough into the pan and nudge it into the corners with a spatula. The dough will be thick, so small rough patches on top are fine. Press the remaining M&Ms over the surface so they bake into the top layer instead of sinking out of sight.
Watch for Set Edges and a Soft Center
Bake just until the edges are deep golden and the center looks set but still soft when the pan is nudged. The bars keep cooking after they come out, so don’t wait for the middle to look dry. If you overbake them, they’ll still taste good, but you’ll lose the chew that makes them worth making.
How to Adapt These Bars for Different Pans and Candy Mix-Ins
Make Them Gluten-Free
Use a cup-for-cup gluten-free flour blend that includes xanthan gum. The bars will stay chewy, but they may be a little more delicate when warm, so let them cool completely before slicing.
Swap in Different Candies
Peanut butter M&Ms, mini M&Ms, or chopped candy bars all work here. Mini candies spread more evenly through the dough, while larger mix-ins create bigger pockets and a slightly messier cut.
Use a Smaller Pan for Extra-Thick Bars
For thicker bars, bake the dough in a smaller square pan and watch the center closely near the end of baking. The texture turns even chewier, but the bake time stretches a bit, so judge by the top and edges, not the clock alone.
Storage and Reheating
- Refrigerator: Store in an airtight container for up to 5 days. The bars firm up a bit in the fridge, but they stay chewy.
- Freezer: Freeze cut bars between layers of parchment for up to 2 months. Thaw at room temperature so the chocolate doesn’t get grainy.
- Reheating: Warm a bar for 10 to 15 seconds in the microwave if you want softer chocolate chips. Don’t overheat them or the M&Ms can get sticky and the edges dry out fast.
Answers to the Questions Worth Asking

M&M Chocolate Chip Cookie Bars
Ingredients
Equipment
Method
- Preheat the oven to 350F. Line a 9x13-inch pan with parchment, leaving overhang so you can lift out the bars later.
- Whisk melted butter and both sugars until smooth, then whisk in the eggs and vanilla extract until glossy.
- Stir in the all-purpose flour, baking soda, and salt until no dry streaks remain, then fold in the chocolate chips and 1 cup of the M&M candies.
- Spread the dough into the lined pan and press the remaining M&M candies on top so they stick evenly.
- Bake for 22-25 minutes at 350F, until the top is golden and the center is just set (a slight soft look is fine).
- Cool the cookie bars completely before cutting into bars, so they slice cleanly and hold their chewy texture.


