Red White and Blue M&M Cookie Bars Recipe
In this article
These red, white, and blue M&M cookie bars are a festive, no-fuss twist on classic chocolate chip cookies. Instead of scooping individual cookies, you press a thick, buttery dough into a pan, bake it once, and cut it into squares. The result is a soft, chewy bar with crispy edges and a colorful, candy-studded top that's perfect for Memorial Day, the Fourth of July, or any patriotic gathering.
Ingredients
- 2 1/2 cups (315 g) all-purpose flour
- 1 teaspoon baking soda
- 1/2 teaspoon salt
- 3/4 cup (170 g) unsalted butter, melted and slightly cooled
- 1 cup (200 g) packed light brown sugar
- 1/2 cup (100 g) granulated sugar
- 2 large eggs, at room temperature
- 2 teaspoons vanilla extract
- 1 1/2 cups (about 240 g) red, white, and blue M&M candies, divided
Instructions
- Preheat your oven to 350°F (175°C). Line a 9x13-inch baking pan with parchment paper, leaving some overhang on two opposite sides for easy lifting. Lightly grease the parchment with nonstick spray or butter.
- In a medium bowl, whisk together the flour, baking soda, and salt. Set aside.
- In a large bowl, combine the melted butter, brown sugar, and granulated sugar. Whisk until smooth and no lumps remain. The mixture should look like wet sand.
- Add the eggs one at a time, whisking well after each addition. Then whisk in the vanilla extract until fully incorporated.
- Pour the dry ingredients into the wet mixture. Use a spatula or wooden spoon to fold until just combined — do not overmix. The dough will be thick and slightly sticky.
- Reserve about 1/2 cup of the M&Ms for the top. Gently fold the remaining 1 cup of M&Ms into the dough, distributing them evenly without crushing them.
- Transfer the dough to the prepared pan. Press it into an even layer using your hands or a spatula. The dough will be thick, so take your time to spread it to the edges.
- Sprinkle the reserved M&Ms over the top, pressing them lightly into the dough so they stick.
- Bake for 25–30 minutes, or until the edges are golden brown and the center is set. A toothpick inserted into the center should come out with just a few moist crumbs, not wet batter. Do not overbake — the bars will continue to set as they cool.
- Let the bars cool completely in the pan on a wire rack, about 1 hour. Once cool, use the parchment overhang to lift the whole slab onto a cutting board. Cut into 12–16 squares with a sharp knife.
Tips
- Use room-temperature eggs: Cold eggs can seize the melted butter, making the dough stiff and hard to spread. Let them sit on the counter for 15–20 minutes before starting.
- Don't overbake: The bars are done when the edges are set and lightly browned, but the center still looks slightly soft. They'll firm up as they cool, so pulling them a minute early is better than leaving them in too long.
- Press the top M&Ms gently: If you press too hard, the candies may crack or bleed color. A light press is enough to keep them in place.
- Swap the candy colors: Not a fan of M&Ms? Use red, white, and blue candy-coated chocolate pieces from another brand, or substitute white chocolate chips and dried cranberries for a different texture.
Serving Suggestions
Serve these bars at room temperature as a dessert or snack. They're great on a picnic table, at a barbecue, or as part of a holiday dessert spread. For a fancier presentation, dust them lightly with powdered sugar just before serving, or pair them with a scoop of vanilla ice cream and a drizzle of chocolate sauce. They also travel well, making them a reliable choice for potlucks and cookouts.
Variations
- Chocolate base: Replace 1/4 cup of the flour with unsweetened cocoa powder for a chocolatey twist.
- Add-ins: Fold in 1/2 cup of white chocolate chips or chopped pecans along with the M&Ms for extra flavor and crunch.
- Gluten-free: Use a 1:1 gluten-free all-purpose flour blend. The texture will be slightly more crumbly, but still delicious.
- Mini bars: Bake in a 9x9-inch pan for 30–35 minutes and cut into 16 smaller squares — just adjust the baking time and check for doneness.
Storage and Reheating
Store the bars in an airtight container at room temperature for up to 4 days. To keep them soft, add a slice of bread to the container — it will absorb excess moisture and keep the bars chewy. For longer storage, freeze the bars (wrapped tightly in plastic wrap and then foil) for up to 3 months. Thaw overnight in the refrigerator or at room temperature for a few hours. To reheat, pop a bar in the microwave for 10–15 seconds, or warm in a 300°F oven for 5 minutes to restore a fresh-baked feel.
Frequently Asked Questions
Can I use regular M&Ms instead of red, white, and blue?
Yes, absolutely. Any color combination works — just use the same total amount. If you can't find patriotic colors, use standard M&Ms or mix red and blue with white chocolate chips for a similar effect.
Why are my cookie bars too dry?
Overbaking is the most common cause. The bars continue to cook from residual heat after you pull them out, so remove them when the center is just set but still slightly soft. Also, make sure you measure the flour correctly — spoon it into the measuring cup and level it off, rather than scooping directly from the bag, which packs in too much flour.
Can I make the dough ahead of time?
Yes. Prepare the dough, press it into the pan, cover tightly with plastic wrap, and refrigerate for up to 2 days. When ready to bake, let the pan sit at room temperature for 30 minutes, then bake as directed — you may need to add 2–3 extra minutes since the dough is cold.
Can I freeze the unbaked dough?
Absolutely. Press the dough into the pan, wrap it well, and freeze for up to 3 months. Bake directly from frozen, adding 5–10 minutes to the baking time. Alternatively, scoop the dough into balls, freeze on a baking sheet, then transfer to a zip-top bag for individual cookie bars later.
Why did my M&Ms bleed color into the dough?
This can happen if the candy coating gets scratched or if the dough is too wet. Make sure your butter is just melted, not hot, and avoid overmixing the dough. Also, fold the M&Ms in gently with a spatula instead of stirring vigorously.
Can I use salted butter?
Yes, but reduce the added salt to 1/4 teaspoon. The bars will still taste great, just slightly saltier. If you only have salted butter and forget to adjust, it's not a dealbreaker — the salt will simply be more pronounced.