These rainbow M&M cookies are soft-baked style with extra chewy edges. We recommend mini M&Ms so you can pack more into each cookie. Chilling the cookie dough for 2 hours is an imperative step, so make sure you set aside enough time.

This was one of the first recipes ever published on my website. It’s always been a favorite, but I recently began adding a little extra baking soda and flour so the cookies hold shape better. (You’ll see 1 teaspoon of baking soda and an extra 2 Tablespoons of flour listed in the written recipe below.) I figured you’d want a reminder about these cookies or, if you’re new to my website, a little encouragement to try them!
One reader, Austin, commented: “These are probably some of the best cookies I’ve ever had. Even the next day they are so incredibly soft and chewy. I have made many cookies in my day (too many), and these make the top 3 easily. โ โ โ โ โ ”
Here’s What to Expect:
- Texture: Think about a soft-baked chocolate chip cookie. Truly, does anything compare? These M&M cookies have the same tender, melt-in-your-mouth texture. Theyโre extra chewy with dozens of mini M&Ms packed in each cookie. Do you crave even more texture? You’ll enjoy my oatmeal M&M cookies.
- Flavor: I use extra brown sugar in this cookie dough, so you’ll taste that warm and classic flavor in each bite. Pair that with plenty of butter and oodles of chocolate candies.
- Ease: We have a pretty straightforward cookie dough here. After chilling the dough, roll into balls, then bake. A beginner could easily master this recipe.
- Time: Set aside enough time to chill this cookie dough. Itโs a fairly sticky dough and without time in the refrigerator, your cookies will melt all over the baking sheet.

Soft-Baked M&M Cookies โ Key Ingredients
A few ingredients add to their signature flavor and texture. Hereโs how:
- Flour: I used to prepare this cookie dough with 2 cups of flour, but started adding another 2 Tablespoons. This helps soak up more liquid (butter, egg) so the cookies stay thicker.
- Cornstarch: A touch of cornstarch helps create a softer, thicker cookie. I add it to many of my cookie recipes, including these super soft chocolate chip cookies. By the way, that cookie dough is pretty similar to this one. Here we’re using a little more flour, sugar, and an extra egg yolk. (And thus yields more cookies.)
- Butter: Room temperature butter is the base of this cookie recipe.
- Granulated & Brown Sugar: Sugar does more than sweeten the cookies. The granulated sugar helps them spread and the brown sugar keeps them soft. For extra soft and tender cookies, we use more brown sugar than white granulated sugar here.
- 1 Egg + 1 Extra Egg Yolk: Have you ever baked my chewy chocolate chip cookies before? They’re the most popular cookie recipe on this website. I swear by using 1 extra egg yolk in that dough because it helps bind the ingredients and maintains a moist, chewy cookie. We’re doing the same thing here.
- Mini M&Ms: You can use any M&Ms, but I recommend mini so thereโs more in each bite. If the M&Ms are larger, such as peanut M&Ms or peanut butter M&Ms, roughly chop them first. If desired, grab an extra 2 Tablespoons of M&Ms and press a few into the top of each cookie when theyโre warm from the oven. This is purely for looks!

Success Tip: Chill The Dough!
The cookie dough is pretty soft, so make sure you take the time to chill it in the refrigerator. The cookies will spread into puddles otherwise. If you don’t have time to chill the dough, I recommend making these soft baked M&M cookie bars instead.
After chilling, roll the cookie dough into balls and bake:


