Chewy, fudgy chocolate chip cookie bars topped with chocolate fudge and rainbow M&M’S. Only 4 ingredients needed to make Rainbow Fudge Cookie Bars!

This recipe was originally published in September 2014. I updated the recipe notes and added new photos in April 2026.
Aimee’s Recipe Notes

Sometimes you don’t want to run all over the store tracking down the ingredients you need to make a delicious dessert.
When you don’t have the time or the energy for a complicated cookie bar recipe, these easy four ingredient fudge cookie bars are the solution! Not to be confused with these 3 ingredient peanut butter cookies!
Starting with a roll of cookie dough, you can make a layered cookie bar that’s full of chocolate and topped with a crunchy layer of M&Ms.
The colorful candies add a rainbow splash to these cookie bars that’s just right for a birthday party!
xo,
I love these! Super cute and chocolatey!
– jessica
Only Four Ingredients

Here’s all you need to make fudge cookie bars:
- Cookie dough – Use a 30 ounce package of your favorite chilled chocolate chip cookie dough. Or use my chocolate chip cookie bar recipe!
- Sweetened condensed milk– You’ll need one can for the topping.
- Chocolate chips – I used milk chocolate, but semi sweet would work too for a smooth chocolate flavor.
- Mini M&Ms – Use the package of baking M&Ms for best results or swap full sized M&Ms if preferred.
How to Make Rainbow Cookie Bars

Bake the cookie bars.
- You’ll line a cookie sheet (15x10x1-inch) with parchment paper. Press the dough lightly into the bottom (it’s okay if it doesn’t go all the way to the edges).
- Bake until lightly browned (don’t overbake the dough).

Make the Topping.
- You can make the fudge layer for these bars using your microwave! I heat the condensed milk and the chocolate morsels together in the microwave for 30 second increments, stirring smooth between intervals. This will take about 1-2 minutes.
- Pour the fudge layer over a baked layer of cookie dough, top with M&Ms and let the bars chill in the fridge until the fudge layer is set. This takes at least 2 hours but you could also make them in advance to let the fudge chill over night.

More Birthday Desserts
- Some version of an Ice Cream Cake tends to be the “treat of choice” for several of my children each year!
- Mint Chocolate Chip Cake isa show stopper of a cake that tastes like my favorite ice cream!
- Dark Chocolate Cake with Vanilla frosting is the world’s most perfect chocolate cake recipe.
- Birthday Cake Biscotti is the perfect way to send your favorite person a birthday wish. Bake a batch of biscotti and ship it! It keeps well when shipping!
- This Rainbow Buttercream board is a fun dessert idea for holidays and parties.
- My classic yellow cake with chocolate frosting is a great way to celebrate the big day!
Pin this now to find it later
Pin It
Rainbow Fudge Cookie Bars Recipe
Ingredients
- 1 refrigerated chocolate chip cookie dough, 30 ounce
- 14 ounce sweetened condensed milk
- 11 ounce package milk chocolate morsels
- 12 ounce package baking M&M's, or mini M&M's
Instructions
- Press cookie dough into a parchment paper lined 15x10x1-inch baking sheet. Bake in a 350 degree oven for 15 minutes. Remove and cool slightly.
- In a microwave safe bowl, combine sweetened condensed milk with chocolate morsels. Heat for 30 seconds, stir, and heat an additional 30 seconds. Stir until smooth and creamy. Spread evenly over baked cookie bars.
- Sprinkle immediately with m&m minis. You can use regular sized candies if you prefer.
- Refrigerate until fudge layer sets up (about 2 hours, or overnight). Store in airtight container. ENJOY
Notes
- Use homemade chocolate chip cookie bars instead of store bought if you prefer.
- Want thicker bars? Use a 13×9 instead.
- Store: keep cooled cookie bars in an airtight container at room temperature for up to one week. Or freeze for up to 3 months.
- See blog post for step by step photos and more!









Hi, I found this on FoodGawker and was hoping I could get your permission to post the recipe on my instagram recipe page (@foodie_recipes) as it looks delicious! I will tag you in the photo and put your website address on the post! Hope this is okay, thanks 🙂 x
These look like my kid’s dream bar!!
I make a version of these, they are always a huge hit. Especially with my husband.
Mmm I could eat a whole platter of these! So fun. Happy birthday to your husband!
Thanks Sues!!
I love these! Super cute and chocolatey!
These bars are amazing and so easy! I love it!
Thanks girl 🙂
I don’t have a problem with refrigerated cookie dough – these look fantastic! Happy birthday to your husband!
Happy birthday to him!! I certainly would like these for my birthday!!
I won’t judge you for using refrigerated cookie dough if you ignore my use of cake mixes and cool whip… I love the scattering of mini M&M’s on the top and the fudgy middle layer will go over well here:) Don’t feel bad; my husband would’ve picked a store-bought angel food cake with a tub of frosting smeared on it. His mom’s creation, not mine!
I currently have 4 tubs of Cool Whip in my freezer, and one in my fridge. No judgement here 🙂
Love these bars, the colors, so bright and cheery and perfect! Pinned.
Birthdays. As a dessert blogger, you’d think that when a family member has a bday I’d be the first one there with a big gorgeous cake? No. Let’s open my freezer and see what frozen dough balls I can pop in the oven and bake. LOL And I was already starting with pumpkin recipes a couple months ago too and Xmas stuff…red velvet is on my agenda next week. LOL
Haha, I made a red velvet recipe last week!! Oh our crazy lives…
Happy Birthday to your husband! These are such a fun colorful way to celebrate.
I love that these are so simple, yet fabulous looking!!! That 2 ingredient microwave fudge is a favorite here too! Happy birthday Michael! And enjoy that ice cream…that would be my hubby’s choice too! LOL!
Do not read into it at all! I have the same problem. I think my family is just spoiled with the homemade stuff and they yearn for processed, packaged food.
I’ll eat this any day! Nothing beats fudge on cookie bars, especially with M & Ms.
Happy Birthday to your hubby! And mine would always pick oreo ice cream over the fanciest cake, so I say, follow the bday boy’s wishes!
If the treats are as good as this one…I don’t think it really matters when you enjoy them! Delish!