There’s something wonderfully nostalgic about magic cookie bars. For many of us, they evoke cozy memories of holiday gatherings, school bake sales, and snowy afternoons when the house was filled with the comforting aroma of something sweet baking in the oven. These bars have been passed down for generations, often tucked inside handwritten recipe cards stained with splashes of condensed milk and crumbs from graham crackers.
Magic cookie bars—sometimes lovingly called seven-layer bars—are a classic American dessert that first gained popularity in the 1960s when sweetened condensed milk became a household staple. The original recipe was printed on the label of Eagle Brand condensed milk, and from there, it became a treasured treat in homes across the country.
This dessert is all about ease and indulgence. Layers of crushed graham crackers, butter, chocolate chips, shredded coconut, and sometimes nuts are drenched in silky sweetened condensed milk before being baked into golden, gooey perfection. No mixer, no fuss—just a pan, a few simple ingredients, and a whole lot of magic.
Whether it’s the holidays, a weekend bake-a-thon, or a potluck with friends, magic cookie bars bring people together. The gooey layers are rich, chewy, and just crunchy enough to keep you coming back for one more square.

Why You’ll Love This Recipe:
- Quick and easy to make: No fancy equipment needed—just layer and bake.
- Crowd favorite: Perfect for parties, picnics, and holidays.
- Customizable: Swap in different chips or nuts to suit your taste.
- Make-ahead friendly: These bars store well and taste even better the next day.
Magic Cookie Bars
- Yield: 24 bars 1x
Description
There’s something wonderfully nostalgic about magic cookie bars. For many of us, they evoke cozy memories of holiday gatherings, school bake sales, and snowy afternoons when the house was filled with the comforting aroma of something sweet baking in the oven. These bars have been passed down for generations, often tucked inside handwritten recipe cards stained with splashes of condensed milk and crumbs from graham crackers.
Magic cookie bars—sometimes lovingly called seven-layer bars—are a classic American dessert that first gained popularity in the 1960s when sweetened condensed milk became a household staple. The original recipe was printed on the label of Eagle Brand condensed milk, and from there, it became a treasured treat in homes across the country.
This dessert is all about ease and indulgence. Layers of crushed graham crackers, butter, chocolate chips, shredded coconut, and sometimes nuts are drenched in silky sweetened condensed milk before being baked into golden, gooey perfection. No mixer, no fuss—just a pan, a few simple ingredients, and a whole lot of magic.
Whether it’s the holidays, a weekend bake-a-thon, or a potluck with friends, magic cookie bars bring people together. The gooey layers are rich, chewy, and just crunchy enough to keep you coming back for one more square.
Ingredients
- 1/2 cup unsalted butter, melted
- 1 1/2 cups graham cracker crumbs
- 1 cup semi-sweet chocolate chips
- 1 cup butterscotch chips (optional)
- 1 cup sweetened shredded coconut
- 1/2 cup chopped walnuts or pecans (optional)
- 1 (14-ounce) can sweetened condensed milk
Instructions
- Preheat your oven to 350°F (175°C). Lightly grease a 9×13-inch baking dish or line it with parchment paper for easy removal.
- Make the crust: In a medium bowl, combine the melted butter with graham cracker crumbs. Stir until evenly moistened, then press the mixture firmly into the bottom of the prepared baking dish to form a crust.
- Add the chocolate and butterscotch chips: Sprinkle the chocolate chips evenly over the crust. If you’re using butterscotch chips, layer them on top as well. The melty richness of both kinds of chips is what gives magic cookie bars their signature texture.
- Add nuts and coconut: Next, sprinkle the chopped nuts and shredded coconut evenly across the chips. The nuts add crunch, while the coconut gives the bars a toasty, chewy sweetness.
- Pour the condensed milk: Slowly drizzle the entire can of sweetened condensed milk over the top. Make sure it’s spread out to cover the layers beneath—it will bind everything together as it bakes.
- Bake: Place the pan in the oven and bake for 25–30 minutes or until the edges are golden brown and the center is set.
- Cool completely: Let the bars cool in the pan for at least an hour, then refrigerate for cleaner cuts. Once firm, slice into squares and enjoy.
Notes
- You can store magic cookie bars at room temperature in an airtight container for up to 4 days. For longer storage, refrigerate them for up to a week or freeze for up to 2 months. If frozen, allow to thaw in the refrigerator before serving.
Nutrition
- Calories: 220
INGREDIENTS YOU’LL NEED:

