Chewy M&M Cookie Bars Recipe: Crunchy Chocolate Shells With Gooey Hearts Inside

Desserts

Chewy M&M Cookie Bars Recipe: Crunchy Chocolate Shells With Gooey Hearts Inside

This chewy M&M cookie bars recipe delivers the perfect balance of crispy chocolate shells and gooey centers packed with colorful candy. The secret lies in using melted chocolate for the base, creating a sturdy yet tender structure that holds up to cutting while maintaining that signature chewy texture.

I've perfected this recipe over years of testing, ensuring every batch turns out with those coveted caramelized edges and melty M&M pockets.

The foundation starts with a simple cookie dough base—just butter, sugar, eggs, and flour—but the magic happens when we fold in those iconic M&M candies. Unlike traditional cookie bars, this version uses a chocolate shell technique that creates a crisp exterior while keeping the interior soft and chewy.

The recipe comes together in just 20 minutes of prep, with 25 minutes in the oven, making it ideal for weeknight desserts or holiday gatherings.

What you'll end up with is a pan of rich, chocolatey bars with visible M&M candies throughout—each bite offering a perfect contrast between the crisp chocolate shell and the soft, cookie-like center.

The bars cut cleanly into perfect squares, making them easy to serve and share. This recipe is versatile enough to become your new go-to dessert while still feeling special enough for company.

The best part? These bars stay fresh at room temperature for up to 5 days or can be frozen for 3 months, making them perfect for meal prep or gifting.

Whether you're serving them with a scoop of vanilla ice cream or enjoying them straight from the pan, this recipe delivers restaurant-quality results with minimal effort. Let's get baking!

👨‍🍳
Difficulty
Medium
🔥
Calories
Med Cal

Ingredients for chewy m&m cookie bars

These iconic ingredients create the perfect chewy chocolate bars with melty M&M pockets inside.

Ingredient Amount Notes
Unsalted Butter 🧈 1 cup Softened but not melted
Granulated Sugar 🍚 1 ½ cups Light brown sugar works too
Packed Brown Sugar 🍚 ½ cup For extra chewiness
Large Eggs 🥚 2 whole Room temperature preferred
All-Purpose Flour 🌾 2 cups Sifted for light texture
Milk Chocolate Chips 🍫 1 ½ cups High quality for best melt
Semi-Sweet Chocolate Chips 🍫 1 cup For balanced flavor
M&M's Plain Candies 🍬 2 cups Colorful variety preferred
Vanilla Extract 🥛 1 tsp Pure extract for best flavor
Salt 🧂 ½ tsp Kosher or sea salt
Baking Soda 🧪 ½ tsp For proper rise
Unsweetened Cocoa Powder 🍫 ¼ cup Natural or Dutch-processed
Vegetable Oil 🫒 ¼ cup For extra moisture

The chocolate chips and M&M's are the stars here—Hershey's Special Dark and Hershey's Milk Chocolate are my go-tos, but any quality brand works. For the M&M's, grab the classic milk chocolate variety (the originals, not the peanut ones) from Target or Walmart—they're usually on sale in bulk. The butter matters too—Plugrá or Land O'Lakes unsalted gives the best flavor. Pro tip: let your butter sit out for 2 hours before mixing to avoid overworking the dough. The cocoa powder? Hershey's or Dutch-processed both work, but Dutch-processed gives a smoother texture if you prefer that.

No milk chocolate chips? Substitute with white chocolate chips and add 1 tsp extra vanilla. Out of M&M's? Mini Reese's or regular Reese's pieces work in a pinch (just reduce to 1.5 cups). Running low on brown sugar? Granulated sugar plus 1 tsp molasses mimics the flavor. The baking soda is non-negotiable—it's what creates that signature lift. If you're gluten-free, swap the all-purpose flour for a 1:1 gluten-free blend, but expect slightly denser bars. For a richer flavor, fold in 1/2 cup chopped toasted nuts with the M&M's—pecans or walnuts work great.

These bars keep beautifully—5 days at room temperature in an airtight container, or 3 months frozen for freshness. For freezing, wrap individual bars in plastic wrap first, then store in a ziplock. To reheat, microwave for 10-15 seconds to restore that gooey center. I always make a double batch—one for the freezer and one to share. The chocolate shell stays crisp for about 3 days at room temp, after which the bars get softer but still delicious. Perfect for meal prep or holiday gifts!

❤️

