These magic cookie bars have the classic chewy, chocolatey, coconut-and-nut layers, but use a buttery shortbread-style crust instead of graham crackers. The simple press-in base holds together under the toppings, while sweetened condensed milk binds everything into a rich, sliceable bar.
Ingredients
- 1 cup (225 g) unsalted butter, melted, plus a little for the pan
- 2 cups (250 g) all-purpose flour, measured by spooning it into the cup and leveling
- 1/2 cup (100 g) packed light brown sugar
- 1/4 teaspoon fine salt
- 1 can (14 ounces/396 g) sweetened condensed milk
- 1 1/2 cups (255 g) semisweet chocolate chips
- 1 1/3 cups (about 95 g) sweetened shredded coconut
- 1 cup (115 g) chopped pecans or walnuts
- 1/2 cup (85 g) butterscotch chips
Instructions
- Prepare the pan and oven. Heat the oven to 350°F (175°C). Line a 9-by-13-inch metal baking pan with parchment, leaving a little overhang on two sides for lifting. Lightly butter any exposed sides. A light-colored metal pan gives the most even result; if using glass, check the edges early because baking can take a little longer.
- Make the crust. In a medium bowl, stir together the melted butter, flour, brown sugar, and salt until evenly moistened and no dry pockets remain. The mixture will look crumbly but should hold together when pinched. Tip it into the prepared pan and press it into a firm, even layer, especially at the corners.
- Partially bake the base. Bake the crust for 12 to 15 minutes, until it looks set and the edges are just beginning to turn pale gold. It should not be deeply browned, since it will bake again with the toppings.
- Add the condensed milk and toppings. Pour the sweetened condensed milk over the warm crust and spread it gently into a thin, even layer without scraping up the base. Scatter on the chocolate chips, butterscotch chips, coconut, and nuts. Distribute them evenly and press very lightly so the toppings make contact with the milk; do not mash them into the crust.
- Bake until set. Return the pan to the oven for 25 to 30 minutes. The edges should be golden brown, the coconut toasted in spots, and the center bubbling lightly. If the coconut browns too quickly, loosely cover the pan with foil for the final few minutes. The bars are hot and very soft when they come out; they firm as they cool.
- Cool completely before cutting. Set the pan on a wire rack and let the bars cool for at least 2 hours, until fully set. For cleaner slices, chill them for 30 to 45 minutes after cooling. Lift them out using the parchment, place on a cutting board, and cut into 24 squares with a sharp knife. Wipe the knife between cuts if the topping sticks.
Tips
- Measure flour carefully. Too much flour makes a dry, crumbly crust. Weigh it if possible; otherwise, spoon it into the measuring cup and level the top rather than scooping directly from the bag.
- Use the right milk. Sweetened condensed milk is thick and sweet and is the binder here. Evaporated milk is not a substitute; it will not set the layers in the same way.
- Keep the layers even. Press the crust firmly and distribute the toppings across the whole pan. Leave the condensed milk in a thin layer rather than pooling it in one spot, which can make the middle overly soft.
- Let the bars set before slicing. Cutting while warm can make the toppings slide and the center seem underbaked. Cooling is part of the setting process, not an optional step.
Serving Suggestions
Serve the bars at room temperature for a soft, chewy texture, or slightly chilled for firmer layers. They are rich, so small squares work well alongside coffee, tea, or a glass of cold milk. For dessert, add a scoop of vanilla ice cream or a few berries to balance the sweetness. If serving on a platter, arrange the bars in a single layer or separate layers with parchment so the toppings do not stick together.
Variations
- Change the crust: Replace up to 1/2 cup of the flour with finely ground oats or almond flour for a different texture. The crust may be a little more delicate, so press it firmly and cool the bars completely before lifting.
- Swap the nuts: Use chopped almonds, walnuts, or salted peanuts. For a nut-free batch, leave them out and add an extra 1/2 cup of chocolate chips or coconut.
- Adjust the chips: Replace the butterscotch chips with peanut butter chips, white chocolate chips, or more semisweet chocolate. Keep the total amount of chips about the same so the layers still set cleanly.
- Add a little salt: Sprinkle 1/4 teaspoon flaky salt over the toppings just before baking to offset the sweetness. Skip or reduce it if using salted nuts.
Storage and Reheating
Once completely cool, store the bars in an airtight container at room temperature for up to 4 days, provided the room is cool and dry. In a warm kitchen, refrigerate them instead; they keep well for up to 1 week. Place parchment between layers to protect the topping. For longer storage, wrap individual bars or layer them in a freezer-safe container and freeze for up to 2 months. Thaw overnight in the refrigerator or for about an hour at room temperature. These bars are usually served without reheating; if you prefer them warm, microwave one bar for about 5 to 8 seconds, just until softened. Avoid prolonged heating, which can make the condensed milk and chocolate very hot.
Related
Frequently Asked Questions
Can I make these bars without graham crackers?
Yes. This recipe uses a homemade flour-and-butter crust, so no graham crackers or crumbs are needed. The base is pressed into the pan and briefly baked before the toppings go on.
Can I use a different size pan?
A 9-by-13-inch pan gives the intended thickness and baking time. An 8-by-8-inch pan is too small for the full recipe. You can halve the ingredients for an 8-by-8-inch pan, but begin checking the topping after about 20 minutes; baking time will vary.
Why are my bars falling apart?
They may have been cut before cooling completely, or the crust may have had too much flour or too little pressure when packed into the pan. Chill the fully cooled bars before slicing, and use the parchment overhang to lift the slab only once it is set.
Can I make them without coconut?
Yes. Omit the coconut and replace it with an equal amount of extra chocolate chips, chopped nuts, or a mix of the two. The flavor and texture will change, but the condensed milk will still bind the layers.
Do I need to refrigerate magic cookie bars?
Not if they are stored airtight in a cool room; they keep for up to 4 days at room temperature. Refrigeration is helpful in warm or humid conditions and extends their keeping time to about 1 week.
How do I know when the bars are done?
Look for golden edges, toasted coconut, and gentle bubbling in the center. The middle will still be soft when hot, so do not wait for it to feel firm in the oven; it sets as it cools.