Homemade Cookie Dough Bars photo

Cookie Dough Bars

These cookie dough bars are exactly what you reach for when you want the nostalgic comfort of raw cookie dough, but in a neat, sliceable bar. They’re rich, sweet, and studded with chocolate chips and M&M’s so every bite has pockets of texture and color. No baking of the dough base is required — only a quick step to toast the flour for safety and flavor.

I keep this recipe in heavy rotation because it’s reliable and forgiving. The dough comes together in one bowl, the chocolate topping is straightforward, and chilling does most of the work. If you like to prep ahead, these hold up well in the fridge or freezer and make great portable treats.

Ingredient Rundown

Ingredients

  • 10tablespoonssalted butter( softened) — provides richness and structure for the dough; softened means easier creaming with the sugar.
  • 3/4cupbrown sugar — adds moisture and depth of flavor; pack it lightly when measuring.
  • 1/2tspvanilla extract — brightens the dough and enhances sweetness.
  • 2cupall-purpose flour(baked at 350 degrees F for 5 minutes (please see notes about baking the flour before using it in the recipe)) — toasting the flour removes raw flavor and reduces any bacteria risk; let it cool fully before adding.
  • 14ozcan sweetened condensed milk — acts as both a binder and sweetener; it keeps the dough cohesive and slightly sticky.
  • 1cupminature chocolate chips — classic chocolate pockets; miniature size distributes more evenly.
  • 1cupminature M&M’s — for color, crunch, and a chocolatey bite; miniature are preferred here.
  • cooking spray — prevents sticking when lining the pan with parchment.
  • 1cupsemi-sweet chocolate chips — used for the melting chocolate topping; semi-sweet balances the very sweet dough.
  • 2tbspsalted butter — added to the melting chocolate for shine and softening the set top layer.
  • 3/4cupminature M&M’s — extra for sprinkling on top so the bars look fun and colorful.

Mastering Cookie Dough Bars: How-To

  1. Preheat oven to 350°F. Spread the 2 cups all-purpose flour in an even layer on a baking sheet and bake for 5 minutes. Remove the flour from the oven and let it cool completely before using.
  2. Line an 8 x 8-inch baking dish (straight sides) with parchment paper so the paper hangs over two opposite sides for easy removal. Spray the parchment with cooking spray and set the prepared pan aside.
  3. In a large mixing bowl, add 10 tablespoons salted butter (softened) and 3/4 cup brown sugar. Beat with a hand mixer on medium speed until light and fluffy, about 1–2 minutes.
  4. Add 1/2 teaspoon vanilla extract to the butter-sugar mixture and beat an additional minute until incorporated.
  5. With the mixer on low speed, add the cooled baked flour and 14 oz can sweetened condensed milk alternately (a portion of flour, then a portion of condensed milk), mixing until combined and a soft, slightly sticky dough forms. Scrape the bowl as needed.
  6. Using a spatula, fold 1 cup miniature chocolate chips and 1 cup miniature M&M’s into the dough until evenly distributed.
  7. Transfer the dough to the prepared 8 x 8 pan and spread it into an even layer, pressing gently to smooth the top.
  8. Place the pan in the freezer for 30 minutes while you make the chocolate topping.
  9. In a small microwave-safe bowl, combine 1 cup semi-sweet chocolate chips and 2 tablespoons salted butter. Microwave for 30 seconds, remove and stir, then continue microwaving in 15–30 second increments, stirring between bursts, until the chocolate and butter are fully melted and the mixture is smooth.
  10. Remove the cookie dough bars from the freezer and pour the melted chocolate evenly over the top.
  11. Immediately sprinkle 3/4 cup miniature M&M’s over the melted chocolate and gently press them into the chocolate so they adhere.
  12. Refrigerate the bars for 2 to 3 hours, or until the chocolate topping is set and the bars are firm. Use the parchment overhang to lift the bars from the pan, cut into squares, and serve.

Why This Cookie Dough Bars Stands Out

Easy Cookie Dough Bars recipe photo

These bars hit the balance between creamy, chewy, and slightly crunchy. The sweetened condensed milk keeps the dough tender and cohesive in a way granulated sugar and eggs alone wouldn’t. Toasting the flour is a small but crucial step — it takes away the raw flour taste and improves the final mouthfeel.

