These M&M Cookie Bars are one of those easy recipes where nobody knows you started with a box of cake mix! They're my go-to whenever I have to bring something to an event for the kids, because they're always such a hit. My son even calls them "the actual cookie cake," and trust me, they're nothing like the one you grab at the mall.
Recipe overview
- Prep time: 10 minutes
- Bake time: 25 to 30 minutes
- Cool time: At least 15 minutes
- Yield: 12 bars
- Method: One bowl, hand mixer, baked in a 9 x 13 pan
- Main ingredients: Yellow cake mix, melted butter, eggs, vanilla, and M&M's
- Flavor and texture: The flavor of a cookie and a cake all in one bar
- Helpful tip: The batter is thick and sticky. Lightly spray your hands to press it into the pan.
Why this recipe is special
You get the flavor of a cookie mixed with the flavor of a cake! The batter is stiffer than a regular cake batter, which is what gives these more of a cookie bar texture instead of a fluffy cake. Five ingredients, one bowl, and the colorful M&M's make them a guaranteed hit with kids.
Equipment you'll need
- Measuring cups and spoons
- 9 x 13-inch baking pan
- Nonstick spray
- Parchment paper
- Large mixing bowl
- Hand mixer
The equipment section may contain affiliate links to products we know and love.
Ingredients for M&M Cookie Bars
- Yellow cake mix: I use a 13.25-ounce box.
- Melted butter: Salted or unsalted both work.
- Eggs: Two eggs hold the batter together.
- Vanilla extract: Adds that cookie dough flavor.
- M&M's: One cup, mixed right into the batter.
For full ingredients and directions, scroll down to the recipe card below.
How to make M&M Cookie Bars
Prep the pan. Preheat the oven to 350°F. Spray a 9 x 13-inch baking pan with nonstick spray and line it with parchment paper.
Mix the batter. In a large mixing bowl, beat the cake mix, melted butter, eggs, and vanilla with a hand mixer until well combined, about 1 to 2 minutes. Mix in the M&M's.



Press into the pan. Spread the batter evenly in the prepared pan. It's thick and sticky, so lightly spray your hands or a rubber spatula with nonstick spray and gently press it in.
Bake. Bake for 25 to 30 minutes, until golden brown.



Cool and slice. Let the bars cool for at least 15 minutes. Use the parchment paper to lift them out of the pan, then cut into squares or bars with a sharp, straight-blade knife.
Stephanie's tips for cake mix cookie bars
- Expect a thick batter. It should be stiff and dense, not loose like cake batter. That's what gives you a cookie bar texture.
- Spray your hands. A little nonstick spray on your hands or spatula makes pressing the sticky batter into the pan so much easier.
- Don't overbake. Overbaking is the main reason cookie bars turn out dry.
How to serve M&M Cookie Bars
Once they're cool enough to cut, slice them up and serve with a scoop of your favorite ice cream. They're just as good at room temperature all on their own... perfect for packing up and taking to practice, parties, or school events!
Substitutions and variations
- Yellow cake mix: White cake mix works too. For double chocolate bars, use chocolate cake mix.
- Gluten-free: Use a gluten-free cake mix and add one extra egg. I haven't tested this swap myself yet.
- Melted butter: Salted or unsalted both work. Coconut oil can be used if butter isn't an option, but I haven't tested it myself yet.
- Vanilla extract: Homemade vanilla works, or use 1/2 teaspoon of vanilla bean paste.
- M&M's: Swap in milk, dark, or white chocolate chips, or caramel chips. Prefer chocolate chips? Check out my original Cake Mix Cookie Bars.
M&M Cookie Bars FAQs
How do I press the batter into the pan?
The batter is a little sticky. The easiest way is to lightly spray your hands with nonstick spray and gently press it into the pan. A lightly sprayed rubber spatula works too.
Is the batter supposed to be stiff?
Yes! It will be stiffer and denser than normal cake batter. That's what gives these a cookie bar texture instead of a fluffy cake texture.
What's the best way to slice the bars?
Once the bars have cooled, use the parchment paper to lift them out of the pan and set them on a cutting board. Cut straight down with a sharp, straight-blade knife into squares or longer bars.
Why are my cookie bars dry?
Usually it's because they were overbaked. If that happens, put them in a zip-top bag with a slice of bread overnight. The bars will soak up moisture from the bread and soften back up.
Can I add nuts too?
Yes! Add 1/2 cup of chopped walnuts, pecans, almonds, or pistachios along with the M&M's.
How to store M&M Cookie Bars
Room temperature: Store in an airtight container or large zip-top bag for 3 to 4 days. Enjoy at room temperature, or microwave for 5 to 10 seconds to warm them up.
Freezer: Wrap the bars in a double layer of plastic wrap and store them in a freezer-safe airtight container or zip-top bag for up to 3 months. Thaw at room temperature for about 3 hours or overnight before serving.
More easy bars and cookies
If the kids love these, try my S'mores Bars, Brown Butter Blondies, or Monster Cookies next!
More Christmas recipes to try
Building a holiday cookie box or planning the whole Christmas menu? Here are a few more of our favorites...
- Christmas Cookie Box Ideas
- White Chocolate Raspberry Cookies
- Whipped Shortbread Cookies
- Grinch Puppy Chow
- Hot Chocolate Fudge
- Little Debbie Christmas Tree Coffee Creamer
- Iced Gingerbread Oatmilk Chai
- Slow Cooker Turkey Breast
- Grinch Margarita
- Dubai Chocolate Bark
- Graham Cracker Toffee
M&M Cookie Bars

Equipment
- Measuring cups and spoons
- 9 x 13-inch baking pan
- Nonstick spray
- Parchment paper
- Large mixing bowl
- Hand mixer
Ingredients
- 1 (13.25 oz) box yellow cake mix
- 1/3 cup butter melted
- 2 eggs
- 1 teaspoon vanilla extract
- 1 cup M&M's
Instructions
- Preheat the oven to 350°F. Spray a 9 x 13-inch baking pan with nonstick spray and line it with parchment paper.
- In a large mixing bowl, beat together the cake mix, melted butter, eggs, and vanilla extract with a hand mixer until well combined, about 1 to 2 minutes. Mix in the M&M's.
- Spread the batter evenly into the prepared baking pan. Lightly spray your hands or a rubber spatula with nonstick spray to press it in.
- Bake for 25 to 30 minutes, until golden brown. Allow the bars to cool for at least 15 minutes before cutting.
Notes
Was this a win at your house?
Leave a quick rating or review below! It helps other busy families find the recipes that actually get eaten.
