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!
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!
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 (spoon & leveled)
- 1 teaspoon cornstarch
- 1 teaspoon baking soda
- 1/2 teaspoon salt
- 3/4 cup (1.5 sticks or 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 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. 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. 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.
- 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.
- Special Tools (affiliate links): Stand Mixer or Handheld Mixer | Baking Sheets | Silicone Baking Mats or Parchment Paper | Cooling Rack
- Be sure to check out my top 5 cookie baking tips AND these are my 10 must-have cookie baking tools.
Keywords: m&m cookies
I love this recipe and comes out great every single time! Can I sub the flour for coconut flour and white sugar for coconut sugar? Will this change the texture or taste of the cookie?
Hi Elli, we haven’t tested this recipe with coconut flour or sugar so we’re unsure of the results.
Wow! I followed the recipe exactly and it was fantastic!
★★★★★
How many cookies does this recipe make? Thanks!
Hi Kathy, this recipe will yield 30 cookies. Enjoy!
I loved your chewy choc chip recipe! Is there any reason why i couldn’t just copy that recipe for the dough base, and just change the mix-ins for this one?
Hi Jon, you can feel free to use our chocolate chip cookie dough base with these add-ins if you wish!
I loved this recipe so much and I shaped them tall to prevent spreading so much and to make it caky. Yummy! I cooked it for birthday party. Thanks!
Wow! Amazing tender crumb and great banana flavour. I needed 6 bananas to get the 1.5 cups (mine were frozen, thawed, then drained, so maybe that affected the measurement) and used a bit less cinnamon in the batter (1/2 tsp). Will definitely make these again. Love that they can be frozen. Thank you!
★★★★★
I’ve made many different cookies. These cookies are on my top five favorite cookie recipes!! The texture is perfect! The reviewer that said they were too cakey needs to try again. Mine were definitely not cakey. Thanks so much for sharing this recipe!
★★★★★
I made these cookies and followed instructions exactly. They were slightly browned on the edges, pulled them out to cool. They are soft and chewy in the middle but seem greasy on the bottom and look too doughy in the middle! I baked them on silicon baking sheets, I usually use parchment.
One of the best cookie recipes I’ve ever made. The reviewer that said the cookies came out cakey, need to try the recipe again! These cookies were perfect texture! Not cake-like at all! They were so delicious! Thank you so much for sharing this recipe!!
★★★★★
They came out more like a fluffy biscuit/cake type of deal which is not what I thought they’d be like when I think softy chewy cookie.
★★★
Did you make sure to measure the flour right?
Hey Sally! I am gluten-free, I tried using Bob red nose, gluten-free flour, but they spread quite a bit, any recommendations?
Hi Estella, we haven’t tested these cookies with GF flour so can’t offer much insight. Here’s our best tips for preventing cookies from spreading.
So amazing
★★★★★