This 7 layer magic bar recipe layers graham crust, chocolate, coconut, and nuts into one easy pan dessert.
When you want dessert that takes little effort, a classic pan of magic cookie bars is hard to beat. Everything bakes in one pan, the ingredients come straight from the pantry, and the bars slice into neat squares that travel well.
These bars go by names like Hello Dolly bars or magic cookie bars, yet the idea stays the same. A buttery graham cracker crust holds chocolate chips, butterscotch chips, coconut, and nuts, all held together with sweetened condensed milk.
Below you will find a reliable base formula, clear step-by-step instructions, and practical tips so your own pan of seven layer bars comes out golden, set, and easy to cut.
What Are 7 Layer Magic Bars?
Seven layer bars are a type of bar cookie built in layers instead of stirred like a batter. The most common combination stacks a graham cracker crust, butter, sweetened condensed milk, chocolate chips, butterscotch chips, shredded coconut, and chopped nuts. Some bakers count the crust and butter separately, others count all the topping elements, yet the idea stays constant: a handful of simple ingredients arranged in clear layers.
Because this is a no-mixer dessert, the order of those layers matters. The crust needs enough butter so the crumbs hold together. The sweetened condensed milk has to reach the edges of the pan so every bite turns out moist instead of dry.
Recipes from reliable baking sources, such as the King Arthur Baking seven-layer bars recipe, stay close to this structure, with only small changes to chip flavors or nut types to suit different tastes.
7 Layer Magic Bar Recipe Ingredients And Ratios
This 7 layer magic bar recipe is written for a standard 9×13 inch pan, which yields about 24 small bars or 12 larger squares. You can scale the amounts once you understand how each ingredient behaves.
| Layer Or Ingredient | Amount For 9×13 Pan | What It Adds |
|---|---|---|
| Graham cracker crumbs | 2 cups (about 200 g) | Sweet, sandy base that soaks up butter and milk. |
| Unsalted butter, melted | 1/2 cup (115 g) | Binds crumbs into a crust and adds rich flavor. |
| Sweetened condensed milk | 1 can, 14 oz (397 g) | Sticky “glue” that sweetens and holds the layers together. |
| Semisweet chocolate chips | 1 1/2 cups (255 g) | Melty pockets of chocolate in every bite. |
| Butterscotch or white chips | 1 cup (170 g) | Extra sweetness and a contrast to the chocolate. |
| Shredded coconut, sweetened | 1 1/2 cups (120 g) | Toasty top layer that browns and adds chew. |
| Chopped nuts (walnuts, pecans, or almonds) | 1 cup (110 g) | Crisp texture and a slight bitter edge to balance the sugar. |
| Fine sea salt | 1/4 teaspoon | Sharpens flavor and keeps the sweetness in check. |
You can swap graham crackers for digestive biscuits or similar plain cookies as long as you keep the crumb volume close to the amounts above. The balance between crumbs and butter keeps the crust from crumbling once you lift the bars from the pan.
For the toppings, think of the total cup measure as flexible. If you prefer more chocolate and no butterscotch, use only chocolate chips but keep the combined chip amount near two and a half cups so the milk can still seep between the pieces.
Step-By-Step 7 Layer Magic Bar Recipe Method
Oven temperature and pan preparation make a big difference with bar cookies. Line the pan with parchment that hangs over the long sides to form a sling. That way you can lift the slab out in one piece once the bars cool.
Prepare The Pan And Crust
- Heat the oven to 350°F (175°C). Position a rack in the middle of the oven.
- Line a 9×13 inch metal baking pan with parchment, leaving extra paper at two sides for easy lifting. Lightly coat the parchment and any exposed pan edges with cooking spray or a thin film of butter.
- Stir the graham cracker crumbs, melted butter, salt, and two tablespoons of the sweetened condensed milk in a bowl until every crumb looks damp.
- Press the mixture firmly into the pan with the flat bottom of a measuring cup. Press all the way into the corners so the crust layer has an even thickness.
- Bake the crust for 8 minutes. This short bake firms the base and keeps the bottom from turning soggy once the toppings go on.
Layer The Toppings
- After the crust comes out of the oven, give the can of sweetened condensed milk a stir. Pour about half of it evenly over the hot crust, reaching all the way to the edges.
- Scatter the chocolate chips over the crust in an even layer. Sprinkle the butterscotch or white chips over the chocolate.
- Add the chopped nuts, aiming for an even spread so each bar gets some crunch.
- Sprinkle the shredded coconut across the top. Try not to pack it down yet; loose strands brown more evenly.
- Drizzle the remaining sweetened condensed milk over the coconut, moving the can or spoon in thin lines across the surface. The milk will sink as the bars bake and help the coconut adhere.
Bake, Cool, And Slice
- Return the pan to the oven and bake for 22 to 28 minutes. The edges should look dark golden and the coconut on top should be nicely toasted, with only small pale patches in the center.
- If the coconut browns too fast before the center looks set, tent the pan loosely with foil and keep baking until the middle no longer looks wet.
- Set the pan on a rack and let the bars cool at room temperature for at least one hour. Warm bars tend to fall apart when sliced.
- For the cleanest squares, chill the pan in the fridge for 30 minutes once the bars reach room temperature. Use the parchment sling to pull the slab onto a cutting board, then slice with a sharp knife, wiping the blade between cuts.
Pan Size Variations And Batch Planning
Once you understand how this recipe behaves in a 9×13 inch pan, you can scale it for smaller gatherings or full event trays. The main trick is to keep the crust thickness and topping depth similar so the bars bake through in a similar window of time.
| Pan Size | Approximate Servings | Adjustment Notes |
|---|---|---|
| 8×8 inch square | 12 small bars | Use half of every ingredient and bake 20 to 25 minutes. |
| 9×9 inch square | 16 small bars | Use two thirds of the 9×13 amounts and bake 22 to 27 minutes. |
| 9×13 inch rectangle | 24 small bars | Use the full recipe and bake 22 to 28 minutes. |
| Half sheet pan | 36 to 40 bite size bars | Increase ingredients by half and extend bake time slightly. |
| Quarter sheet pan | 15 to 18 bars | Use about two thirds of the full recipe and watch closely near the end. |
If you plan to cut the bars into small squares for a cookie tray, go for a slightly thinner layer of toppings so the pieces stay tidy. For generous bake sale squares, keep the full topping depth and cut the slab into rectangles instead of perfect squares.
Storage, Freezing, And Food Safety
Seven layer bars keep well, which makes them handy for events. Once the pan has cooled, transfer the bars to an airtight container with parchment between layers. At cool room temperature they stay pleasant for about three days, as long as your kitchen does not run hot. Bars freeze beautifully.
Guidance from the USDA cookie storage advice notes that homemade cookies can sit at room temperature for up to a couple of weeks or longer in the fridge. Applied to rich bar cookies like these, a cautious approach is to chill leftovers after two to three days on the counter and keep them refrigerated for up to a week.
For longer storage, freeze the cut bars in a single layer until firm, then stack in a container with parchment between layers. They keep their texture for about two months in the freezer. Thaw a tray at room temperature, still covered, so condensation forms on the container instead of directly on the bars.
If you include add-ins that need stricter handling, such as chopped dried fruit or bacon, follow food safety advice on refrigerated storage from agencies like the USDA and FoodSafety.gov and keep those versions chilled from the start.
Troubleshooting Common Magic Bar Problems
Bars Crumbling Or Falling Apart
Check The Crust
When bars refuse to hold together, the trouble usually comes from the crust. Either the crumbs did not have enough butter, or the mixture did not get pressed firmly into the pan. Make sure every crumb is coated and press firmly. A short pre bake for the crust also helps it set before the toppings go on.
Slicing too soon creates the same effect. The condensed milk needs time to cool and set. Let the pan cool on a rack, then chill briefly before cutting if neat edges matter for presentation.
Overbrowned Coconut Or Hard Edges
If the coconut on top looks dark long before the center feels set, tent the pan with foil to slow browning. You can also move the pan to a lower rack in the oven for the last few minutes so the base gets a bit more direct heat and the top sits farther from the heating element.
Soggy Center Or Greasy Texture
A greasy feel usually means an imbalance between fat and dry ingredients. Too much butter or too few crumbs leave excess fat that has nowhere to go. Stick close to the crumb and butter ratios in this recipe, and resist the urge to add more condensed milk than the pan can absorb.
A pan that looks pale and loose in the center likely needs a bit more time in the oven. Keep baking in short increments until the top looks mostly set, then cool the bars completely before cutting. With the right balance and patience, your next batch of seven layer bars will slice cleanly and bring all the gooey texture you want without falling apart.