The miniature chocolate chips and M&M’s spread the chocolate and candy through every bite, so you don’t have to hunt for mix-ins. The chilled, set chocolate top gives a contrast in texture: a firm snap that yields to a soft, buttery interior. That layered feel makes these bars feel both indulgent and special without complicated technique.

Low-Carb/Keto Alternatives

Delicious Cookie Dough Bars shot

These bars are very sweet and heavily reliant on flour and sweetened condensed milk, so a straight swap to a keto version changes texture and flavor substantially. If you want a lower-carb approach, consider these ideas as experiments rather than direct replacements.

Options to explore: use a low-carb flour blend that can be toasted (note it will toast and behave differently), replace sweetened condensed milk with a homemade keto condensed milk substitute (heavy cream reduced with sweetener) — test in small batches. For mix-ins, use sugar-free chocolate chips and crushed low-carb candy in place of M&M’s. Expect a denser, less fluffy result. Chill thoroughly before cutting to get cleaner slices.

Before You Start: Equipment

Gather these basics so the process flows: an 8 x 8-inch straight-sided baking dish lined with parchment, a baking sheet for toasting the flour, a large mixing bowl, hand mixer, spatula, microwave-safe bowl for melting chocolate, and measuring tools. The lined pan with parchment overhang is non-negotiable — it makes lifting and cutting tidy bars easy.

Small but helpful extras

Having a small offset spatula or bench scraper makes spreading the dough neater. A rubber spatula helps scrape the bowl clean when you’re folding in chips and candies.

What Not to Do

Do not skip baking the flour. The short 5-minute toast at 350°F is quick and improves both safety and flavor. Do not add the flour while it is still warm; that will make the dough gummy and affect texture. Don’t try to shortcut the chilling step: the freezer and refrigeration steps solidify the base and topping so you can cut clean squares.

Avoid over-microwaving the chocolate. Heat in short bursts and stir between intervals. Burned chocolate will seize and become grainy, and you’ll lose the glossy topping these bars rely on.

Smart Substitutions

If you’re missing one of the specified ingredients, consider these practical swaps but be aware of changes in texture and sweetness.

– If you don’t have semi-sweet chocolate chips for the topping, use dark chocolate or milk chocolate depending on your sweetness preference; darker chocolate will be less sweet and firmer.
– If salted butter isn’t available for either the dough or topping, use unsalted and add a pinch of salt (about 1/8 tsp) to the dough to balance sweetness.
– Miniature mix-ins distribute more evenly; if you only have regular-size chips or candies, chop them smaller so the bars don’t become lopsided with big pockets of mix-ins.

Recipe Notes & Chef’s Commentary

Timing matters more in the chilling phases than in the mixing. The dough will be sticky; that’s expected. The freezer step before adding the chocolate helps the dough firm quickly so the topping doesn’t sink in. I prefer the 2–3 hour chill in the fridge after topping — overnight is fine and can even improve sliceability.

Small details lift this recipe: make sure the toasted flour is completely cool, and use a spatula to press the dough gently but evenly into the pan. When sprinkling the top M&M’s, press them just enough to anchor them; don’t push so hard that the chocolate smears.

Storage & Reheat Guide

Store the bars in an airtight container in the refrigerator for up to 7 days. If you need longer storage, wrap squares individually and freeze for up to 2 months. Thaw in the refrigerator overnight before serving for best texture.

These are best served chilled or at cool room temperature. If you want the chocolate topping slightly softer, let a bar sit at room temperature for 10–15 minutes before eating. Don’t microwave whole bars; short bursts (5–8 seconds) can soften a single piece if you prefer it slightly warmer.

Ask the Chef

Q: Can I make these dairy-free?
A: The recipe relies on sweetened condensed milk and butter for texture and binding, so a dairy-free version requires specialty substitutes (coconut condensed milk alternatives and dairy-free butter). Results will differ; test small batches first.

Q: Can I halve the recipe?
A: Yes. Use a smaller container or an appropriately scaled pan and adjust chilling time slightly — halved dough may chill faster in the freezer.

Ready, Set, Cook

Set out your measured ingredients, preheat the oven for the flour toast, and line the 8 x 8 pan. Follow the How-To steps closely: the order and technique are designed for a smooth result. The hands-on work takes about 20 minutes; most of the time is passive chilling. You’ll end up with colorful, indulgent bars that travel well and disappear fast.

