M & M Cookie Bars
M&M cookie bars are an easy-to-make dessert that is delicious and satisfying. Making these bars ahead of time will save time and effort when you are ready to eat them. These take just 10 minutes to mix and 20 minutes to bake.

Whip up a batch of these deliciously sweet M&M cookie bar treats for your next 3:00 pm afternoon craving. They are as easy as making the dough and baking it in your baking pan instead of making cookies. These store well and can be customized with a variety of ingredients such as chocolate chips, peanut butter chips, etc.
Why make these bars?
- This bar recipe is adapted from my chocolate chip cookie bars, which have a soft and chewy texture, loaded with lots of sweet M&M candy.
- I am using an electric mixer (hand mixer). But you can also use a large bowl and a whisk.
- And most of the ingredients are simple pantry staples or easy to find, such as the candy.
- Also, these can be made in just about 30 minutes from start to finish.
- This is a kids’ favorite treat, so make sure to double the recipe.
- And the process for these M&M bars is also very simple and straightforward, with no chilling time in between required before baking.

Ingredients and substitutions
- Flour – It’s best to use plain all-purpose flour for these cookies. They will spread, but that is what they are supposed to do.
- Butter – Use unsalted butter so you can control the amount of salt. But if salted butter is all you have, use it and omit salt in the recipe. And make sure the butter is at room temperature, not melted. Otherwise, the bars will be very soft and puffy.
- Sugars – We have both light brown sugar and white sugar, and they are both necessary. The brown adds softness to the cookie, while the white adds that crispness.
- Vanilla – Use good-quality vanilla extract, as it does make a huge difference. I use my homemade vanilla extract.
- M&Ms – Of course, I am using classic M&Ms, but you can also use similar candy if you prefer. Make sure to be generous, after all, we want to make sure each bite has at least a few candies in there.

Step-by-step: How to make the best M&M cookie bars
- Preheat oven to 350°F / 177°C / Gas Mark 4. Line a 9 x 9-inch square cake pan with parchment paper, leaving an overhang so you can lift the baked bar out easily.
Pro tip – You can also use a baking dish and line it with foil.

- Dry ingredients – In a medium mixing bowl, combine flour, baking powder, baking soda, and salt – Set aside.
- Wet ingredients – In the bowl of a stand mixer, with the paddle attachment, cream butter and both white sugar and brown sugar until almost light and fluffy.
Pro tip – It is important to cream until the sugar has almost dissolved. Otherwise, the cookie bars will not be soft. - Next, add the eggs, one at a time, followed by the vanilla extract and flour mixture.
Pro tip – Once you add the flour, do not overmix, as we do not want to activate the gluten in our flour.

- Finally, add the M&M candy and stir or fold gently to combine with a spatula to prevent them from breaking.
Pro tip – This cookie dough can be kept in the refrigerator for up to 3 days or frozen for up to a month in freezer bags. - Pour the batter into the prepared baking pan and spread it evenly. Sprinkle additional M&Ms on top of the dough.

- Bake in a preheated oven for 20 to 25 minutes or until the edges start to get golden brown.
- Remove and let cool in the pan for 10 minutes. While still warm, cut into 16 squares as shown in the video.
Pro tip – You can sprinkle a teaspoon of sea salt on top of the baked bars, too. - Enjoy!

Tips & Tricks
- Cream the butter and sugars well so the cookie bars are soft and chewy.
- Use the right baking pan (9 x 9-inch square pan or 8 x 8- inch square pan), not bigger or smaller. Otherwise, the bars will be too thin or too thick.
- Do not over-bake. Otherwise, these will become dry very easily. It is best to underbake them rather than over bake these.
- Make sure to use a generous amount of M&M and stir them well so they are well distributed.
- Be gentle and fold the M&Ms in the dough as they bread easily.
- You can use regular or peanut butter M&Ms. You can also substitute some M&Ms with chocolate chips.
- Cut the bars while they are still warm to get fewer crumbs.
Variations
- Holiday – These use only the red and green holiday M&Ms for Christmas.
- 4th of July – Using only red, white, and blue M&Ms, make the perfect 4th of July cookie bars.
- Chocolate chips – Add a few white chocolate chips or dark chocolate chips to make chocolate chip M&M cookie bars.
- You can also add 2 tablespoons of peanut butter to the dough to make a peanut butter M&M cookie bar.
- Toffee flavor – Use all dark brown sugar with melted butter for a rich toffee flavor in these bars.
- Cookies – Of course, you can scoop this dough into cookie dough balls and bake for 10 to 12 minutes to make M&M cookies instead of bars.

More cookie bar recipes
- Snickerdoodle Bars
- Gingerbread Bars
- White Chocolate Cranberry Bars
- Apple Pie Bars with Crumble
- Best Cherry Bars or Best Apricot Crumble Squares
- Cranberry Shortbread Squares
- Chocolate Pecan Squares
- Chocolate Marzipan Squares – Christmas Treats
- Recipe for Pecan Pie Brownies or Pecan Blondies
- See all bars and blondies or brownies
Frequently asked questions
These mu0026m cookie bars will keep in an airtight container for up to a week. And you can chill the cookies in the refrigerator for up to 3 days. Or, you can also freeze the dough for up to 3 months or freeze the cookies for up to a month.
Yes, you can freeze the dough as well as the baked bars.
– Dough – You can freeze the dough for a month, wrapped well in a ziplock bag. Then, thaw in the fridge overnight when ready to use.
– Unbaked dough – And, you can also freeze the unbaked cookie dough in a freezer bag for up to a month.
– Baked cookie bars – Alternatively, freeze the baked cookie bars between parchment papers for up to 3 months and thaw in the fridge overnight when ready to use.
This recipe works best with eggs, but you can use my eggless chocolate chip cookies and substitute all or half the chocolate chips with M&Ms and bake the dough in a 9 x 9-inch square baking pan.