Why You'll Love This Recipe

  • No Mixer Needed: I swear by my stand mixer, but these bars? Just a big bowl and a wooden spoon. Cream the butter and sugars until light—no fancy equipment, no stress. The eggs and flour go in next, and before you know it, you’re pressing M&Ms into the top. Honestly, it’s the kind of recipe that makes me feel like a baking genius without the hassle.
  • Chewy Magic: That perfect balance of crisp edges and soft, gooey centers? It’s all in the butter-to-sugar ratio and letting the dough rest. The brown sugar keeps them moist while the granulated sugar gives that satisfying crunch. And the M&Ms? They melt just enough to make every bite feel like a little treat.
  • Party or Pantry: I’ve taken these to potlucks, packed them for road trips, and even frozen a batch for lazy weeknights. They cut cleanly, travel well, and no one ever complains about seconds. Between us, they’re my go-to for teacher gifts or last-minute dessert emergencies.
  • Budget-Friendly Indulgence: You’re basically making cookies, but in bar form—so fewer ingredients, less waste. A stick of butter, a couple eggs, and a bag of M&Ms stretch far. Plus, they keep for days (if they last that long) and reheat beautifully. My daughter calls them “poor man’s cookie dough,” but I call them my secret weapon.

Step-by-step instructions for chewy M&M cookie bars

Here's how to create decadent cookie bars with a crisp chocolate shell and gooey M&M centers.

1

👨‍🍳 Step 1: Cream Butter, Sugars, and Eggs for Maximum Flavor

In a large mixing bowl, combine the 1 cup unsalted butter, 1.5 cups granulated sugar, and 0.5 cup packed brown sugar. Beat with an electric mixer on medium speed for 3-4 minutes until light and fluffy—the mixture should nearly triple in volume and turn pale. This step is crucial for creating that perfect chewy texture we're after.

Add the 2 whole large eggs, one at a time, mixing well after each addition. Then stir in the 1 tsp vanilla extract and 0.25 cup vegetable oil. The batter should be smooth and thick, like a thick cookie dough. If it looks too runny, let it sit for 5 minutes—sometimes resting helps the flour absorb properly when we add it next.

2

👨‍🍳 Step 2: Combine Dry Ingredients and Chocolate

In a separate bowl, whisk together the 2 cups all-purpose flour, 0.5 tsp salt, 0.5 tsp baking soda, and 0.25 cup unsweetened cocoa powder. Sift this mixture directly into the wet ingredients while mixing on low speed. Mix just until combined—you should still see small flour streaks. Overmixing develops gluten, which makes cookie bars tough instead of chewy.

Remove the bowl from the mixer and fold in the 1.5 cups milk chocolate chips, 1 cup semi-sweet chocolate chips, and 2 cups M&M's plain candies using a silicone spatula. Make sure they're evenly distributed throughout the dough. The chocolate chips will melt into a gooey center, while the M&M's add that perfect crunch and color contrast. Don't be tempted to press the chocolate into the dough—just fold it in gently.

3

🥘 Step 3: Prepare the Pan and Press the Dough

Preheat your oven to 350°F. Line a 9x13-inch baking pan with parchment paper, leaving an overhang on the sides for easy removal. Press the dough evenly into the pan using a spatula or your hands—press firmly but not too hard, or you'll compact the texture. The dough should be about ½-inch thick throughout. Here's the thing—don't worry if it looks uneven. The cookie bars will spread slightly in the oven, and that's what gives them that perfect chewy texture.

Bake for 22-25 minutes until the edges are golden brown and the center still looks slightly soft. A toothpick inserted in the center should come out with a few moist crumbs, not wet batter. The cookie bars will continue cooking as they cool, so they'll firm up nicely. Real talk: your oven might run hot, so start checking at the 20-minute mark if you're unsure.

4

⏰ Step 4: Cool and Cut for Perfect Bars

Remove the pan from the oven and let the cookie bars cool in the pan for 10 minutes. Then, using the parchment overhang, lift the entire slab out and place it on a wire rack to cool completely for 1 hour. This resting period is crucial—it allows the chocolate to set properly and makes the bars easier to cut. If you try to cut them too soon, they'll crumble.

Once fully cooled, use a sharp knife or pizza cutter to cut the cookie bars into 16 equal squares. For clean cuts, dip the knife in hot water, wipe it dry, and press straight down through the bars. Each bar should have a crisp chocolate shell on top with pockets of gooey chocolate and colorful M&M's throughout. Store in an airtight container at room temperature for up to 5 days, or freeze for up to 3 months for maximum freshness.

👨‍🍳

Pro Tips For Making Chewy M&M Cookie Bars

  • Melt Butter Slowly: Don’t rush the butter—melt it in 30-second bursts in the microwave (or over low heat) and stir between each interval. I learned this the hard way when I dumped cold butter into hot sugar and ended up with a grainy mess that never dissolved properly.
  • Pack Brown Sugar Properly: Use a spoon to press the brown sugar into the measuring cup—don’t scoop it. Too much air means your bars will be drier, and that’s the last thing you want in a chewy M&M cookie. (Yes, even if you’re impatient like me.)
  • Prevent Overmixing: Mix the dough just until the flour disappears—about 20 seconds after that. Overworking it makes the bars tough instead of chewy. I used to beat it like I was kneading bread, and the texture suffered. Stop when it looks shaggy, not smooth.
  • Press Dough Evenly: Use a spatula to press the dough into the pan in one smooth layer—no gaps, no thick spots. Uneven pressing leads to uneven baking, and you’ll end up with some parts burnt and others underdone. (Your future self will thank you.)

