Magic Cookie Bars

Total Time
Prep: 15 min. Bake: 30 min. + cooling

Updated on Sep. 16, 2024

Whether you call them magic cookie bars, seven-layer bars or Hello Dolly bars, we know that this super simple dessert is always a hit.

Now Trending

Many of us bakers have a few go-to recipes that satisfy every time we make them. Maybe our recipes include a batch of fudgy brownies, a pan of cookie brittle or a loaf of banana bread. Classics like these always hit the spot.

Want another must-have recipe that will always leave you with an empty pan? Try magic cookie bars. These easy-to-make bars are chewy, nutty and chocolaty. There’s something for everyone with this treat. You may hear these bars called seven-layer bars, Hello Dolly bars or simply just magic bars. No matter what you call ’em, we know that this magic cookie bar recipe from reader Pauline Schrag is sure to hit the spot.

And the best part about these bars? They are easy. You don’t even need a mixing bowl. So, what are you waiting for? Grab some chocolate chips and get started. Once you’ve mastered this magic cookie bars recipe, there’s a whole world of magic cookie bar variations just waiting to be enjoyed.

Magic Cookie Bar Ingredients

  • Butter: You’ll need one whole stick of butter for a magic cookie bar recipe. Try cubing the butter so it melts easily and quickly in the pan.
  • Graham cracker crumbs: Use a food processor to make crumbs from whole graham crackers. You could also place the graham crackers in a resealable bag, close it tightly and whack the crackers with a rolling pin until you’re left with crumbs.
  • Shredded coconut: Purchase sweetened (not unsweetened) shredded coconut for the best coconut flavor.
  • Chocolate chips: Since they’re such a prominent ingredient, it’s essential to use the best chocolate chips in this magic cookie bars recipe.
  • Nuts: Walnuts, pecans, almonds, hazelnuts or macadamia nuts (or a mix of them) can be used in this magic cookie bar recipe. It’s entirely up to you! No matter which nuts you go with, toast the nuts beforehand to bring out their naturally rich, nutty flavor.
  • Sweetened condensed milk: One 14-ounce can sweetened condensed milk binds the coconut, chocolate chips and nuts together into a rich, creamy, silky filling.

Directions

Step 1: Prepare the crust

A person wearing oven mitts holds a square baking pan with melted butter. Surrounding the pan are a pack of graham crackers, a partially opened sleeve of wax paper, and a bowl of crushed graham cracker crumbs on a marble surface.Taste Recipes

Preheat your oven to 350°F. Melt the butter in a 9-inch square baking pan.

A close-up view of a person pouring crushed graham crackers from a glass bowl into a square baking pan with melted butter. A can of sweetened condensed milk and a package of Baker's chocolate are positioned on the marble countertop nearby.Taste Recipes

Then sprinkle the graham cracker crumbs right on top of the melted butter.

Editor’s Tip: Use the flat bottom of a measuring cup or glass to press the crumbs to form a flat, even crust. Bakers, you know this one! It’s exactly how you’d make a graham cracker pie crust.

Step 2: Layer the ingredients

A person is sprinkling shredded coconut from a measuring cup onto a layer of crumbled graham crackers in a square baking pan. Surrounding the pan are baking ingredients including chocolate chips, shredded coconut, and a can of sweetened condensed milk.Taste Recipes

After making a good base for your magic cookie bars, layer on the other ingredients, starting with the coconut.

A person wearing a gray shirt and black apron is sprinkling chocolate chips from a small bowl onto a baking pan filled with a white ingredient, possibly shredded coconut. The countertop also holds chopped nuts and a can of condensed milk.Taste Recipes

Then add a layer of chocolate chips.

A person's hands are seen adding a mixture of nuts from a cutting board into a baking pan. The pan already contains a layer of chocolate chips and shredded coconut. A can of sweetened condensed milk and a spatula are on the marble countertop beside the pan.Taste Recipes

Then add the nuts.

Step 3: Drizzle the milk

A person is pouring a can of sweetened condensed milk over a layer of mixed nuts, chocolate chips, and shredded coconut in a square baking pan. A spatula, measuring cup, and knife are on the marble countertop beside them.Taste Recipes

Finally, drizzle on a can of sweetened condensed milk. Open the top and pour the milk over the pan as evenly as you can. No need to mix or spread here! Just let the milk settle into all the other ingredients.

Step 4: Bake the bars

A hand holding a toothpick tests the doneness of a dessert that appears to be a baked bar or cake with a golden-brown top and visible nuts, in a rectangular baking dish.Taste Recipes

