M&M Cookie Bars


Total Time:

45 minutes



M&M Cookie Bars!! One of my favorite desserts of all times. And also be warned – one is NOT to be left alone with a pan of these!

M&M Cookie Bars from www.whatsgabycooking.com (@whatsgabycookin)

Is there anything better than a soft cookie in bar form? Where the edges are just lightly golden brown and a tad bit crunchy… and the inside is gooey and soft and melts in your mouth? Let me answer that for you…. no.

M&M Cookie Bars from www.whatsgabycooking.com (@whatsgabycookin)

It doesn’t get better than this when it comes to a quick and easy dessert that literally every single person will love.

M&M Cookie Bars from www.whatsgabycooking.com (@whatsgabycookin)

These bars are my favorite sugar cookie recipe baked up in bar form. A few tips and tricks. 1: use a 9×9 pan. Don’t try and do it in a 9×13 or an 8×8… it won’t be the same. Trust me – there’s a reason I developed it this way! And a glass baking dish doesn’t retain heat the same way a metal baking dish does… so use a metal baking dish!

M&M Cookie Bars from www.whatsgabycooking.com (@whatsgabycookin)

2: don’t skimp on the M&M’s and the sprinkle of salt on top. It really makes all the flavors sing!

M&M Cookie Bars from www.whatsgabycooking.com (@whatsgabycookin)

3: After the baking time – LET THESE SET FOR 2 HOURS. They might look a little under-baked but they need time to finish residual baking once they come out of the oven.

4: proceed with caution once these are baked and cut. I’ve eaten pretty much an entire pan once before and I’m not even remotely exaggerating. Thomas had to remove the last 2 squares from the house because I could NOT BE STOPPED.

Soft Sugar M&M Cookie Bars

4.9 from 9 votes
Prep Time 5 mins
Cook Time 40 mins
Total Time 45 mins


  • 1 cup butter melted
  • 2 cup light brown sugar
  • 4 teaspoons vanilla extract
  • 2 large eggs
  • 2 cups all purpose flour
  • 1 teaspoon baking powder
  • ¼ teaspoon of baking soda
  • 1 cup Milk Chocolate M&M’s plus extra for garnish
  • Maldon sea salt optional


  • Preheat oven to 350 degrees.
  • In a large bowl, combine the melted butter and brown sugar and mix with a wooden spoon for 1 minute until combined. Add the vanilla and eggs, making sure to scrape down the sides of the bowl, and mix until fully incorporated.
  • Add the dry ingredients into the bowl and slowly mix until just combined. The batter will be a bit stiff, but that's normal. Fold in 1 cup of the Milk Chocolate M&M’s.
  • Spray a 9x9 baking pan with baking spray and line it with parchment paper. Spoon the batter into the prepared baking sheet and sprinkle with the remaining Milk Chocolate M&M’s and Maldon sea salt if desired and transfer it into the oven. Bake for 35-40 minutes. Once the bars have baked, remove them from the oven and let cool for at least 2 hours before cutting and serving.

5 Tips from a Private Chef email series

Get my latest recipes + my bonus 5 Tips From a Private Chef email series

Similar Posts

Leave a Reply

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

Recipe Rating


  1. Karen

    I have been cooking the M&M bars for 45 min and they still aren cooked. Very soupy. What did I do wrong? Followed the re I’ve exactly but it wasn’t stiff when I mixed it. It was very liquidy.

    • Gaby

      hmmmmm it should def be thick when mixed! Are you sure you added the correct amount of flour? That would be why it wouldn’t thicken up

    • Shauna Garside

      Same thing just happened to me. I think there is too much butter. Should probably be one stick of butter instead of one cup. One cup is really a LOT of butter.

    • Gaby

      the amount of butter is correct as listed. What kind of baking dish did you use? 9×9? Metal?

    • Erica

      I had the same issue! I baked for 55 minutes and they never fully set up. Toothpick came out clean once I removed from the oven but when I cut after cooling for 2 hours, not done.

    • Gaby

      the end result is totally different – it’s important to melt

  2. Bridget

    I have mini M&M’s can i substitute with them ? it calls for 1 cup and then sprinkle the top with them before baking. is that another cup or 1/2 cup ?

    • Gaby

      mini’s work! 1 cup in the batter and about an extra 1/4 cup on top!

  3. Shilpa

    I tried these today. They are so tasty but very cakey and not so much cookie like in texture. What could I have possibly done different? Baked for fewer minutes?

  4. Tyler

    5 stars
    Yum! Followed the recipe to a T and they turned out perfectly. Taking them to work with me tomorrow so I don’t eat the whole pan myself!

  5. Jen

    5 stars
    Made these 3x over the holidays… yes THREE. Lol
    Some gifted, some served when hosting, some hoarded for ourselves…

    Recipe was followed to a T….
    Turned out perfectly each time. No issues.
    Melted the butter in the microwave and it pulled everything together perfectly.
    The flakes of salt on the top are 200% mandatory. They really make this treat amazing!
    One more family function this weekend me while I was asked to bring apps, I’m also bringing some of these

    Thanks for the amazing recipe!

  6. Nikki

    Have you tried using chocolate discs instead of m&m’s? Hope it works ‘cause I just popped them in the oven!

  7. Amy Shriber

    Just made these for an Oscar Party I am having tomorrow night and followed the recipe exactly as stated.
    Melted the butter in the microwave and used a wooden spoon to really mix the butter into the brown sugar. Batter was thickened before it went into the pan.
    They came out perfect and just like you said: looked a little underdone when I pulled them out of the oven and then PUT A NOTE ON THEM NOT TO BE TOUCHED for 2 1/2 hours and that was the crucial part!!
    Agree with another review that the maldon salt is SO necessary to give it the perfect balance in the mouth.
    They are pretty to look at and delicious to eat!
    Thanks! Will definitely make again!

  8. Katie

    5 stars
    So delicious and easy. The hardest part was waiting the 2 hours for the bars to cool (as in it was so hard to wait that after an hour I had to try a piece of the edge). The salt sprinkle is key, next time I’ll add more!

  9. Kim W

    4 stars
    Hi! I made these. The flavor is so delicious and addictive. Mine are really soft. I baked on a lower rack for 36 minutes. I’m not a great baker. I will move up one rack and bake 2 extra minutes next time. These are so easy and were fun to make with a child helper. Thanks Gaby!

  10. Jen

    5 stars
    Making these again today! Using red m&m’s for a belated Galentine’s dinner tonight! These are a tried and true, no fail dessert. So glad I found this recipe at Christmas – it’s my go-to! ❤️

  11. Monika

    5 stars
    An all time favorite!! Any excuse to not just eat them out of the bag!

  12. Molly M

    Hi, I hope you’re doing well! I’m in NYC and want to bake this while we are sheltering in place. My husband could only find smoked maldon salt at the grocery store (we’re so lucky that we even have access to groceries still; so this is really a ridiculous thing to be concerned about on my part). Will smoked maldon taste ok on these? Also, do you recommend salted or unsalted butter?

    • Gaby

      unsalted butter is best but if you only have salted that’s fine too! Just omit the salt from the recipe! And smoked salt might be incredible in this!! You could also just leave it out entirely if you don’t want a hint of smoky flavor. Bottom line: it’s gonna be good no matter what you do and stay safe! xoxo

  13. Renee

    5 stars
    AMAZING!!! I only had an 8 inch pan, so I baked it for 43 minutes. They turned out fantastic and so easy to put together quickly.