Gooey Chocolate Chip Cookie Bars with M&Ms for a Colorful Dessert

5 min prep 1 min cook 8 servings
Gooey Chocolate Chip Cookie Bars with M&Ms for a Colorful Dessert
Save This Recipe!
Click to save for later - It only takes 2 seconds!

Love this? Pin it for later!

There are desserts, and then there are show-stopping desserts—the kind that make everyone at the potluck lean in for a closer look, the kind that vanish before the paper plates are gone, the kind that inspire text messages the next day begging for the recipe. These gooey chocolate chip cookie bars with M&Ms are exactly that. One pan, thirty minutes of active time, and a rainbow of candy that melts into technicolor puddles of joy. I first baked them for my nephew’s eighth birthday party; half the class had a gluten allergy, another third wouldn’t touch nuts, and every single child (and their parents) demolished these bars. They’ve since become my ride-or-die contribution to bake sales, tailgates, and Tuesdays when the sky feels gray and only molten chocolate can fix it.

I love this recipe because it straddles the line between nostalgic comfort and kid-at-heart fun. The cookie base is my Brown-Butter Chocolate Chip foundation—soft middles, crinkly edges, deep toffee notes—but instead of scooping dozens of cookies I press the dough into a single pan, blanket it with M&Ms, and slice it into handheld squares that travel like a dream. No chilling, no rolling, no fussy decorating. Just pure, gooey, colorful happiness.

Why This Recipe Works

  • One-bowl dough: melted butter means no mixer required and fewer dishes.
  • Pan-bang trick: dropping the hot pan on the counter halfway through baking forces the bars to fall and creates that coveted gooey center.
  • Layered candy: half the M&Ms go under the dough so they stay vibrant; the rest go on top for Instagram-ready color.
  • Brown-butter depth: toasting the milk solids gives caramel notes that balance the sweetness.
  • Flexible pan size: 8×8 for thick bakery-style bars, 9×13 for thinner lunchbox portions.
  • Make-ahead magic: the dough keeps refrigerated up to 4 days or frozen 3 months.
  • Color-coded joy: switch M&M colors for every holiday—red & green for December, pastels for Easter, school colors for graduation.

Ingredients You'll Need

Ingredients

Great bars start with great ingredients. Below is a quick shopping guide so you know why each component matters and how to swap smartly if your pantry disagrees.

Unsalted butter: I use European-style (82 % fat) for extra richness. Melt and brown it until the milk solids turn chestnut—this single step elevates ordinary cookie dough into something restaurant-worthy. If you only have salted butter, reduce the added salt to ¼ teaspoon.

Light brown sugar: The molasses keeps the centers soft and contributes chew. Dark brown works but can overpower; if that’s all you have, cut it with ⅓ cup granulated sugar to mellow the flavor.

Large eggs: Room-temperature eggs emulsify more easily into the warm butter, preventing curdling. Place cold eggs in a mug of hot tap water for 5 minutes if you’re rushed.

Pure vanilla extract: Skip imitation here; you want the floral notes to dance with the brown butter. In a pinch, vanilla bean paste (same volume) delivers those speckled flecks.

All-purpose flour: Spoon and level to avoid dense bars. For a tender crumb, substitute ⅓ cup cornstarch for an equal amount of flour—this is my bakery secret for melt-in-your-mouth edges.

Leaveners + salt: Fresh baking soda ensures the bars puff and fall, creating fissures that hold pools of chocolate. Test potency by dropping a pinch in vinegar; it should fizz immediately.

Semisweet chocolate chips: 60 % cacao is the sweet spot (pun intended) for balanced bitterness. Reserve ¼ cup to press on top post-bake for bakery visual appeal.

M&Ms: Regular, mini, or peanut—anything goes. I mix standard and mini so every bite has a different candy-to-cookie ratio. If you need gluten-free, buy the certified bag; the candy shell contains barley malt in some seasonal varieties.

Optional mix-ins: A handful of toasted pecans or flaky salt on top takes these from kid-friendly to dinner-party sophisticated.

How to Make Gooey Chocolate Chip Cookie Bars with M&Ms for a Colorful Dessert

1
Brown the butter

Place 1 cup (225 g) unsalted butter in a light-colored saucepan over medium heat. Swirl occasionally until it foams, crackles, and smells like toffee. Once the milk solids at the bottom turn amber—about 7 minutes—immediately pour into a heat-proof bowl to stop cooking. Let cool 5 minutes so it won’t scramble the eggs.

2
Preheat & prep pan

Set oven rack to middle position and preheat to 350 °F (177 °C). Line an 8×8-inch square pan with parchment, leaving overhang handles. Pro tip: crumple the parchment under water, squeeze it out, then smooth it in—this pliability ensures perfect corners.

3
Whisk sugars & eggs

To the warm brown butter, whisk in 1 cup packed light brown sugar and ½ cup granulated sugar until glossy. Add 2 large eggs plus 1 extra yolk (the yolk adds chew), then 2 teaspoons pure vanilla. Mixture should resemble satiny caramel ribbons.

4
Fold dry ingredients

In a separate bowl whisk 2 ½ cups (315 g) all-purpose flour, 1 teaspoon baking soda, and ¾ teaspoon kosher salt. Sprinkle over wet mixture and fold with a silicone spatula just until the last flour streaks disappear. Over-mixing develops gluten and yields cakelike bars—resist!

5
Layer candy strategically

