Home » Desserts » Magic Cookie Bars

Magic Cookie Bars

Magic cookie bars (or 7 layer bars) are gooey layered bars with a graham cracker crust with layers of sweetened condensed milk, chocolate chips, shredded coconut, and toasted pecans, baked until golden brown. They’re chewy, chocolatey, and seriously addictive. Perfect for potlucks, bake sales, and holiday treats. Bake at 350°F for 25 minutes, makes 24 bars using simple ingredients.

stack of magic cookie bars on a stack of plates

My best friend introduced me to these ages ago! She called them “Holly Dollies” and we’ve been making them ever since. They are like brownies but with 7 layers of yumminess.

They’re also called 7 Layer Bars even though there are technically only 6 layers. Starting with a graham cracker crust, then topped with coconut, chocolate chips, pecans, and sweetened condensed milk. Bake them until gooey and delicious!

The original recipe uses butterscotch chips for that additional flavor but I use semi-sweet and dark chocolate instead. That’s the beauty of these, you can add what you like.

Plus they are easier than individual cookies. Just layer everything in a pan and bake!

More Easy Bar Recipes

individual ingredients for a recipe with text overlay labeling them

See recipe card for complete information on ingredients and their quantities.

Ingredient Notes

  • Graham Cracker Crumbs – Crush your own or buy them already done. You can substitute your favorite cookie like Nilla wafers too!
  • Sweetened Condensed Milk – This is NOT evaporated milk so make sure you have the right one. Sweetened condensed milk is thick, sweet, and holds everything together.
  • Chocolate Chips – Use a combination of semi-sweet and dark chocolate. You can also add milk chocolate if you prefer.
  • Shredded Coconut – Use sweetened shredded coconut. The sweetened coconut shreds will make everything super sweet. Flaked coconut works too.
  • PecansToast the pecans for more flavor and crunch. Walnuts or almonds substitute fine.

For more insider tips, tricks, and a behind the scenes look, follow me on Pinterest, Facebook, Instagram, & X.

  1. Preheat oven to 350°F. Line a 9×13 inch baking pan with parchment paper or spray with cooking spray.
graham cracker crumbs in a clear bowl
  1. Mix graham cracker crumbs and melted butter in a bowl until combined.
graham cracker crust in a 9x13 baking dish with parchment paper
  1. Press into an even layer in the bottom of the prepared pan. Press down firmly with a spatula.
baking dish with a layer of shredded coconut
  1. Layer shredded coconut over the crust in an even layer.
baking dish filled with chocolate chips and toasted pecans
  1. Sprinkle chocolate chips and chopped pecans over the coconut. Pour sweetened condensed milk evenly over the top, making sure to drizzle over the edges. This holds everything together!
baking dish with parchment paper and sweetened condensed milk on it
  1. Bake for 25 minutes until the edges turn golden brown and the coconut is lightly toasted. Cool completely before slicing. This is important because they’re too gooey to cut when warm!

For the full recipe and detailed instructions, please refer to the recipe card at the bottom of the post.

baked 7 layer bars in a baking sheet with parchment paper

Storage

Room Temperature: Store in an airtight container for up to 5 days. No need to refrigerate unless you live somewhere hot or humid because they will start to melt and get sticky.

Refrigerator: Cool them a little faster by sticking them in the fridge for about 15 minutes. They firm up nicely when cold! But, you don’t want to leave them in there because they can get sticky and chewy.

Freezer: Wrap individual bars and freeze for up to 2 months. Place parchment paper between layers when stacking so they don’t stick together. Thaw in the fridge so they don’t sweat.

Cutting: Wait until completely cool before slicing for clean cuts. Use a sharp knife and chop down in one motion. Don’t drag through the gooey layers. It’s also helpful to use a strong plastic knife if you have one.

close up of cut cookie bars on parchment paper

Variations

  • Chocolate Crust: Use chocolate graham crackers instead of plain for extra chocolate flavor.
  • Butterscotch: Replace half the chocolate chips with butterscotch chips for the traditional 7 Layer Bar recipe.
  • Pretzel Crust: Use crushed pretzels instead of graham crackers for salty-sweet combo.
  • Different Nuts: Try almonds, walnuts, or cashews instead of pecans.
  • Toffee Addition: Add toffee bits or crushed toffee candy bars for extra crunch.
  • Peanut Butter: Add peanut butter chips along with chocolate chips.
  • Sea Salt: Sprinkle flaky sea salt on top right after removing from oven. I love to do this because it balances out the sweetness a bit.
stack of 7 layer cookie bars

Frequently Asked Questions

Why are they called Magic Cookie Bars?

Some say it’s the 7 layers (even though there are really 6), or the 7 flavors. They’re also called Hello Dollies, Holly Dolly Bars, or Seven Layer Bars!

