Magic cookie bars—also known as hello dollies or seven-layer bars—are the dessert that practically builds itself. A buttery graham cracker crust gets topped with chocolate chips, butterscotch chips, coconut, and nuts, then drenched in sweetened condensed milk and baked until golden and chewy. The magic is in the layering: the condensed milk sinks through the toppings and caramelizes the edges, while the center stays soft and fudgy. This recipe is sized for a standard 9×13-inch pan, so you get a generous 24 bars—perfect for potlucks, bake sales, or a week of after-school treats.
Ingredients
- 1 ½ cups (150g) graham cracker crumbs (about 12 full sheets)
- ½ cup (1 stick / 113g) unsalted butter, melted
- 1 ½ cups (270g) semisweet chocolate chips
- 1 cup (170g) butterscotch chips
- 1 cup (85g) sweetened shredded coconut
- 1 cup (120g) chopped pecans or walnuts
- 1 can (14 ounces / 396g) sweetened condensed milk
Instructions
- Preheat your oven to 350°F (175°C). Line a 9×13-inch baking pan with parchment paper, leaving a 2-inch overhang on two opposite sides. This will make lifting the bars out a breeze later.
- In a medium bowl, stir together the graham cracker crumbs and melted butter until every crumb is moistened. Press the mixture firmly and evenly into the bottom of the prepared pan. Use the flat bottom of a measuring cup to compact it well—a loose crust will crumble when you cut the bars.
- Sprinkle the chocolate chips evenly over the crust, followed by the butterscotch chips. Try to distribute them in a fairly even layer, but don’t obsess over perfection; the condensed milk will help hold everything together.
- Scatter the shredded coconut over the chips, then the chopped nuts. Again, aim for an even spread so every bite gets a little of everything.
- Drizzle the sweetened condensed milk evenly over the entire surface. Use a spoon or spatula to coax it into the corners and over any dry spots. It should coat the toppings, not pool too thickly in one area.
- Bake for 25 to 30 minutes, until the edges are deeply golden and bubbly, and the center is set but still slightly jiggly. The top should be a rich amber color. If the edges brown too quickly, tent loosely with foil for the last 5 minutes.
- Let the bars cool completely in the pan on a wire rack—this takes about 2 hours. Do not rush this step; warm bars will fall apart. Once cool, use the parchment overhang to lift the whole slab onto a cutting board.
- Cut into 24 squares (4 rows by 6 rows) using a sharp knife. Wipe the knife clean between cuts for neat edges.
Tips
- Press the crust firmly: A loosely packed crust will crumble when you cut the bars. Use the back of a measuring cup or a flat-bottomed glass to compact it thoroughly before adding toppings.
- Don’t overbake: The bars are done when the edges are bubbling and the center is just set. Overbaking dries them out and makes the condensed milk crystallize into a tough, sugary layer. Start checking at 25 minutes.
- Chill before cutting: If you have time, refrigerate the cooled bars for 30 minutes before slicing. The condensed milk firms up, giving you cleaner cuts and less sticky mess.
- Swap the chips freely: Butterscotch can be polarizing. Use white chocolate chips, peanut butter chips, or a mix of dark and milk chocolate instead. Keep the total chip volume the same (2 ½ cups).
Serving Suggestions
Magic cookie bars are rich, so a little goes a long way. Serve them at room temperature with a cold glass of milk or a strong cup of coffee. For dessert, pair a warm bar (microwave for 10 seconds) with a scoop of vanilla ice cream and a drizzle of caramel sauce. They’re also excellent on a holiday cookie platter—their golden, craggy tops look festive next to chocolate chip cookies and brownies. If you’re bringing them to a picnic, cut them smaller (into 36 pieces) so guests can graze without committing to a huge square.
Variations
- Peanut Butter Lover’s: Replace the butterscotch chips with peanut butter chips and add ½ cup of salted peanuts along with the nuts. Drizzle with melted peanut butter before baking.
- Tropical: Swap the pecans for macadamia nuts and use white chocolate chips instead of semisweet. Add ½ cup of dried pineapple or mango pieces (chopped small) to the topping layer.
- Salted Caramel: After baking, sprinkle flaky sea salt over the top while still warm. Use a mix of dark chocolate and caramel chips (if you can find them) or just dark chocolate.
- Gluten-Free: Use gluten-free graham cracker crumbs (or crushed gluten-free vanilla wafers). The rest of the ingredients are naturally gluten-free, but check your chip labels.
- Chocolate Base: Swap the graham cracker crust for a chocolate wafer crust (use 1 ½ cups chocolate cookie crumbs and ½ cup melted butter). This amps up the cocoa flavor.
Storage and Reheating
Store the bars in an airtight container at room temperature for up to 5 days. Stack them with parchment paper between layers to prevent sticking. For longer storage, freeze the bars (individually wrapped or in a single layer in a freezer bag) for up to 3 months. Thaw at room temperature for about 30 minutes, or pop a frozen bar in the microwave for 15–20 seconds for a warm, gooey treat. Avoid refrigerating the bars long-term—the cold makes the condensed milk turn grainy and the crust soggy. If you do refrigerate leftovers, bring them to room temperature before serving.
Frequently Asked Questions
Can I use salted butter instead of unsalted? Yes, just reduce or omit any added salt in the crust. The bars are sweet enough that a little extra salt won’t hurt, but if you’re using salted butter, skip adding salt to the crust entirely.
Why are my bars falling apart when I cut them? This usually happens because they weren’t cooled completely. The condensed milk needs to set fully—give them at least 2 hours at room temperature, or 30 minutes in the fridge. Also, make sure you pressed the crust firmly enough; a loose crust has nothing to hold onto.
Can I use a different pan size? Yes, but adjust baking time. An 8×8 pan will give you thicker bars and need about 5–8 extra minutes. A 9×9 pan works with the same time as 9×13 but yields thicker bars. For a half-sheet pan (12×17), double the recipe and reduce baking time to 20–25 minutes—watch carefully.
Do I need to toast the coconut or nuts first? No, they toast during baking. Toasting them beforehand adds extra flavor but also risks burning them in the oven. If you do toast, keep an eye on the bars—the coconut can go from golden to burnt quickly.
Can I make these ahead of time? Absolutely. They actually taste better the next day once the flavors meld. Bake, cool, cover the pan tightly, and store at room temperature for up to 2 days before cutting. Or freeze the whole slab (unwrapped) until firm, then wrap and freeze for up to 3 months.
Why is my condensed milk not setting? If the bars look runny after baking, they likely need more time. The center should be set but slightly soft—if it’s still liquid, bake for another 5 minutes. Also, make sure you used full-fat sweetened condensed milk, not evaporated milk or a dairy-free alternative, which behave differently.
Can I use quick oats instead of graham crackers? Not as a direct swap, but you can make an oat-based crust: combine 1 ½ cups old-fashioned oats, ½ cup flour, ½ cup brown sugar, and ½ cup melted butter. Press and bake for 10 minutes before adding toppings. It’s chewier and less sweet.