4th Of July M&M Cookie Bars

Jump to RecipeAdd as trusted SourceRate this Recipe
5 from 92 votes

Celebrate Independence Day with these irresistible Fourth of July M&M cookie bars, a delicious red, white, and blue treat. These homemade cookies are bursting with patriotic M&Ms and sprinkles, making them the perfect festive dessert.

Three chocolate chip cookie squares on a white plate that has red, white and blue M&M's.

Want to save this recipe?

Enter your email & I’ll send it to your inbox. Plus, get great new recipes from me every week!

Save Recipe

This page may contain affiliate links; please see my disclosure for policy details.  I earn commissions if you shop through the links on this page.

Cookies With A Patriotic Twist

When it’s time for a patriotic celebration, there’s nothing quite like these chewy cookie bars to add some colorful fun! These tasty treats are packed with vibrant colors and a delicious mix of chewy cookie dough and irresistible M&M candies. Whether it’s Independence Day, Memorial Day, or any other patriotic party, these bars are guaranteed to be a crowd-pleaser for kids and grown-ups alike.

I love these bars for packing and taking to potlucks. They are easy to make, and I like to change out the colors of M&M’s.

These Cookies Are

  • Easy to make in one bowl with basic ingredients
  • Ready to bake immediately or chill for later.
  • Festive treats that taste amazing for patriotic occasions or any other time of year.
  • Perfect for packing up and taking to potlucks, block parties, picnics, or gift-giving.
  • Easily changeable, you can make these with any holiday M&M’s, regular M&M’s or mini M&M’s. You can also use white chocolate chips, peanut butter or butterscotch chips.
  • You can use any color of M&M’s for these cookie bars.
  • Are a fun way to add some patriotic colors to this easy cookie recipe 

This cookie dough is easy to make with everyday baking staplesall-purpose flourbaking soda, light brown sugar, granulated sugar, eggs, and our favorite spice, vanilla.

Add these ingredients to make these bar cookies extra special:

  • Semi-Sweet Chocolate Chips: Chocolate chips add flavor and give cookies a delicious textural twist. 
  • M&M: Not only do the red, white and blue M&M’s make these cookies look cute, but they also add delicious pockets of melted chocolate throughout each bite! 
  • Sprinkles: Patriotic-colored sprinkles make these cookies extra festive. 
Ingredients to make July 4th cookie bars; flour, sugar, butter eggs, M&M's, sprinkles.

How To Make Fourth Of July Cookies: Step-By-Step 

See the recipe card below for complete instructions.

Step 1. Line a 13″ x 9″ baking pan with parchment paper.

Step 2. Add the softened butter, brown sugar, and granulated sugar in a large bowl.  Cream the sugar and butter with an electric hand mixer on medium-high speed.

Step 3. Add the eggs, salt and vanilla, and mix on medium speed until incorporated. You can use your stand mixer for this recipe or a handheld mixer.

Step 4. In a medium bowl, mix the dry ingredients. Gradually add the flour mixture to the batter, mixing until it becomes a thick cookie-dough consistency. Use a rubber spatula to scrape down the sides of the bowl and ensure it all mixes in.

Step 5. Fold in the M&M’s, semisweet chocolate chips and sprinkles with a wooden spoon or spatula until evenly distributed.

White sugar, brown sugar and butter in a clear glass bowl.
Cream butter and sugars
A clear bowl with cookie batter and a raw egg and vanilla.
Add the egg, vanilla and salt
Adding flour to a cake batter in a clear glass bowl.
Mix in the dry ingredients
Cookie batter in a clear glass bowl with red, white and blue M&M and sprinkles.
Stir in the M&M’s and sprinkles

Step 6. Press the cookie dough into the prepared baking pan in an even layer. If desired, add additional M&Ms or sprinkles on top. Bake for 30-35 minutes.

Step 7. When done, set the bars on a cooling rack. When completely cooled, you can pull them out of the pan onto a cutting board and cut them into squares. You can also leave the cookies in the pan; just cut and ENJOY!

Raw cookie dough with red, white and blue M&M and sprinkles. in a baking pan.
Press the dough in the pan
Baked red, white and blue bar cookies in the baking pan.
Bake until golden brown
Redd, white and blue M&M cookie bars cut into squares with patriotic napkines.
Cut into squares
A white plate with red, white and blue cookies with patriotic napkins.
Enjoy a cookie

See all of those colors? That’s why we like to call these fireworks cookies.

One hot oven lot for tip with text overlay.
  • Make sure your butter is softened but still cool to the touch.
  • Your brown sugar should be soft and fresh. The moisture in the brown sugar helps make these cookies chewy.
  • Save some of the M&M’s and sprinkles and press on the top of the dough right before baking; it gives the cookies more color.

Bar Cookies FAQs

When Do You Know When The Bars Are Done

The edges of the cookie will be set, and they’ll be golden. The center will not be completely set, but a toothpick will come out clean in inserted. A few streaks are ok; you don’t want chunks of cookie dough pulled out.

As soon as they’re cool, transfer the cut cookies to an airtight container and store them at room temperature.

A bar cookie is made by pouring or pressing batter into a baking pan or baking and cutting it into squares. Brownies and lemon bars are also considered bar cookies.

Want To Store For Later: Here’s How

Store these cookies in an airtight container for up to four days.

You can also freeze the baked cookies. Once cooled and cut into squares, store the cookie bars in an airtight freezer container for up to three months.

Learn How To Make The Bar Cookie Dough Ahead