M&M Cookie Bars
M&M Cookie Bars are an easy-to-make dessert that is delicious and satisfying. Making these bars ahead of time will save time and effort when you are ready to eat them. These take just 10 minutes to mix and 20 minutes to bake.
Video
Ingredients
- 1 cup (227 g) Unsalted butter room temperature
- ¾ cup (100 g) Brown sugar
- ¾ cup (110 g) White sugar
- 2 large Egg large
- 3 cups (375 g) All-purpose flour
- 1 tsp Baking soda
- ¼ tsp Baking powder
- ½ tsp Salt
- 2 tsp Vanilla extract
- 2 cup (400 g) M&M candy Save some for the top.
Method
- Preheat oven to 350°F / 177°C / Gas Mark 4. Line a 9 x 9-inch square cake pan with parchment paper making sure to leave an overhang so you can pick the baked bar out easily. Pro tip – You can also use a baking dish and line it with foil.
- Dry ingredients – In a medium mixing bowl, combine flour, baking powder, baking soda, and salt – Set aside.
- Wet ingredients – In the bowl of a stand mixer, with the paddle attachment, cream butter and both white sugar and brown sugar until almost light and fluffy. Pro tip – It is important to cream until the sugar has almost dissolved. Otherwise, the cookie bars will not be soft.
- Next, add the eggs, one at a time, followed by the vanilla extract and flour mixture. Pro tip – Once you add the flour, do not over mix as we do not want to activate the gluten in our flour.
- Finally, add the M&M candy and stir or fold gently to combine with a spatula to prevent them from breaking. Pro tip – This cookie dough can be kept in the refrigerator for up to 3 days or frozen for up to a month in freezer bags.
- Pour the batter into the prepared baking pan and spread it evenly. Sprinkle additional M&Ms on top of the dough.
- Bake in a preheated oven for 20 to 25 minutes or until the edges start to get golden brown.
- Remove and let cool in the pan for 10 minutes. While still warm, cut into 16 squares as shown in the video. Pro tip – You can sprinkle a teaspoon salt on top of the baked bars too.
- Enjoy!
Notes
- Cream the butter and sugars well so the cookie bars are soft and chewy.
- Use the right baking pan (9 x 9-inch square pan or 8 x 8- inch square pan) not more big or small. Otherwise the bars will be too thin or too thick.
- Do not over bake otherwise these will become dry very easily. It is best to underbake them rather than over bake these.
- Make sure to use a generous amount of M&M and stir them well so they are well distributed.
- Be gentle and fold the M&Ms in the dough as they bread easily.
- You can use regular or peanut butter M&Ms. You can also substitute some M&M with chocolate chips.
- Cut the bars when it is still warm that you will have less crumbs.
- Variations
- Holiday – These use only the red and green holiday M&Ms for Christmas.
- 4th of July – Using only red, white, and blue M&Ms make the perfect 4th of July cookie bars.
- Chocolate chips – Add a few white chocolate chips or dark chocolate chips to make chocolate chip M&M cookie bars.
- You can add 2 tablespoons of peanut butter to the dough to make a peanut butter M&M cookie bars
- Toffee flavor – use all dark brown sugar with melted butter for a rich toffee flavor taste in these bars
- Cookies – Of course, you can scoop this dough into cookie dough balls and bake for 10 to 12 minutes to make M&M cookies instead of bars.
Equipment you will need
Nutrition
Tried this recipe?
Mention @veenaazmanov_kitchen or tag #veenaazmanovkitchen!Did you LIKE this recipe? Save it for later on Pinterest.
Follow on YouTube, Facebook, Twitter, Instagram or TikTok
Subscribe to receive new recipes right to your inbox.












I am so excited to try these cookie bars!! I love m&ms more when they have been baked, so I know that I am going to be all over these! Thanks so much for the recipe 🙂
These M & M Cookies Bars are so sweet, perfect, and delicious. Love how simple they are to make!
These pretty bars were so fun to make and perfect for Christmas! My kid just adored them, thanks.
Such a holiday classic treat that is super yummy! Everyone loves these and they are always a crowd favorite! Thank you so much for sharing!
Thank you, Lori. Happy you enjoyed these.
Ahh these look so good! There isn’t enough time this season to bake everything I want haha but these cookie bars would be a fantastic idea to make with the leftover Christmas candies I’ll have. Soft and buttery…I can hardly wait 😀
These bars were so delicious, thanks! Will definitely make them again!
My kids love these yummy M&M cookie bars. They are the perfect little sweet treat after school.
who can say no to m&M cookie bars? so crisp and moist with little surprises of m&m’s!!