- 1/2 cup unsalted butter, melted
- 1 1/2 cups graham cracker crumbs
- 1 cup semi-sweet chocolate chips
- 1 cup butterscotch chips (optional)
- 1 cup sweetened shredded coconut
- 1/2 cup chopped walnuts or pecans (optional)
- 1 (14-ounce) can sweetened condensed milk
How to Make Magic Cookie Bars
Creating these rich, layered cookie bars is so simple it almost feels like magic. All you need is a baking dish and a few pantry staples, and you’ll have a dessert that looks (and tastes) like it took much more effort.
STEP-BY-STEP INSTRUCTIONS:
- Preheat your oven to 350°F (175°C). Lightly grease a 9×13-inch baking dish or line it with parchment paper for easy removal.
- Make the crust: In a medium bowl, combine the melted butter with graham cracker crumbs. Stir until evenly moistened, then press the mixture firmly into the bottom of the prepared baking dish to form a crust.
- Add the chocolate and butterscotch chips: Sprinkle the chocolate chips evenly over the crust. If you’re using butterscotch chips, layer them on top as well. The melty richness of both kinds of chips is what gives magic cookie bars their signature texture.
- Add nuts and coconut: Next, sprinkle the chopped nuts and shredded coconut evenly across the chips. The nuts add crunch, while the coconut gives the bars a toasty, chewy sweetness.

- Pour the condensed milk: Slowly drizzle the entire can of sweetened condensed milk over the top. Make sure it’s spread out to cover the layers beneath—it will bind everything together as it bakes.
- Bake: Place the pan in the oven and bake for 25–30 minutes or until the edges are golden brown and the center is set.
- Cool completely: Let the bars cool in the pan for at least an hour, then refrigerate for cleaner cuts. Once firm, slice into squares and enjoy.
HELPFUL TIPS:
- For a firmer crust, pre-bake the graham cracker base for 5 minutes before adding the layers.
- Use parchment paper with overhang to easily lift the bars out of the pan for slicing.
- Customize the chips: white chocolate, peanut butter chips, or even dark chocolate can be used.
- Add a pinch of flaky sea salt on top after baking for a sweet-salty twist.
- Let them cool completely before slicing to avoid a gooey mess.

DETAILS:
- Prep Time: 10 minutes
- Cook Time: 25–30 minutes
- Total Time: 40 minutes
- Yield: 24 bars
- Category: Dessert
- Method: Baking
- Cuisine: American
- Diet: Vegetarian
NOTES:
You can store magic cookie bars at room temperature in an airtight container for up to 4 days. For longer storage, refrigerate them for up to a week or freeze for up to 2 months. If frozen, allow to thaw in the refrigerator before serving.

NUTRITIONAL INFORMATION: (Estimated per bar)
- Calories: 220
- Total Fat: 12g
- Saturated Fat: 7g
- Cholesterol: 10mg
- Sodium: 80mg
- Carbohydrates: 25g
- Fiber: 1g
- Sugars: 18g
- Protein: 3g
FREQUENTLY ASKED QUESTIONS:
Can I make these nut-free?
Absolutely! Just leave out the nuts or substitute with sunflower seeds or extra coconut.
What if I don’t have butterscotch chips?
You can omit them or replace them with white chocolate or peanut butter chips.
How do I prevent the bars from sticking to the pan?
Line your baking dish with parchment paper or foil for easy removal and clean edges.
Can I freeze magic cookie bars?
Yes! Wrap them tightly and freeze for up to 2 months. Thaw overnight in the fridge before serving.
STORAGE INSTRUCTIONS:
Store in an airtight container at room temperature for up to 4 days or in the fridge for 7 days. For longer storage, freeze individually wrapped bars and thaw as needed.

Related Recipes:
If you liked this recipe, you’ll definitely enjoy these other cheesy delights:
CONCLUSION:
Magic cookie bars are more than just a dessert—they’re a little slice of comfort, packed with layers of sweetness and tradition. Whether you’re making them for a holiday tray, a potluck, or a quiet evening at home, they’re guaranteed to be a hit. Easy to make, endlessly customizable, and always delicious, these bars are a treat you’ll come back to time and again. Give them a try and let a little baking magic into your day.

