The edges of cookie bars can look ready while the middle still needs a little time. Pull the pan too soon and the center may slump when you cut it; leave it in until a toothpick comes out perfectly clean and the bars can turn dry. I watch for the edges to turn golden and the center to look set, then trust the few moist crumbs on the toothpick. That balance gives these Christmas M&M cookie bars a soft, chewy middle and neat slices once they cool.
The dough comes together in one bowl after the dry ingredients are whisked separately, and the M&Ms go in two parts: some folded through the dough, the rest scattered on top. I like that split because every bar gets candy inside, while the top stays bright and easy to portion. Press the dough into the pan evenly rather than leaving a thicker mound in the middle, and you’ll have golden-edged bars with colorful candy in every square.

Kitchen Note
Press the dough all the way into the corners and level it across the pan. If the center is noticeably thicker than the edges, the bars won’t bake at the same pace from side to side.
Save these Christmas M&M cookie bars for a batch of soft-centered, candy-topped squares that are easy to cut and share.
Why a Clean Toothpick Is Too Late for Cookie Bars
A pan of cookie dough keeps cooking for a while after it comes out of the oven. The edges are thinner and meet the hot metal first, so they turn golden before the center looks quite as firm. If you wait for the middle to look completely dry, the bars can lose the soft texture that makes them feel like a thick cookie instead of a firm blondie.
Look for a center that appears set, not wet or glossy, and check it near the middle with a toothpick. A few moist crumbs clinging to it are the cue to stop baking; liquid batter means it needs more time. The bars will finish settling as they cool in the pan, which is also why cutting early makes the middle more likely to break or smear. This small shift in what “done” looks like is what keeps the edges golden without sacrificing the center.
What the Butter, Sugars, and Candy Each Bring to the Dough

- Butter and sugars — Softened butter creams smoothly with the sugars; melted butter won’t trap the same air during mixing. Light brown sugar brings moisture and a deeper note, while granulated sugar helps keep the edges from tasting overly soft. Stick with the two sugars rather than replacing one entirely with the other, which shifts the texture.
- Eggs — Room-temperature eggs blend more evenly into the creamed butter and sugar than cold eggs straight from the refrigerator. They help bind the dough and give the baked slab its structure. There isn’t a direct swap that keeps the same cookie-bar texture.
- All-purpose flour — It gives the bars enough structure to cut into squares without making them cake-like. Spoon flour into the measuring cup and level it rather than scooping and packing it; too much flour is an easy way to get a dense, dry bar. For a gluten-free version, use a cup-for-cup gluten-free baking blend, as described below; almond flour alone won’t behave the same way.
- Baking soda — This helps the dough rise and contributes to browning. Baking powder isn’t a straight one-for-one replacement, so don’t swap it in without adjusting the rest of the formula.
- Vanilla extract — Vanilla rounds out the buttery, brown-sugar flavor. A good pure extract is lovely, but the everyday bottle works fine here; vanilla bean paste can stand in for extract in the same quantity.
- Christmas M&M candies — Their crisp shells add color and a little crunch around the chocolate. Use fresh candies with intact shells for the brightest topping. Other seasonal M&M colors work just as well, and peanut butter M&Ms make the bars taste richer and nuttier.
Mixing and Baking the Bars Without Overworking the Dough
Creaming the Butter and Sugars
Heat the oven to 350°F and grease a 9×13-inch baking pan. In a large bowl, beat the softened butter with the brown sugar and granulated sugar until creamy, about 2 minutes. Scrape the sides of the bowl if the mixture is sticking there instead of blending in. The mixture should look cohesive, with no large streaks of butter left behind.
Adding the Eggs and Vanilla
Beat in the eggs and vanilla until combined. Add the eggs one at a time if that helps you keep the mixture even, but don’t keep beating once they’re incorporated. If the mixture looks a little uneven at first, continue mixing just until it comes together. Stop before it turns loose or foamy.
Mixing in the Dry Ingredients
In a medium bowl, whisk together the flour, baking soda, and salt, then add the dry mixture to the butter mixture. Mix just until no dry flour remains; streaks of flour are a sign to keep going briefly, but a smooth, elastic dough means you’ve mixed past what’s needed. Fold in 1 cup of the M&M candies by hand so they’re spread through the dough without getting crushed. The dough will be thick enough to press into the pan.
Pressing, Topping, and Baking
Press the dough evenly into the prepared pan, then scatter the remaining 1/2 cup of candies over the surface. Bake for 24 to 30 minutes, until the edges are golden and the center looks set. A toothpick inserted near the center should come out with a few moist crumbs, not wet dough. Cool the bars completely in the pan, about 2 hours, before cutting.
Easy Ways to Change the Candy or Make a Gluten-Free Pan
Peanut Butter M&M Cookie Bars
Use peanut butter M&Ms in place of the Christmas candies for a more pronounced peanut-butter-and-chocolate flavor. The bars will still have the same chewy cookie base, but the candy centers bring a richer, nutty bite. Keep peanut allergies in mind when serving.
Gluten-Free Christmas Candy Bars
Replace the all-purpose flour with a cup-for-cup gluten-free baking blend formulated to replace wheat flour, and use gluten-free candy pieces. A blend with xanthan gum gives the dough more structure than a single gluten-free flour; expect the bars to be a little more tender than the original.
A New Color Scheme for Another Occasion
Swap the Christmas M&Ms for another color of the same candies when you want the bars to suit a different celebration. The flavor and method stay the same; only the candy colors change, so there’s no need to adjust the dough or baking approach.
Storage and Reheating
- Refrigerator: Store in an airtight container for up to 5 days. The bars will firm up when chilled, so let them come to room temperature for a softer bite.
- Freezer: Freeze cut bars in a single layer until firm, then transfer them to a freezer-safe airtight container for up to 2 months. Thaw at room temperature before serving.
- Reheating: Warm an individual bar in the microwave for about 5 to 10 seconds if you want a softer, slightly warm center. Longer heating can make the candy and edges too hot before the middle is ready.
Questions That Come Up When Baking These Cookie Bars

Christmas M&M Cookie Bars
Ingredients
Equipment
Method
- Heat the oven to 350°F.
- Grease a 9x13-inch baking pan.
- In a large bowl, beat the butter, brown sugar, and granulated sugar until creamy, about 2 minutes.
- Beat in the eggs and vanilla until combined.
- In a medium bowl, whisk together the flour, baking soda, and salt.
- Add the flour mixture to the butter mixture and mix just until no dry flour remains.
- Fold 1 cup of the M&M candies into the dough.
- Press the dough evenly into the prepared pan.
- Scatter the remaining 1/2 cup candies over the top.
- Bake for 24 to 30 minutes, until the edges are golden and the center looks set; a toothpick inserted near the center should come out with a few moist crumbs.
- Cool completely in the pan, about 2 hours.
- Cut into bars.