Nothing is better than having cookie dough in the fridge or freezer so you can get a head start on party prep or have it ready to bake when needed.

  1. Make the cookie dough and keep it in the refrigerator for up to three days, then transfer it to the baking pan and bake.
  2. Freeze the unbaked cookie dough by wrapping it in plastic wrap and then in an airtight freezer container or bag for up to three months. Allow it to come to room temperature, then pat it in the pan and bake as instructed.

More Patriotic Desserts

Try these favorite red, white and blue desserts for cookies, cakes and more.

Rolling pin graphic with flowers.

Recipe

M&M cookies on a white plate with a bite taken out of it.

4th Of July M&M Cookie Bars

Jere’ Cassidy
Try these easy-to-make Fourth of July Cookies filled with red, white and blue M&M's and sprinkles for a festive cookie treat that is always a crowd-pleaser. These bars are perfect to pack up and take to picnics, pool parties and all of your festive celebrations.
5 from 92 votes
Prep Time 10 minutes
Cook Time 30 minutes
Total Time 40 minutes
Course Dessert, July 4th Cookies
Cuisine American Dessert
Servings 12 bars
Calories 598 kcal

Ingredients
 

Instructions
 

  • Heat the oven to 350℉ and line a 9×13 baking pan with parchment paper. If you do not want to remove the cookies from the pan then light spray the bottom with cookie spray or grease with butter.
  • Add the butter, granulated sugar and brown sugar to a large mixing bowl, and using a hand mixer on medium speed, cream together until light and fluffy. You can do this with a stand mixer as well.
  • Add the eggs, salt and vanilla, then mix on medium speed until combined.
  • Add one cup of the flour, the baking soda and baking powder to the wet ingredients and mix on low to combine. Then add the rest of the flour and mix on medium speed until the flour is incorporated. Scrape the side of the bowl and mix quickly to get everything mixed in.
  • With a wooden spoon, stir in the chocolate chips, M&M's and sprinkles. If you are using a stand mixer, you can mix this in on a very low speed, being careful not to break up the M&M's.
    Optional – hold out some extra M&Ms and sprinkles for the top of the dough.
  • Press the cookie dough into the prepared baking pan in an even layer. Add additional M&Ms or sprinkles on top if desired.
  • Bake for 30-35 minutes or until a toothpick inserted in the center comes out mostly clean.
  • Let the cookies cool on a wire rack before cutting them into squares and serving. Enjoy!

Storage

  • These cookies will keep in an airtight container for up to four days.
  • You can freeze the baked cookies once completely cooled in an airtight freezer container. Stack the cookies with wax paper or parchment paper between the layers. Let thaw on the countertop before eating.

Notes

Cookie Questions

Can you leave out the chocolate chips? 
Yes, you can; just increase the amount of M&Ms from 3/4 cup to 1 1/4 cups
Can you make the cookie dough ahead?
  1. Make the cookie dough and keep it in the refrigerator for up to three days, then transfer it to the baking pan and bake.
  2. Freeze the unbaked cookie dough by wrapping the dough in plastic wrap and then in an airtight freezer container or bag for up to three months.  Allow to come to room temperature then pat in the pan and bake as instructed.

Variations

  • Use white chocolate chips or mix the white and semi-sweet chips.
  • Try using peanut butter chips or butterscotch chips
  • You can change the color of the M&Ms to suit the holiday or make them for any occasion.
 
 

As an Amazon Associate I earn from qualifying purchases.

Nutrition

Serving: 1Calories: 598kcalCarbohydrates: 77gProtein: 8gFat: 30gSaturated Fat: 17gPolyunsaturated Fat: 2gMonounsaturated Fat: 7gTrans Fat: 1gCholesterol: 75mgSodium: 785mgPotassium: 199mgFiber: 4gSugar: 46gVitamin A: 554IUVitamin C: 0.1mgCalcium: 155mgIron: 4mg
Did You Try My Recipe?Follow me on Facebook @onehotoven and tag #onehotoven to show me your dish!

First published: June 12, 2023. Last updated: May 3, 2024, for better readability.

Thank you for stopping by the One Hot Oven blog.  Please leave a comment to say hello or tell me what you are baking; I always love hearing from fellow bakers. Have any questions or want to chat about the recipe? Please visit my About page for information, and I’ll be happy to help!

About Jere’                             

From learning to cook on a farm in Indiana to culinary school in California, my passion for food is never-ending.  Turning on my oven to bake something for friends and family is my happy place, and I am glad to be here at One Hot Oven sharing sweet and savory family-friendly recipes for your cooking and baking inspiration.

One Hot Oven Logo.

Similar Posts

  • Homemade Strawberry Vinaigrette in Minutes—No Cooking Needed

  • Old Fashioned Peanut Butter Cookies

  • Chocolate Fudge Cake

  • Lip-Smackin’ Crockpot BBQ Chicken Sliders

9 Comments

  1. 5 stars
    Thanks so much for sharing. Loved this recipe. I did swap the red, white and blue M&M’s, and used the fall colored M&M’s instead… But that’s the great thing about it- you can tweak it to mix it up! It’s a super fun, delicious dessert. Thank you for the inspiration!

  2. 5 stars
    Such a fun and tasty treat to show your patriotism. I might have to make these again for my church’s women’s group, they’d go crazy over these!

  3. 5 stars
    These are not only super cute but just delicious! My niece and I made a practice round for 4th of July and we can’t wait to make them again. Sooo good!

  4. 5 stars
    These fourth of July cookies are chewy and decadent! They are festive and sooo pleasing! Definitely having these again!

  5. 5 stars
    It’s not even 4th of July yet, but I made these for a picnic last weekend and they were a huge hit. Everyone asked for the recipe so they could make them for the 4th!

5 from 92 votes (86 ratings without comment)

Leave a Reply

Your email address will not be published. Required fields are marked *

Recipe Rating