What’s the difference between sweetened condensed milk and evaporated milk?

Sweetened condensed milk is thick, sweet, and sticky. Evaporated milk is thin and unsweetened. You NEED sweetened condensed milk for this recipe!

Can I make this ahead of time?

Yes! Make up to 2 days ahead and store at room temperature in an airtight container.

How do I cut these cleanly?

Wait until completely cool. Use a sharp knife and chop down in one motion instead of dragging through the layers. Clean the knife between cuts. You can also use a sturdy plastic knife since the chocolate won’t stick to it that much.

Can I freeze magic cookie bars?

Yes! Freeze for up to 2 months. Place parchment paper between layers when stacking.

Why do I pour condensed milk on top instead of the bottom?

Pouring it over everything holds the toppings together and gives the pecans a candied coating. Some recipes do it differently but I found that pouring it over the top keeps the coconut and nuts from falling off after you bake them.

Can I use chocolate graham crackers?

Absolutely! Chocolate graham crackers make the crust extra chocolatey.

hand holding a 7 layer bar with a bite missing

Recipe Tips & Tricks

  • Line the pan with parchment paper for easy removal. Life-changing trick!
  • Press graham cracker crust down firmly with a spatula. This prevents crumbling.
  • One-pan shortcut: Melt butter in the pan in the oven, add crumbs, stir, and press. Be careful – the pan is hot!
  • Drizzle sweetened condensed milk evenly over everything, including the edges.
  • Toast pecans before adding for deeper, richer flavor.
  • Bake until edges are golden brown and coconut is lightly toasted.
  • Cool completely before cutting. They’re too gooey when warm!
  • Refrigerate to cool faster and firm them up for cleaner cuts.
  • Use a sharp knife and chop down in one motion. Don’t drag through the layers.
  • Sprinkle sea salt on top right after baking for sweet-salty contrast.

This magic cookie bars recipe is the perfect easy dessert for feeding a crowd! Make them for your next gathering and watch them disappear.

If you love this recipe as much as I do, please leave us a ⭐️⭐️⭐️⭐️⭐️ five-star review in the comment section below. Thanks!

stack of magic cookie bars

Magic Cookie Bars Recipe

Magic Cookie Bars with graham crust, chocolate chips, coconut, and pecans. Gooey, easy, perfect for crowds!
Rate me!
Print Pin Rate
Course: Dessert
Cuisine: American
Prep Time: 5 minutes
Cook Time: 25 minutes
Total Time: 30 minutes
Servings: 24 bars
Author: Jennifer Stewart

Ingredients

  • 2 cups graham cracker crumbs
  • ¾ cup unsalted butter melted
  • 2 cups sweetened shredded coconut
  • 1 cup semisweet chocolate chips
  • 1 cup dark chocolate chips
  • 14 ounces sweetened condensed milk
  • 1 cup pecans toasted, chopped
  • 1 teaspoon flaky sea salt

Instructions

  • Preheat oven to 350F. Grab a 9×13 baking dish and line with parchment paper or cooking spray.
  • In a bowl, combine the graham cracker crumbs and melted butter. Stir to combine.
  • Press into an even layer in the bottom of the prepared baking sheet.
  • Top with coconut, both kinds of chocolate chips, and toasted pecans.
  • Top the whole thing with the sweetened condensed milk.
  • Bake for 25 minutes or until the edges start to brown.
  • Remove from the oven and let cool completely before slicing.

Notes

  • Line the pan with parchment paper for easy removal. Life-changing trick!
  • Press graham cracker crust down firmly with a spatula. This prevents crumbling.
  • One-pan shortcut: Melt butter in the pan in the oven, add crumbs, stir, and press. Be careful – the pan is hot!
  • Drizzle sweetened condensed milk evenly over everything, including the edges.
  • Toast pecans before adding for deeper, richer flavor.
  • Bake until edges are golden brown and coconut is lightly toasted.
  • Cool completely before cutting. They’re too gooey when warm!
  • Refrigerate to cool faster and firm them up for cleaner cuts.
  • Use a sharp knife and chop down in one motion. Don’t drag through the layers.
  • Sprinkle sea salt on top right after baking for sweet & salty contrast.

Nutrition

Serving: 1 | Calories: 284kcal | Carbohydrates: 27g | Protein: 4g | Fat: 19g | Saturated Fat: 11g | Polyunsaturated Fat: 1g | Monounsaturated Fat: 5g | Trans Fat: 0.2g | Cholesterol: 21mg | Sodium: 193mg | Potassium: 208mg | Fiber: 2g | Sugar: 19g | Vitamin A: 228IU | Vitamin C: 1mg | Calcium: 86mg | Iron: 1mg
Pinterest pin image for magic cookie bars

Monday Christmas Cookie Recipes

Similar Posts

Leave a Reply

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

Recipe Rating