You will love this recipe for 4th of July Peanut Butter M&M Cookie Bars if you want something festive, fast, and basically foolproof. These cookie bars give you all the soft, chewy cookie vibes in one pan so you are not stuck scooping dough. They are perfect for summer cookouts, fireworks parties, or any time you want fun 4th of July desserts that look cute but are super easy and travel well.
Once you see how easy these are, you’ll want them on repeat all summer long. No chilling, all one bowl and you can bake them ahead so you are not stressed on party day.
Jump to Recipe

Ingredients for 4th of July Peanut Butter M&M Cookie Bars

- ½ cup (1 stick) unsalted butter, softened
- ½ cup brown sugar (light or dark both work)
- ¼ cup granulated sugar
- 1 large egg, room temperature if possible
- 1 teaspoon vanilla extract
- 1 ½ cups all purpose flour
- ½ teaspoon baking soda
- ¼ teaspoon salt
- ¾ cup semi sweet chocolate chips
- ¾ cup red, white and blue Peanut Butter M&Ms, plus extra for topping
How to Make 4th of July Peanut Butter M&M Cookie Bars
These bars couldn’t be easier. Just a few steps and you’ll have a pan of golden, gooey goodness.
1. Prep the pan: Preheat your oven to 350°F. Line an 8×8 baking pan with parchment paper and lightly grease it.
2. Make the dough: In a large bowl, cream the butter, brown sugar, and granulated sugar together until light and fluffy. Beat in the egg and vanilla.
3. Add the dry ingredients: Mix in the flour, baking soda, and salt.
4. Mix in the fun stuff: Fold in chocolate chips, sprinkles and a few M&Ms (save some of the M&Ms for later).
5. Spread and parbake: Press the dough evenly into the prepared pan (You’ll probably have to use your hands, as the dough is rather thick). Bake for 15 minutes to let the dough begin to set.
6. Add M&Ms: Remove the pan from the oven and sprinkle some extra M&Ms across the top. This keeps them colorful and on the surface.
7. Finish baking: Return the pan to the oven and bake for another 5-10 minutes, or until the edges are golden and the center looks set.
8. Cool and cut: Allow the bars to cool completely in the pan before cutting into squares.
Pro Tips
- For extra color parbake the bars for about 15 minutes, then sprinkle extra M&Ms on top before finishing the bake. This keeps them bright and visible instead of sinking into the dough.
- Line the pan. Parchment paper makes it so much easier to lift out the bars and keeps the corners from getting too dark.
- Do not overbake. Cookie bars keep baking from residual heat after you pull them out of the oven. Take them out when the edges are golden and the center looks just set. Slightly underbaked gives you a soft, chewy texture.
- Use room temperature ingredients. A room temperature egg mixes more easily into the butter and sugar so your dough is smoother and bakes more evenly.
- Make ahead for party day. Bake these cookie bars the day before your celebration. Once fully cooled, store them tightly covered at room temperature. They stay soft for at least 3 days so they work beautifully for July 4th desserts you can prep in advance.
- Double the batch. Feeding a crowd at a backyard barbecue or potluck? Just double all the ingredients and bake in a 9 x 13 pan. Start checking around 22 to 25 minutes; every oven is different, so look for the same visual signs or golden edges and set center.

FAQs
Can I use regular M&Ms instead of Peanut Butter M&Ms?
Yes. Regular red, white, and blue M&Ms work too. Peanut Butter M&Ms add a creamy, nutty flavor, but plain or peanut varieties still create a fun 4th of July look.
Do I need to refrigerate these cookie bars?
No. You can store these patriotic dessert bars in an airtight container at room temperature for up to 3 days. If your kitchen is very warm, you can refrigerate them; just let them come to room temperature before serving for the best texture.
Can I freeze 4th of July Peanut Butter M&M Cookie Bars?
For sure! Once cooled and sliced, place the bars in a single layer on a baking sheet to freeze. Then transfer to a freezer bag or airtight container with parchment between layers. Freeze for up to 2 months. Thaw at room temperature.
How do I know when the bars are done?
Look for lightly golden edges and a center that looks set but still soft. If you insert a toothpick near the center, a few moist crumbs are perfect. If it comes out completely wet, give them a few more minutes.

I love how these 4th of July Peanut Butter M&M Cookie Bars deliver major festive energy with almost zero effort. One bowl, one pan, and you get soft, chewy cookie bars packed with chocolate and pops of red, white, and blue. They fit right in with all your favorite 4th of July desserts and July 4th desserts, whether you are heading to a potluck, hosting friends, or just watching fireworks from your backyard.
Bake a batch, let them cool while you get ready, then slice and go. They are the kind of treat that disappears fast, so you might want to snag one for yourself first.

4th of July Peanut Butter M&M Cookie Bars
Ingredients
- ½ cup 1 stick unsalted butter softened
- ½ cup brown sugar light or dark both work
- ¼ cup granulated sugar
- 1 large egg room temperature if possible
- 1 tsp vanilla extract
- 1 ½ cups all purpose flour
- ½ tsp baking soda
- ¼ tsp salt
- ¾ cup semi sweet chocolate chips
- ¾ cup red, white and blue Peanut Butter M&Ms plus extra for topping
Instructions
- Preheat your oven to 350°F. Line an 8×8 baking pan with parchment paper and lightly grease it.
- In a large bowl, cream the butter, brown sugar, and granulated sugar together until light and fluffy. Beat in the egg and vanilla.
- Add the dry ingredients. Mix in the flour, baking soda, and salt.
- Fold in chocolate chips, sprinkles and a few M&Ms (save some of the M&Ms for later).
- Press the dough evenly into the prepared pan (You’ll probably have to use your hands, as the dough is rather thick). Bake for 15 minutes to let the dough begin to set.
- Remove the pan from the oven and sprinkle some extra M&Ms across the top. This keeps them colorful and on the surface.
- Return the pan to the oven and bake for another 5-10 minutes, or until the edges are golden and the center looks set.
- Allow the bars to cool completely in the pan before cutting into squares.