These cookie dough bars are approachable and forgiving. Make a batch, label the extras, and keep one in the fridge for when you need a quick pick-me-up or a shareable dessert. Enjoy — and if you experiment with a swap, note what changed so you can recreate your favorite variation next time.

Homemade Cookie Dough Bars photo

Cookie Dough Bars

Cookie dough bars made from a slightly baked flour cookie-dough base mixed with sweetened condensed milk, studded with miniature chocolate chips and M&M's, topped with melted semi-sweet chocolate and more M&M's.
Prep Time20 minutes
Cook Time1 minute
Total Time2 hours 21 minutes
Course: Dessert
Servings: 16 servings

Ingredients

Ingredients

  • 10 tablespoonssalted butter softened
  • 3/4 cupbrown sugar
  • 1/2 tspvanilla extract
  • 2 cupall-purpose flour baked at 350 degrees F for 5 minutes (please see notes about baking the flour before using it in the recipe)
  • 14 ozcan sweetened condensed milk
  • 1 cupminature chocolate chips
  • 1 cupminature M&M’s
  • cooking spray
  • 1 cupsemi-sweet chocolate chips
  • 2 tbspsalted butter
  • 3/4 cupminature M&M’s

Instructions

Instructions

  • Preheat oven to 350°F. Spread the 2 cups all-purpose flour in an even layer on a baking sheet and bake for 5 minutes. Remove the flour from the oven and let it cool completely before using.
  • Line an 8 x 8-inch baking dish (straight sides) with parchment paper so the paper hangs over two opposite sides for easy removal. Spray the parchment with cooking spray and set the prepared pan aside.
  • In a large mixing bowl, add 10 tablespoons salted butter (softened) and 3/4 cup brown sugar. Beat with a hand mixer on medium speed until light and fluffy, about 1–2 minutes.
  • Add 1/2 teaspoon vanilla extract to the butter-sugar mixture and beat an additional minute until incorporated.
  • With the mixer on low speed, add the cooled baked flour and 14 oz can sweetened condensed milk alternately (a portion of flour, then a portion of condensed milk), mixing until combined and a soft, slightly sticky dough forms. Scrape the bowl as needed.
  • Using a spatula, fold 1 cup miniature chocolate chips and 1 cup miniature M&M’s into the dough until evenly distributed.
  • Transfer the dough to the prepared 8 x 8 pan and spread it into an even layer, pressing gently to smooth the top.
  • Place the pan in the freezer for 30 minutes while you make the chocolate topping.
  • In a small microwave-safe bowl, combine 1 cup semi-sweet chocolate chips and 2 tablespoons salted butter. Microwave for 30 seconds, remove and stir, then continue microwaving in 15–30 second increments, stirring between bursts, until the chocolate and butter are fully melted and the mixture is smooth.
  • Remove the cookie dough bars from the freezer and pour the melted chocolate evenly over the top.
  • Immediately sprinkle 3/4 cup miniature M&M’s over the melted chocolate and gently press them into the chocolate so they adhere.
  • Refrigerate the bars for 2 to 3 hours, or until the chocolate topping is set and the bars are firm. Use the parchment overhang to lift the bars from the pan, cut into squares, and serve.

Equipment

  • 8 x 8-inch baking dish
  • Parchment Paper
  • Baking Sheet
  • Mixing Bowl
  • Hand Mixer
  • Spatula
  • Microwave-safe bowl
  • Measuring Cups and Spoons
  • freezer
  • Refrigerator

Notes

Notes
It’s very important to cook the flour before mixing it into the recipe. Flour should not be eaten raw, so spread it out on a large baking sheet and bake at 350°F for 5 minutes to kill any bacteria.
You can use refrigerated cookie dough to make these if you prefer, but make sure to look for the “Safe to Eat Raw” labels. Pillsbury has refrigerated cookie dough that you can eat raw because the flour is cooked and the eggs are pasteurized. If you are using dry cookie dough mixtures, be sure to cook the flour for at least 5 minutes before mixing in the wet ingredients. Remove any chocolate chips though so they don’t melt when cooking the flour.
Turn this recipe into a holiday treat by adding green and red M&M’s for Christmas. If you can find red, white, and blue M&M’s, serve this up for 4th of July. Even pastel M&M’s would be a perfect Easter treat!

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Recipe Rating