Troubleshooting this dish

Underbaked Centers

If your cookie bars feel too soft or gummy in the middle after baking, it's likely due to underbaking. The key is to bake until the edges are golden brown and a toothpick comes out with just a few moist crumbs—not wet batter.

I've found that 22-25 minutes at 350°F works best, but check at 20 minutes if your oven runs hot. For extra insurance, increase the baking time by 2-3 minutes and let them cool completely before cutting.

Too Crumbly Texture

Crumbly cookie bars usually happen from overmixing the dough or using too much flour. When combining wet and dry ingredients, mix just until combined—you should still see small flour streaks. Also, make sure your butter is softened but not melted, and avoid pressing the dough too firmly into the pan.

If your dough looks dry, add 1 tablespoon milk or water at a time until it holds together.

Chocolate Shell Not Setting

A soft chocolate shell often means the bars didn't cool properly. Let them cool in the pan for 10 minutes before transferring to a wire rack, and wait the full 1 hour before cutting.

If your kitchen is humid, consider cooling them in the refrigerator for 20 minutes after the initial 10 minutes in the pan. For extra stability, chill the pan for 10 minutes before pressing the dough.

M&M's Sinking Too Low

If your M&M's are mostly at the bottom of the bars, the dough wasn't pressed evenly. Press the dough firmly but gently into the pan, using a spatula to distribute it evenly. For extra insurance, press the M&M's lightly into the dough with the back of a spoon before baking.

This helps them stay in place while the chocolate melts around them. Also, avoid overfilling the pan—stick to the ½-inch thickness guideline.

Bars Not Cutting Cleanly

Uneven cuts usually mean the bars weren't cooled completely. Let them cool for the full 1 hour before cutting, and chill the pan for 10 minutes in the freezer if needed. For clean lines, dip your knife in hot water, wipe it dry, and press straight down without sawing.

A sharp pizza cutter works best for this recipe. If the bars still crumble, they may need more baking time next time.

Burnt Edges

Burnt edges happen when the oven is too hot or the pan isn't placed properly. Always preheat your oven for 15 minutes before baking, and place the pan on the middle rack. If your oven runs hot, reduce the temperature to 325°F and bake for 28-30 minutes.

For even browning, rotate the pan halfway through baking. If the edges brown too quickly, tent the pan with foil after 15 minutes.

Nutrition facts

Servings 16
Amount Per Serving
Calories 380kcal
% Daily Value *
Total Fat 20g26%
Saturated Fat 12g60%
Cholesterol 55mg18%
Sodium 180mg8%
Total Carbohydrate 48g17%
Dietary Fiber 1g4%
Sugars 38g
Protein 4g8%
* Percent Daily Values are based on a 2,000 calorie diet. Your daily values may be higher or lower depending on your calorie needs.

Frequently asked questions about chewy M&M cookie bars

1

Can I make these cookie bars without a mixer?

Use a sturdy wooden spoon or whisk to cream the butter and sugars until light and fluffy—it'll take about 5-7 minutes of vigorous stirring. For the eggs, beat them separately before adding to the butter mixture. The key is patience—keep stirring until the mixture doubles in volume. The texture will be slightly less airy but still delicious!

2

Why do my cookie bars come out too hard?

Overbaking or pressing the dough too firmly creates hard bars. Always bake until edges are golden but the center still looks slightly soft (22-25 minutes at 350°F). Press the dough gently but evenly—think "firm but not compact." If they're still too hard after cooling, try adding 1 tablespoon milk or water to the dough next time.

3

How can I make these gluten-free?

Replace the all-purpose flour with a 1:1 gluten-free baking blend (like Bob's Red Mill). For best results, also substitute the baking soda with 1 tsp gluten-free baking powder. The texture will be slightly denser, so press the dough slightly thinner (¼-inch thick) and bake for 2-3 extra minutes. Gluten-free M&M's work perfectly too!

4

Can I substitute white chocolate for the milk chocolate chips?

Yes, but reduce the amount to 1 cup to prevent excessive sweetness. Add ½ tsp extra vanilla extract to compensate for the milder flavor. For a marbled effect, fold in ½ cup white chocolate chips along with the milk chocolate. The white chocolate will create beautiful swirls when melted!

5

What's the best way to store leftovers?

Keep bars in an airtight container at room temperature for up to 5 days. For longer storage, freeze individual bars wrapped in plastic wrap for 3 months. To reheat, microwave for 10-15 seconds—just enough to restore that gooey center. Pro tip: Store in layers separated by parchment paper to prevent sticking.

★★★★★4.9(15 reviews)
Categories Desserts