These six-ingredient magic bars layer a buttery graham cracker crust with chocolate chips, coconut, and crunchy nuts, all held together by sweetened condensed milk. They’re easy to assemble, bake in one pan, and slice into rich, chewy treats after they cool.
Ingredients
- 1/2 cup (113 g) unsalted butter
- 1 1/2 cups (about 170 g) graham cracker crumbs
- 1 can (14 oz/396 g) sweetened condensed milk
- 1 1/2 cups (255 g) semisweet chocolate chips
- 1 1/3 cups (about 100 g) sweetened shredded coconut
- 1 cup (about 115 g) chopped pecans or walnuts
Instructions
- Heat the oven to 350°F (175°C). Line a 9-by-13-inch baking pan with parchment paper, leaving some overhang on two opposite sides so you can lift out the cooled bars. Lightly grease the exposed sides of the pan if needed.
- Melt the butter and pour it into the prepared pan. Sprinkle the graham cracker crumbs evenly over the butter. Press them down firmly with the back of a spoon or the bottom of a measuring cup to form a compact, even crust. Check the corners; loose or thick patches can make the bars crumble or bake unevenly.
- Pour the sweetened condensed milk slowly over the crust, spreading it as evenly as possible without disturbing the crumb layer. Sprinkle on the chocolate chips, then the coconut and chopped nuts. Distribute each topping across the pan so every bar gets a little of everything. Press the toppings very gently into the condensed milk to help them stay in place.
- Bake for 25–30 minutes, until the edges are golden brown and the coconut has toasted lightly. The center may look soft while hot; it will firm as it cools. If the coconut is browning too quickly, loosely tent the pan with foil for the remaining bake time.
- Set the pan on a cooling rack and let the bars cool completely, about 2 hours. For especially neat slices, chill the cooled pan for 30–45 minutes. Lift the slab out using the parchment, place it on a cutting board, and cut into 24 bars with a sharp knife. Wipe the knife between cuts if the chocolate sticks.
Tips
- Measure the crumbs accurately: If starting with whole graham crackers, crush them finely and measure by volume or weight. A coarse or lightly filled cup can leave gaps in the crust; aim for about 1 1/2 cups of crumbs.
- Use sweetened condensed milk, not evaporated milk. They are different products. Condensed milk is thick and sweet and binds the layers; evaporated milk will not set the bars properly.
- Don’t cut while warm. Warm condensed milk and melted chocolate are soft, so the layers can slide apart. Let the pan cool fully, and chill briefly if you want clean edges.
- Keep the topping layer even. Avoid piling all the nuts or coconut in one spot. A gentle, even layer helps the bars bake consistently and makes them easier to portion.
Serving Suggestions
Serve the bars at room temperature for a chewy texture, or slightly chilled if you prefer firmer chocolate and a more compact bite. They pair well with coffee, tea, or a glass of cold milk. For a simple dessert plate, add fresh berries or a scoop of vanilla ice cream; the bars are rich, so small portions are often enough.
For sharing, cut the slab into 24 pieces, or make smaller squares for a cookie tray. A sharp knife and fully cooled bars make the portions tidier, especially if you’re packing them for a gathering.
Variations
Keep the total amount of toppings close to the recipe’s amounts so the condensed milk can bind them. Swap the semisweet chips for milk chocolate, dark chocolate, or butterscotch chips. Replace the pecans or walnuts with an equal amount of sliced almonds or chopped peanuts, provided there are no allergy concerns.
You can also use unsweetened shredded coconut if you prefer a less sweet bar, though the flavor and texture will differ slightly. For a different crust, use finely crushed vanilla wafer or digestive biscuits in place of the graham cracker crumbs. These swaps change the flavor, but the same pan size and baking range generally work; look for golden edges rather than relying only on the clock.
Storage and Reheating
Once completely cool, store the bars in an airtight container at room temperature for up to 4 days, separating layers with parchment if stacking. In warm weather, or if the chocolate becomes too soft, refrigerate them for up to 1 week. Bring chilled bars to room temperature for about 15–20 minutes before serving if you want a softer, chewier texture.
To freeze, wrap individual bars or place them in a freezer-safe container with parchment between layers. Freeze for up to 2 months and thaw overnight in the refrigerator or for about an hour at room temperature. These bars are best served as they are; reheating can soften the condensed milk and make the layers messy. If you want a warm bite, microwave one bar briefly in 5-second bursts, stopping as soon as the chocolate softens.
Related
Frequently Asked Questions
Why are my magic bars falling apart?
They may have been cut before cooling, or the crumb crust may not have been pressed firmly enough. Let the bars cool completely before slicing, and chill them briefly for cleaner cuts. Also check that you used sweetened condensed milk rather than evaporated milk.
Can I make these without nuts?
Yes. Leave the nuts out and add an equal amount of chocolate chips or coconut so the topping layer stays balanced. If you are avoiding nuts because of an allergy, check ingredient labels and prevent cross-contact with utensils and surfaces.
Do I need to grease the pan if I use parchment?
Parchment makes lifting and slicing easier, and greasing the pan lightly can help it stay in place. Leave an overhang so you can lift out the cooled slab. Avoid relying on parchment alone if it is not rated for oven use.
Can I prepare the bars ahead?
Yes. Bake and cool them a day ahead, then cover and store them in an airtight container. For the neatest presentation, slice them shortly before serving or after chilling the slab briefly.
How can I tell when they’re done?
The edges should look set and golden, and the coconut should be lightly toasted. The center can still appear soft when the pan comes out; it firms as the bars cool. Avoid baking until the whole surface is dark, since the coconut can turn bitter.
Can I use a different pan size?
A 9-by-13-inch pan gives the intended thickness and baking time. A smaller pan makes thicker bars that need longer to bake and may brown before setting; a larger pan makes thinner bars that bake faster. If changing the pan, watch the color and doneness rather than following the original time exactly.