Scatter ½ cup M&Ms across the bottom of the parchment-lined pan. This hidden base keeps colors bright against the heat of the metal. Plop cookie dough on top and gently press into an even layer. Top with 1 cup chocolate chips and another ½ cup M&Ms for visual pop.

6
Bake & pan-bang

Bake 22 minutes, then lift pan 3 inches above the oven rack and drop. This forces the still-liquid center to fall, creating the signature gooey layer. Continue baking another 5–7 minutes until the edges are deeply golden and the center jiggles slightly when shaken.

7
Cool completely

Place pan on a wire rack and resist slicing for at least 2 hours. The residual heat finishes baking the center without over-baking. If you need warm bars, reheat individual squares in the microwave for 8 seconds rather than cutting too early.

8
Slice with a plastic knife

For bakery-clean cuts, chill the pan 20 minutes, then use a disposable plastic knife—the thin edge melts through chocolate without dragging. Wipe between cuts for Instagram-ready squares.

Expert Tips

Check oven temp

Many home ovens run 25 °F hot or cool. An inexpensive oven thermometer prevents over-baked edges and raw centers.

Weigh flour

One cup of flour can weigh 120–150 g depending on humidity and scooping style. A $15 scale guarantees consistent texture every batch.

Overnight flavor boost

Press dough into pan, cover tightly, and refrigerate up to 48 hours. The rest hydrates flour and develops deeper caramel notes.

Color bleeding fix

If you need pristine colors for a themed party, add M&Ms only during the last 3 minutes of baking; they’ll adhere without cracking.

Freeze individual bars

Wrap squares in parchment, then foil, and freeze up to 3 months. Thaw 10 minutes at room temp or microwave 15 seconds.

Doubling for crowds

Recipe doubles perfectly into a 9×13 pan; add 5 extra minutes of bake time and use a foil sling for easy removal.

Variations to Try

  • Peanut-Butter Swirl: Warm ⅓ cup peanut butter in microwave 15 seconds, dollop over dough, and marble with a skewer.
  • S’mores Remix: Replace half the chocolate chips with mini marshmallows and crushed graham crackers; broil 1 minute for toasted tops.
  • Dark & Salty: Swap semisweet for 70 % cacao chips and finish with flaky Maldon salt.
  • Gluten-Free: Substitute 1:1 measure-for-measure GF flour plus ¼ tsp xanthan gum; check M&M label for barley.
  • Caramel Surprise: Press ½ cup soft caramel candies into the dough before baking; they melt into gooey pockets.

Storage Tips

Room temperature: Once fully cool, layer bars in an airtight container with parchment between. They stay soft for 4 days, though day 2 is peak chew.

Refrigerator: In humid climates, refrigerate after day 3 to stave off mold. Bring to room temp 30 minutes before serving or microwave 8 seconds to resuscitate the goo.

Freezer: Wrap individual bars tightly in plastic, then foil, and freeze up to 3 months. Thaw overnight in the fridge or 20 minutes on the counter. For that fresh-from-the-oven experience, warm at 300 °F for 5 minutes.

Make-ahead dough: Mix dough, press into pan, cover with plastic touching surface, and refrigerate up to 4 days. Bake as directed, adding 2 extra minutes if cold from fridge.

Frequently Asked Questions

Yes—the recipe doubles beautifully for a 9×13. Expect thinner bars and reduce bake time by 3–4 minutes. For thick bakery-style rectangles, keep the 8×8 and extend bake to 30 minutes total.

The candy shell cracks when exposed to high heat for too long. Add them during the final 3 minutes of baking or press them gently into warm bars right out of the oven.

Absolutely—halve ingredients and bake in a loaf pan (8×4) lined with parchment. Start checking doneness at 18 minutes.

Look for deeply golden edges and a center that jiggles like set Jell-O, not sloshes like liquid. A toothpick inserted 1 inch from the edge should come out with a few moist crumbs.

Reese’s Pieces, mini peanut-butter cups, or chopped Snickers all work. Avoid candy with high water content (like gummies) which can seep and make the base soggy.

Over-measuring flour or over-mixing develops gluten, yielding cakey texture. Use a scale and fold just until combined. Also check your baking soda expiration; weak leavener can cause dense, dry bars.
Gooey Chocolate Chip Cookie Bars with M&Ms for a Colorful Dessert
desserts
Pin Recipe

Gooey Chocolate Chip Cookie Bars with M&Ms for a Colorful Dessert

(4.9 from 127 reviews)
Prep
15 min
Cook
28 min
Servings
16

Ingredients

Instructions

  1. Brown the butter: Melt butter in a saucepan over medium heat until foaming and nutty; cool 5 min.
  2. Mix dough: Whisk sugars into butter, then eggs, yolk, and vanilla. Fold in flour, baking soda, and salt until just combined.
  3. Layer: Scatter ½ cup M&Ms on parchment-lined 8×8 pan. Press dough evenly on top.
  4. Top: Sprinkle remaining chocolate chips and M&Ms across surface.
  5. Bake: 350 °F for 22 min, pan-bang, then 5–7 min more until edges are golden and center jiggles slightly.
  6. Cool: Let bars cool completely in pan on rack, then lift using parchment and slice.

Recipe Notes

For crisp edges and a gooey center, do not over-bake. Bars continue to cook as they cool. Store airtight up to 4 days or freeze up to 3 months.

Nutrition (per serving)

285
Calories
3g
Protein
38g
Carbs
14g
Fat

You May Also Like

Discover more delicious recipes

Never Miss a Recipe!

Get our latest recipes delivered to your inbox.