Rainbow M&M Cookies Recipe: Soft, Chewy, Colorful
In this article
Rainbow M&M cookies get their color from the candy shells and their soft, chewy texture from melted butter and an extra egg yolk. The M&Ms stay intact when folded in gently and pressed onto the dough surface before baking, so each cookie shows bright color. This recipe makes a classic drop cookie that works for birthdays, bake sales, or any day you want a colorful treat.
Serves 24 · Prep 20 min · Cook 12 min · Total 32 min
Ingredients for Rainbow M&M Cookies
- 2 1/4 cups (280 g) all-purpose flour
- 1/2 teaspoon baking soda
- 1/2 teaspoon salt
- 3/4 cup (170 g) unsalted butter, melted and slightly cooled
- 1 cup (200 g) packed light brown sugar
- 1/2 cup (100 g) granulated sugar
- 1 large egg plus 1 egg yolk, at room temperature
- 2 teaspoons vanilla extract
- 1 1/2 cups (250 g) rainbow M&M candies, plus 1/4 cup (40 g) for pressing on top
How to Make Rainbow M&M Cookies
- Preheat the oven to 375°F (190°C). Line two baking sheets with parchment paper.
- In a medium bowl, whisk together the flour, baking soda, and salt.
- In a large bowl, mix the melted butter, brown sugar, and granulated sugar until smooth. Beat in the egg, egg yolk, and vanilla until fully combined.
- Add the dry ingredients to the wet mixture and stir with a wooden spoon until just combined. Do not overmix.
- Fold in 1 1/2 cups of M&Ms. The dough will be soft.
- Scoop dough by rounded tablespoons (about 1.5 inches / 4 cm balls) onto the prepared sheets, spacing them 2 inches (5 cm) apart.
- Press the remaining 1/4 cup of M&Ms onto the tops of the dough balls, a few per cookie.
- Bake for 10–12 minutes, until the edges are set and lightly golden, but the centers still look slightly soft.
- Let the cookies cool on the baking sheet for 5 minutes, then transfer to a wire rack to cool completely.
Why the Dough Comes Out Dry, Runny, or Dense
If the dough is too dry and crumbly, you likely measured the flour by scooping directly from the bag, which packs in extra flour. Use the spoon-and-level method: spoon flour into the measuring cup and level with a knife. If the dough is too runny, the butter was too hot when mixed, or the egg was too large. Let melted butter cool for 5–10 minutes before mixing, and use a large egg (about 50 g) plus one yolk. Dense cookies usually come from overmixing the dough after adding the flour, which develops gluten. Mix just until no dry streaks remain.
What to Do With a Dry Dough
If the dough is crumbly, add 1–2 tablespoons of milk, one at a time, until it comes together. Do not add more butter; it will change the spread.
What to Do With a Runny Dough
If the dough is too wet to scoop, chill it in the refrigerator for 30 minutes. This firms the butter and makes it easier to handle.
Substitutions for Rainbow M&M Cookies
- Salted butter: Use 3/4 cup (170 g) salted butter and reduce the added salt to 1/4 teaspoon.
- White sugar instead of brown: Use 1 1/2 cups (300 g) granulated sugar in place of the brown and granulated combo. The cookies will be slightly less chewy and more crisp.
- Mini M&Ms: Use the same amount. They distribute more evenly but may melt slightly more.
- Chocolate chips instead of M&Ms: Use 1 1/2 cups (250 g) semisweet chips. The cookies will have no candy shell, so the color disappears.
- Gluten-free flour: Use a 1:1 gluten-free baking flour blend. The cookies will be a bit more tender and may spread slightly more.
Storing Rainbow M&M Cookies
Store baked cookies in an airtight container at room temperature for up to 5 days. To keep them soft, add a slice of plain bread to the container; it absorbs excess air and the cookies stay chewy. For longer storage, freeze unbaked dough balls on a baking sheet until solid, then transfer to a freezer bag for up to 3 months. Bake frozen dough directly at 375°F (190°C) for 12–14 minutes. Baked cookies also freeze well for up to 3 months in a freezer-safe bag.
If the cookies are too hard after storage, microwave one for 10 seconds to soften. If they are too soft and crumbly, they may have absorbed moisture; keep the container tightly sealed.