M&M Cookie Bars
*This post may contain affiliate links. See ourย affiliate policy here.
These M&M cookie bars are the easiest way to satisfy a cookie craving! They’re soft, chewy, and easy to customize for any holiday by swapping out the M&M colors. These cookie bars are perfect for sharing for parties, holidays, or anytime you want a tasty treat!
![M&M cookie bars topped with colorful M&Ms after slicing in rows from above.](https://onmykidsplate.com/wp-content/uploads/2025/02/MM-Cookie-Bars-close-up.jpg)
Table of Contents
Why We Love M&M Cookie Bars
- Larger Batch– Always a crowd please, these chewy M&M cookie bars are faster to make than individual M&M chocolate chip cookies because you don’t have to scoop (though those are delicious too!) This M&M bars recipe also makes a larger batch.
- Gooey Chocolate– Following this recipe will give you gooey, buttery cookie bars just full of colorful chocolate. This easy M&M cookie bar recipe will give you a soft and chewy treat every time, the perfect treat for any time of year.
- Great For Holidays– Fourth of July, Christmas, Easter, birthdays, these cookie bars work for almost all holidays. Just change up the color of the M&M chocolates to make them themed for your favorite holiday or party, easy peasy!
Ingredients For M&M Cookie Bars
![Ingredients for M&M cookie bars on a counter in bowls with text labels.](https://onmykidsplate.com/wp-content/uploads/2025/02/MM-cookie-bars-ingredients.jpg)
Find the full printable recipe with specific measurements and directions below in the recipe card.
- butter unsalted butter, softened to room temperature
- brown sugar– light brown sugar or dark brown sugar
- white sugar
- vanilla extract
- large eggs
- flour– all-purpose flour
- baking powder
- baking soda
- salt – if substituting salted butter, leave out the salt here.
- M&Ms Red, white and blue mix, or other colorful candy-coated chocolate.
- chocolate chips
This recipe does make a thick dough and is best mixed in the bowl of a standing mixer because they have a stronger motor. I recommend either mixing with a stand mixer or by hand (with butter that has softened properly!) Mixing with an electric hand mixer may cause the motor to break because the dough is on the thicker side and there is a lot of dough to fill the pan. These thick and chewy cookie bars are worth the effort!
How To Make M&M Chocolate Chip Cookie Bars
- Preheat the oven to 350 degrees Fahrenheit. Line a rimmed baking sheet (11inches x 17 inches) fully with parchment paper. It can help to line the pan from top to bottom the long way rather than the short direction to ensure the entire pan is lined fully. Some people also like to butter the parchment paper, but it’s not necessary. Aluminum foil that has been oiled lightly can also be used.
- In a large bowl add softened butter, brown sugar, and white sugar. Cream together the butter and sugar with an electric stand mixer until light and fluffy. Crack and lightly beat the eggs to break the yolks. Add eggs and vanilla to the butter and sugar mixture and fully mix with an electric mixer into the wet ingredients.
![Mixing bowl with softened butter, surrounded by bowls of white sugar, brown sugar on a counter from above.](https://onmykidsplate.com/wp-content/uploads/2025/02/MM-Cookie-Bars-02-683x1024.jpg)
![A mixing bowl with a cookie dough being mixed with a beaten egg in a bowl and vanilla on a counter nearby.](https://onmykidsplate.com/wp-content/uploads/2025/02/MM-Cookie-Bars-03-683x1024.jpg)
- In a separate medium bowl, combine flour, baking powder, baking soda, and salt. Mix the dry ingredients together. Add dry ingredients to the wet ingredients a little at a time until fully mixed with an electric mixer.
![A mixing bowl with flour and dry ingredients in small bowls nearby to be mixed for M&M cookie bars.](https://onmykidsplate.com/wp-content/uploads/2025/02/MM-Cookie-Bars-04-683x1024.jpg)
![Cookie dough in a mixing bowl with flour being added to the wet ingredients with a small bowl of M&Ms nearby.](https://onmykidsplate.com/wp-content/uploads/2025/02/MM-Cookie-Bars-05-683x1024.jpg)
- Fold in the chocolate chips and one cup of the M&M’s until mixed evenly into the cookie dough. The dough is thick so if using a hand mixer this step is best done with a wooden spoon or silicone spatula.
![Mixing bowl with cookie dough, chocolate chips, and M&M candies being mixed together on a counter from above.](https://onmykidsplate.com/wp-content/uploads/2025/02/MM-Cookie-Bars-06.jpg)
- Spread the cookie dough onto the prepared baking sheet. Take a few extra minutes to press the dough evenly into the pan. See notes in the recipe card! Sprinkle one cup of M&M’s across the top of the cookie dough.
![A baking tray with raw cookie dough pressed into a parchment lined pan mixed with M&MS and chocolate chips.](https://onmykidsplate.com/wp-content/uploads/2025/02/MM-Cookie-Bars-07-683x1024.jpg)
![Baking tray with cookie dough topped with M&Ms before baking.](https://onmykidsplate.com/wp-content/uploads/2025/02/MM-Cookie-Bars-08-683x1024.jpg)
This dough is thick. When you first lay it on the pan, it almost doesn’t look like enough dough. Take the extra couple minutes to press the dough with clean hands evenly into the pan, the dough does fit but needs a little love so it bakes evenly.
- Bake for 20-22 minutes or until lightly golden brown around the edges. The edges will be crisp edges, but we want the center to still be a little gooey. When you tip the pan slightly the center of the dough should move a little but not be raw in the center.
![Baked M&M cookie bars in a baking sheet from above after baking.](https://onmykidsplate.com/wp-content/uploads/2025/02/MM-Cookie-Bars-09.jpg)
- Let the bars to cool for at least 20 minutes on the pan, then use the parchment paper to lift the bars out of the pan. Don’t skip this step! The cookie bars continue to bake on the pan, plus it can be difficult to move without breaking if you remove them too early. Allow the cookie bars to finish cooling completely on a wire rack, clean kitchen towel or on the parchment on the counter. Cut into 36 even bars with a sharp knife, then serve and enjoy!
M&M Cookie Bar Variation Ideas
Add Chopped Nuts– chopped pecans, peanuts or walnuts are all delicious in this recipe! I recommend using about a cup of nuts in the dough and sprinkling more on top so the cookie bars come together.
Use Different M&M Candies– Try experimenting with pretzel, fudge, peanut, caramel, mint or my personal favorite, peanut butter M&Ms! You can also change the color for each holiday, like using a red and green Christmas M&M pack for the holidays.
![A plate of cookie bars topped with colorful candy-coated chocolates.](https://onmykidsplate.com/wp-content/uploads/2025/02/MM-Cookie-Bars-plate-1.jpg)
Swap Out The Chocolate– I used semisweet chocolate, but you can also use dark chocolate, milk chocolate or white chocolate chips. Other flavors like peanut butter, butterscotch and caramel chips can be swapped cup for cup.
Add Oreos– Try gently crushing a good two handfuls of Oreos in a zip-top bag and add it to the top of this cookie dough before baking. Delicious!
Top With Ice Cream– Warm cookie bar topped with easy homemade no churn chocolate chip ice cream, does it get any better? You can also line the pan with parchment paper and then slice the ice cream to make tasty ice cream sandwiches, yum!
![Cookie bars stacked on a plate from the side with red, white and blue MM candies on top of the bars.](https://onmykidsplate.com/wp-content/uploads/2022/05/MM-Cookie-Bars-stack-plate.jpg)
Do I Have To Use Parchment Paper In The Pan?
While you can skip using parchment paper and just oil the pan generously with butter or cooking oil, I don’t recommend it as it can be harder to get the cookies out of the pan.
Before you cut the cookie bars they are one giant slab which can just be tricky to get out of the pan in a single sheet without parchment paper.
You can also use oiled aluminum foil for easy removal. This does lift out easier from the pan than skipping the foil, but is more likely to rip or the bars are more likely to get stuck than on parchment paper..
The Cookie Bars Are Too Gooey To Cut
Make sure to let the cookie bars cool all the way before you start slicing. I know it’s really hard to have patience because these bars look really delicious!
If after cooling the cookie bars are still too gooey, you can try sliding the cookie bars using the parchment paper back onto a cookie sheet. Then place them into the refrigerator or freezer for a little bit to firm up before slicing.
How Long Do These Chewy Cookie Bars Last?
These M&M cookie bars can be stored on the counter for about 3-4 days in an airtight container. They can also be placed in the refrigerator for about a week or can be frozen for up to a month.
Other Recipes You Will Love
Chewy Chocolate Chip Cookie Sticks
Christmas Frosted Sugar Cookie Bars
Snickerdoodle Cookie Bars
![Square view of M&M cookie bars topped with colorful chocolate candies sliced from above.](https://onmykidsplate.com/wp-content/uploads/2025/02/MM-Cookie-Bars-square-2-450x450.jpg)
M&M Cookie Bars
Equipment
- 1 11x 17 rimmed baking sheet
- 1 parchment paper or lightly oiled aluminum foil
- 1 Large Mixing Bowl
- 1 Medium mixing bowl
- 1 Measuring cups and spoons
- 1 Silicone spatula
- 1 Fork or whisk to blend eggs
- 1 stand mixer or mix by hand. I don't recommend a hand mixer for this recipe, see notes.
Ingredients
- 1 cup butter unsalted butter softened to room temperature
- 1 ½ cup brown sugar light brown sugar or dark brown sugar
- ½ cup white sugar
- 2 teaspoons vanilla extract
- 3 large eggs
- 3 cups flour all-purpose flour
- 1 teaspoon baking powder
- 1 teaspoon baking soda
- 1 teaspoon salt
- 2 cups M&Ms Red, white and blue mix, or other colorful candy-coated chocolate.
- 2 cups chocolate chips
Instructions
- Preheat the oven to 350 degrees Fahrenheit. Line a rimmed baking sheet fully with parchment paper.
- In a large mixing bowl add softened butter, brown sugar and white sugar. Cream together the butter and sugar with an electric mixer until light and fluffy. Crack and lightly beat the eggs to break the yolks. Add eggs and vanilla to the butter and sugar mixture and fully mix with a stand mixer into the wet ingredients.
- In a separate medium sized bowl, combine flour, baking powder, baking soda, and salt. Mix the dry ingredients together. Add dry ingredients to the wet ingredients a little at a time until fully mixed with an electric mixer.
- Fold in the chocolate chips and one cup of the M&M’s until mixed evenly into the cookie dough. The dough is thick so if using a hand mixer this step is best done with a wooden or silicone spatula.
- Spread the cookie dough onto the prepared baking sheet. Take a few extra minutes to press the dough evenly into the pan. See notes below. Sprinkle one cup of M&M’s across the top of the cookie dough.
- Bake for 20-22 minutes or until lightly brown around the edges. When you tip the pan slightly the center of the dough should move a little but not be raw in the center.
- Allow cookie bars to cool for at least 20 minutes on the pan. Don't skip this step! The cookie bars continue to bake on the pan, plus it can be difficult to move without breaking if you remove them too early. Allow the cookie bars to cool completely. Cut into 36 even bars and enjoy!
Notes
Nutrition
Did You Make This?
I would love to see it! Share your thoughts with me in the comments below!
I made these with butter flavor crisco as butter is so expensive. They came out beautiful
Glad you enjoyed them Judy!
If i cut the recipe in half could i use a 9×13 dish? What would bake time be?
Hi Andrea, I’ve never made this recipe that way before. Likely you will have to watch the bake time carefully. Since I haven’t prepared it the way you are suggesting with this recipe, I haven’t tested how long the bake time would be for this version. If you try it, let me know how it goes. -Kristy
I baked this in 2 8×8 pans and it was just right
Can I substitute eggs with something else? Egg allergy.
Applesauce is usually the first thing I try in most baked goods as a replacement for eggs since it has a mild flavor. It will make the cookies denser and a bit softer. You want to use 1/4 cup per egg or 3/4 cup of applesauce total. I have not tried this swap in this specific recipe, but have in other similar recipes and it should work just fine. Let me know how it goes! -Kristy