Small, Medium, & Large
Do you have a copy of Sallyโs Cookie Addiction cookbook? If so, youโll see Giant M&M Cookies on page 31. My cookbook recipe yields massive cookies, but today’s are regular/medium size. Do you like teeny tiny treats? Try these mini M&M cookies instead. They’re bite-size cookies and the dough doesn’t require chilling in the refrigerator. All 3 recipes pretty much use the same exact ingredients, just in different quantities and ratios. You canโt go wrong with any, especially if you love M&M cookies!
And if you need a gluten free option, try these flourless monster cookies.
Print
Soft-Baked M&M Cookies
- Prep Time: 2 hours, 15 minutes
- Cook Time: 12 minutes
- Total Time: 2 hours, 30 minutes
- Yield: 30 cookies
- Category: Cookies
- Method: Baking
- Cuisine: American
Description
These rainbow M&M cookies are soft-baked style with extra chewy edges. I recommend mini M&Ms so you can pack more into each cookie. Chilling the cookie dough for 2 hours is an imperative step, so make sure you set aside enough time.
Ingredients
- 2 cups + 2 Tablespoons (265g)ย all-purpose flourย (spooned & leveled)
- 1 teaspoon cornstarch
- 1 teaspoon baking soda
- 1/2 teaspoon salt
- 3/4 cup (12 Tbsp; 170g)ย unsalted butter, softened to room temperature
- 3/4 cupย (150g) packed light or darkย brown sugar
- 1/2 cup (100g) granulated sugar
- 1ย largeย eggย +ย 1ย egg yolk, at room temperature
- 1ย and 1/2 teaspoonsย pure vanilla extract
- 1 cup (230g) mini M&Ms (plus 2 Tablespoons for topping, optional)
Instructions
- Whisk the flour, cornstarch, baking soda, and salt together in a medium bowl. Set aside.
- In large bowl using a hand-held mixer or stand mixer fitted with a paddle attachment, beat softened butter for about 1 minute on medium speed until creamy. Add the brown sugar and granulated sugar, then beat on medium-high speed until creamy and combined, about 2 minutes. (Hereโs a helpful tutorial if you need guidance onย how to cream butter and sugar.) Scrape down the sides and bottom of the bowl as needed. Beat in egg, egg yolk, and vanilla extract. Scrape down the sides and bottom of the bowl as needed. With the mixer running on low speed, slowly add dry ingredients to wet ingredients. Pour in 1 cup M&Ms and beat on low speed for 20 seconds or until combined. Once completely combined, cover cookie dough tightly and chill in the refrigerator for 2 hours or up to 5 days.
- Preheat oven to 350ยฐF (177ยฐC). Line baking sheets with parchment paper or silicone baking mats. Set aside.
- Roll cookie dough into balls, about 1.5 Tablespoons of dough per cookie, and arrange 3 inches apart on the baking sheets. I like to use a medium cookie scoop here. Bake for 11-12 minutes or until lightly browned on the sides. The centers will look soft.
- Remove from the oven and allow cookies to cool on the baking sheet for 5 minutes. While the cookies are still warm, press the remaining 2 Tablespoons of M&Ms into the tops of the cookies. This is optional and just for looks. Transfer to a wire rack to cool completely.
- Cookies stay fresh covered at room temperature for up to 1 week.
Notes
- Make Ahead & Freezing Instructions: You can make the cookie dough and chill it in the refrigerator for up to 5 days. Allow to come to room temperature and continue with step 4. Baked cookies freeze well for up to 3 months. Unbaked cookie dough balls freeze well for up to 3 months. Bake frozen cookie dough balls for an extra minute, no need to thaw. Read my tips and tricks on how to freeze cookie dough.
- Special Tools (affiliate links): Electric Mixer (Handheld or Stand) | Baking Sheets | Silicone Baking Mats or Parchment Paper | Medium Cookie Scoop | Cooling Rack
- Keep Dough Cold: It’s best to keep unused cookie dough in the refrigerator as the batches are baking.
- Add Chocolate Chips: You can easily add chocolate chips to this cookie dough. I recommend reducing the amount of M&Ms to 3/4 cup and adding 3/4 cup chocolate chips. Stick with about 1 – 1.5 cups total add-ins.
- Be sure to check out my top 5 cookie baking tips AND these are my 10 must-have cookie baking tools.



















Reader Comments and Reviews
If one wants to make them bigger(say 3 ounce cookies) how long should you cook them?
Hi Michelle, probably another minute or two. Keep an eye on them and take them out when they start to brown around the edges. Enjoy!
Thank you!!
Iโve been baking so many of your cookie recipes and I love them! I started with chewy chocolate chip cookies, then oatmeal raisin, then tried red velvet, then birthday cake cookies and now these m&m ones are waiting for me in the oven! I am wondering what the purpose of chilling the dough is? If it is only to prevent over spreading, I believe I may be able to skip this step as I do not live at sea level and rather a high altitude city. Let me know if that would make any sense !
Hi Chantelle, chilling does help prevent the dough from spreading and helps to guarantee nice thick, chewy cookies. We don’t recommend skipping it, even at higher altitude. We’re so glad you’ve been enjoying our recipes!
I accidentally bought peanut butter mini m&ms for this recipe and let me say, you gotta try it, so delicious, a wonderful happy accident
LOVE these cookies, I make them for my mother in law every Christmas but for some reason the dough is sometimes crumbly, and my efforts to fix it lead to flattened cookies what am I doing wrong?
Hi Julia! Crumbly dough can be caused by too much flour. How did you measure the flour? Make sure to spoon and level (instead of scooping) to avoid packing in too much flour into your measuring cups – or use a kitchen scale. You can read more about properly measuring baking ingredients in this post.
Would I get similar results without the cornstarch?
Thanks
Hi Ella, you can leave out the cornstarch if you don’t have any.
Can you use whole wheat flour?
Hi Kim, whole wheat flour would yield very dry cookies, we recommend sticking with all purpose flour for best results!
Yummy cookies. I will try them with chocolate chips and M&Ms next time. I am a chocoholic and thought they could use the extra!
I keep hearing is you brown the butter the cookie will be better , is that true ? Would it work with this cookie ? Thanks
You definitely can use brown butter here! Youโll have to start with a little extra butter to make up for the moisture loss that occurs during browning. You can read more about that in our post on how to brown butter.
Could I use Gluten Free flour in place of the all purpose flour?
Hi Amy, we haven’t tested that swap here, so we’re unsure of the results.