Magic Cookie Bars are classic layered dessert bars made with a buttery graham cracker crust, sweetened condensed milk, chocolate chips, butterscotch chips, shredded coconut, and chopped pecans. Also known as Seven Layer Bars or Hello Dolly Bars, they’re loved for their combination of chewy, crunchy, chocolatey, and buttery textures.
This easy dessert comes together in one baking pan without a mixer or complicated preparation. They’re a lovely choice for holiday cookie trays, bake sales, potlucks, family gatherings, or an everyday sweet treat.
Recipe Overview
| Detail | Information |
|---|---|
| Prep Time | 10 minutes |
| Cook Time | 25–30 minutes |
| Cooling Time | 1–2 hours |
| Total Time | About 1 hour 40 minutes |
| Servings | 24 bars |
| Difficulty | Easy |
Why You’ll Love This Recipe
-
Simple preparation: No electric mixer, complicated dough, or special baking skills required.
-
Multiple textures: The graham cracker crust is buttery, while the toppings create a chewy and crunchy finish.
-
Rich layers: Chocolate, butterscotch, coconut, and pecans complement one another.
-
Great for sharing: A 9 × 13-inch pan makes plenty of small dessert bars.
-
Make-ahead friendly: Bake them in advance and cut them when you’re ready to serve.
Ingredients
-
1½ cups graham cracker crumbs
-
½ cup (1 stick) unsalted butter, melted
-
1 (14-ounce) can sweetened condensed milk
-
1 cup semi-sweet chocolate chips
-
1 cup butterscotch chips
-
1⅓ cups sweetened shredded coconut
-
1 cup chopped pecans
Ingredient Notes
Graham cracker crumbs: Finely crushed graham crackers create a compact, buttery base. Store-bought crumbs work just as well as homemade.
Sweetened condensed milk: This is the ingredient that holds the layers together as they bake. Use sweetened condensed milk, not evaporated milk.
Chocolate and butterscotch chips: Semi-sweet chocolate balances the sweetness of the butterscotch. You can use milk chocolate if you prefer a sweeter bar.
Shredded coconut: Sweetened coconut gives the bars a chewy texture and additional sweetness. Unsweetened coconut is another option.
Pecans: Chopped pecans add a pleasant crunch. Walnuts are a suitable alternative.
How to Make Magic Cookie Bars
1. Prepare the baking pan. Preheat your oven to 350°F. Line a 9 × 13-inch baking pan with parchment paper, leaving some overhang on the sides so the bars can be lifted out easily.
2. Make the graham cracker crust. Combine the graham cracker crumbs and melted butter in a mixing bowl. Stir until the crumbs are evenly moistened. Press the mixture firmly into the bottom of the prepared pan, creating an even layer.
3. Add the sweetened condensed milk. Pour the entire can evenly over the graham cracker crust. Distribute it gently so it reaches the edges without disturbing the crumb layer.
4. Layer the toppings. Sprinkle the chocolate chips, butterscotch chips, shredded coconut, and chopped pecans evenly over the condensed milk. Gently press the toppings down with a fork so they adhere.
5. Bake the bars. Place the pan in the preheated oven and bake for 25–30 minutes. The coconut should look lightly golden, the edges should be set, and the condensed milk should appear bubbly around the sides.
6. Cool and slice. Remove the pan from the oven and place it on a wire rack. Allow the bars to cool completely, preferably for 1–2 hours. Lift them out using the parchment paper and cut into 24 bars with a sharp knife.
Expert Tips
-
Press the crust firmly: A compact graham cracker base is less likely to crumble when sliced.
-
Distribute toppings evenly: Spread the ingredients into the corners so each bar gets a balanced combination of flavors.
-
Don’t overbake: Excessive baking can make the coconut too dark and the edges overly hard.
-
Cool completely: The condensed milk needs time to set. Cutting the bars while warm can make them messy and difficult to handle.
-
Use parchment paper: It makes removing and slicing the entire batch much easier.
Common Mistakes to Avoid
-
Using evaporated milk: It doesn’t have the sweetness or thickness needed to bind the layers.
-
Adding too much butter: Follow the measured quantity to prevent a greasy crust.
-
Uneven layering: Large piles of toppings can cause some portions to hold together poorly.
-
Skipping the cooling time: Warm bars are softer and more likely to fall apart.
-
Overbaking: Look for lightly golden coconut rather than a deeply browned top.
Easy Variations
-
Classic seven-layer bars: Keep the chocolate chips, butterscotch chips, coconut, pecans, condensed milk, butter, and graham cracker crust as written.
-
Dark chocolate version: Replace semi-sweet chocolate chips with dark chocolate chips for a deeper chocolate flavor.
-
Walnut cookie bars: Swap pecans for chopped walnuts.
-
White chocolate version: Replace some of the semi-sweet chips with white chocolate chips for a sweeter combination.
-
Nut-free version: Leave out the pecans and add extra chocolate or butterscotch chips.
Ingredient Substitutions
| Ingredient | Substitute |
|---|---|
| Graham cracker crumbs | Digestive biscuit crumbs |
| Unsalted butter | Salted butter; omit additional salt |
| Semi-sweet chocolate chips | Milk or dark chocolate chips |
| Butterscotch chips | Additional chocolate chips |
| Pecans | Walnuts or omit |
| Sweetened coconut | Unsweetened shredded coconut |
Digestive biscuits have a slightly different flavor from graham crackers, but they work well as a crust alternative.
What to Serve With Magic Cookie Bars
These bars are rich and sweet, so simple drinks and lighter desserts make good accompaniments.
-
Coffee: Black coffee balances the sweetness of the chocolate and butterscotch.
-
Cold milk: A classic pairing with chocolate-based desserts.
-
Fresh strawberries: Their natural tartness provides a refreshing contrast.
-
Vanilla ice cream: Serve a small bar alongside a scoop for a more substantial dessert.
Storage & Reheating
Room temperature: Store the completely cooled bars in an airtight container for up to 3 days in a cool environment.
Refrigerator: Keep them in an airtight container for up to 1 week. Chilling makes the bars firmer and easier to handle.
Freezer: Freeze individually wrapped bars in a freezer-safe container for up to 3 months. Thaw in the refrigerator or at room temperature before serving.
Reheating: These bars are generally served at room temperature or chilled, so reheating isn’t necessary. If you prefer slightly softened chocolate, allow a refrigerated bar to sit at room temperature briefly before serving.
Frequently Asked Questions
1. Why are they called Magic Cookie Bars?
They’re called magic cookie bars because a few simple ingredients transform into cohesive, layered dessert bars during baking. Sweetened condensed milk binds the toppings together without requiring a traditional cookie dough.
2. Are Magic Cookie Bars the same as Seven Layer Bars?
Yes, the names are commonly used interchangeably. The traditional seven layers include graham cracker crumbs, butter, sweetened condensed milk, chocolate chips, butterscotch chips, coconut, and nuts.
3. Can I make Magic Cookie Bars without coconut?
Yes. Simply leave out the coconut and add a little extra chocolate or butterscotch chips. The texture will be slightly different, but the bars will still hold together.
4. Why are my Magic Cookie Bars falling apart?
The most common reason is cutting them before they have cooled completely. The condensed milk needs time to set and hold the layers together.
5. Can I make these bars ahead of time?
Absolutely. Bake them a day ahead, allow them to cool completely, and store them in an airtight container. Slice before serving for convenient portions.
6. Do I need to refrigerate Magic Cookie Bars?
Not necessarily if you’re serving them within a few days and storing them in a cool environment. Refrigeration is a useful option for longer storage.
Final Thoughts
Magic Cookie Bars are a straightforward dessert with plenty of texture and flavor in every layer. With a buttery graham cracker base and a combination of chocolate, butterscotch, coconut, and pecans, they’re a wonderful addition to holiday dessert trays and everyday baking collections.

Leave a Reply