Bake the magic cookie bars until a toothpick inserted into the center comes out clean, about 30 minutes.

Once baked, let the magic bars cool on a wire rack for several hours at room temperature. You’ll want them at room temperature before slicing.

A marble countertop features a blue-striped baking sheet with several pieces of nut and dried fruit-topped bar cookies. Two glasses of chocolate milk with straws and a knife are nearby, along with napkins holding additional cookie pieces.Taste Recipes

Recipe Variations

  • Try a different crumb crust: Use any type of graham cracker crumb you like in a magic cookie bar recipe. You can also use different crumb crust ingredients—think gingersnaps, Nilla wafers or chocolate wafers. Even saltines and crushed pretzels work.
  • Use other baking chips: Semi-sweet chocolate chips are the most common chocolate chips used in baking, but butterscotch chips are the most traditional for magic cookie bars. You can use any chips in this recipe. Try white chocolate chips, dark chocolate chips, and even flavored baking chips like peanut butter or peppermint. Any baking chip—or a blend of baking chips—would be welcome.
  • Add dried fruit: Incorporate a handful or two of any dried fruit into a magic cookie bars recipe. Chocolate, dried cherry and coconut are a match made in heaven.
  • Replace the condensed milk: A can of sweetened condensed milk is a must in any magic bar recipe, but you can change this ingredient up if you’d like. Use sweetened condensed coconut milk (an easy way to make this recipe vegan-friendly) or even dulce de leche.
  • Garnish with toppings: If you want to add a little extra to your magic cookie bars, try a topping. Melt a bit of chocolate or Nutella and drizzle it on top, or add crushed Oreo pieces or chopped Reese’s.

How to Store Magic Cookie Bars

Once the magic cookie bars are cooled to room temp and sliced into bars, stash them in an airtight container. They can be kept at room temperature for up to three days.

Can you freeze magic cookie bars?

Yes, magic cookie bars can be frozen for up to two months. Let them cool to room temperature first, then wrap them tightly in storage wrap or place them in an airtight container. If you’re stacking the bars in the container, lay pieces of parchment between each layer. Thaw them on the counter for an hour or two when you’re ready to enjoy your magic bars again.

Magic Cookie Bar Tips

Squares of fruit and nut blondies are arranged on a light blue striped surface. A wooden-handled knife is positioned among the blondies. Two glasses of pink beverage with straws and pink cloth napkins are placed around the blondies on a marble background.Taste Recipes

How can I cleanly cut these magic cookie bars?

Magic cookie bars are sticky, which can make cutting them a bit messy, but there’s an easy method on how to cut dessert bars so they’re clean and sharp! Before each cut, run a sharp chef’s knife or bench scraper under hot water, wipe off the water with a clean towel and make one single cut. Repeat until all your bars are cut.

Can I double this magic cookie bar recipe?

Yes, you can double this recipe, and it’s really easy to do so. Just remember to bake a double batch in either two 9-inch pans or one 13×9-inch pan.

Can I use evaporated milk instead of sweetened condensed milk?

No, unfortunately, evaporated milk cannot be subbed in for sweetened condensed milk. However, if you want to save a trip to the store, you can make sweetened condensed milk with some whole milk and granulated sugar.

Watch How to Make Magic Cookie Bars

Magic Cookie Bars

Prep Time 15 min
Cook Time 30 min
Yield 16 bars

Ingredients

  • 1/2 cup butter, cubed
  • 1 cup graham cracker crumbs
  • 1 cup sweetened shredded coconut
  • 1 cup semisweet chocolate chips
  • 1 cup chopped nuts
  • 1 can (14 ounces) sweetened condensed milk

Directions

  1. Preheat oven to 350°. Melt butter in a 9-in. square baking pan. On top of melted butter, sprinkle crumbs, then coconut, then chocolate chips, then nuts. Pour condensed milk over all. Do not stir. Bake until a toothpick inserted in center comes out clean, about 30 minutes. Let cool for several hours before cutting.

Nutrition Facts

1 bar: 279 calories, 18g fat (9g saturated fat), 24mg cholesterol, 138mg sodium, 28g carbohydrate (22g sugars, 1g fiber), 5g protein.

Loading Popular in the Community
These rich bar cookies will melt in your mouth! They’re ideal to have on hand for a snack. —Pauline Schrag, Theresa, New York
Recipe Creator
Loading Reviews
Back to Top