7-Layer Cookie Bars are the kind of old-school bar cookie I never get tired of making. They’ve got a buttery graham crust and that classic mix of chocolate, coconut, and nuts on top.
I like them best when they’re a little chewy in the middle with crisp edges, and the butterscotch chips make them taste like the version I always want on a cookie tray. Once they’re chilled, the layers hold together nicely and you get clean, satisfying squares.
For me, these are holiday-platter bars, but I also make them for bake sales, potlucks, and weekends when I want a dessert that cuts into a lot of servings. They’re rich, so a small bar goes a long way, especially with coffee.

Why You’ll Love This Recipe
Fast and easy: It’s a simple layer-and-bake bar recipe that doesn’t take much time or fuss.
Soft and chewy: The center stays pleasantly chewy, and the edges get that little bit of crisp that makes these hard to stop eating.
Great for cookie trays: They slice into neat squares and hold up well on dessert platters and holiday trays.
Make-ahead friendly: These are actually easier to cut after they’ve chilled, so they’re great when you want dessert handled early.
Easy to customize: You can swap the chips, change the nuts, or adjust the coconut to fit what you like (or what you have).
Ingredients You’ll Need
Crust
- Graham cracker crumbs: I use plain graham crumbs here. They make a sturdy base that still tastes like a cookie, not a bland crust.
- Unsalted butter: Melted butter is what binds the crumbs and gives you that classic buttery flavor. If you only have salted butter, just go a little light on added salt.
- Granulated sugar: Just enough to sweeten the crust and help it set up a bit as it bakes.
- Fine salt: Don’t skip it. A little salt keeps the bars from tasting flat with all the sweet layers.
Layers
- Sweetened condensed milk: This is the glue that holds the layers together. I pour it as evenly as I can so you don’t end up with dry corners.
- Semisweet chocolate chips: Semisweet is my go-to here. Milk chocolate works if that’s what you have, but the bars will be sweeter.
- Butterscotch chips: This is the flavor that makes these taste like classic “magic bars” to me. If you’re not a butterscotch person, swap them for more chocolate.
- Sweetened shredded coconut: I like the sweetened coconut for that traditional chewy top layer. Unsweetened works too if you want to dial back the sweetness.
- Chopped pecans or walnuts: Use whatever you like (or whatever is cheaper that week). I usually go for pecans, but walnuts are great too.
- Vanilla extract (optional): Not required, but it gives the condensed milk layer a little extra warmth. I add it when I remember.

Recipe Instructions
- Heat the oven: Heat the oven to 350°F and set a rack in the center.
- Line the pan: Line a 9×13-inch baking pan with parchment paper, leaving some overhang so you can lift the bars out later. Lightly grease the parchment.
- Mix the crust: Stir the graham cracker crumbs, melted butter, sugar, and salt together until everything looks evenly moistened.
- Bake the crust: Press the crust mixture firmly into an even layer in the pan, then bake for 8 minutes, just until it’s set.
- Add the chips: Sprinkle the chocolate chips evenly over the warm crust, then sprinkle the butterscotch chips over the top.
- Add coconut and nuts: Sprinkle the coconut in an even layer, then add the chopped nuts over the coconut.
- Add the condensed milk: Whisk the sweetened condensed milk with the vanilla extract (if using), then pour it evenly over the top, covering as much of the surface as possible.
- Bake: Bake for 20 to 22 minutes, until the edges are lightly golden and the center looks set with gentle bubbling.
- Cool and chill: Cool completely in the pan, then chill for 1 hour for cleaner cuts.
- Slice: Lift the bars out using the parchment overhang, then slice into bars.

Some of my tips!
This is the part that really makes a difference. If you only read one section, make it this one because this is where I share the little trick that helps the recipe turn out so well.
Recipe Tips & Tricks
Press the crust down firmly. Use the bottom of a measuring cup or a glass to really pack it in. A tight crust keeps the bars from crumbling when you cut them.
Pour the condensed milk slowly. If you dump it in one spot, it tends to puddle and you can end up with dry patches. I pour in a thin stream and nudge it around if needed.
Watch the edges near the end. These go from “not quite” to “too dark” pretty quickly in some ovens. Pull them when the edges are lightly golden and the center looks set.
Chill longer for cleaner slices. One hour helps, but more time in the fridge makes a big difference if you want neat squares for a cookie tray.
Use a hot, dry knife. Run the knife under hot water, wipe it dry, then slice. Repeat as needed so the layers don’t smear.
Make some touches!
There are plenty of easy ways to serve this depending on the occasion. Keep it simple, or add a few small touches to make it feel a little more special.
Serving Suggestions
- Coffee or espresso: These are really good with coffee, especially if you cut the bars on the smaller side. I like them with black coffee or a latte.
- Milk: A cold glass of milk is classic here. It’s a nice contrast to the rich, chewy layers.
- Ice cream: Serve a bar with vanilla ice cream on the side if you want a more “dessert plate” feel. It’s also good with a little caramel sauce.
- Fruit: Fresh berries are nice with these, especially strawberries or raspberries. It’s an easy way to add something fresh next to a rich bar.
Save it for later
This section covers how to store leftovers and what parts of the recipe you can prepare ahead of time.
Storage and Make Ahead
Store them airtight at room temperature for up to 5 days. I like to keep them in a single layer if I can, or separate layers with parchment so the tops don’t stick.
You can make these ahead since they slice better after chilling anyway. I’ll bake them the day before, chill, then cut the next day.
If you want them to last longer, freeze the bars for up to 2 months. Wrap them well and freeze in a container so they don’t pick up freezer smells.
Thaw in the fridge overnight or at room temperature for a couple hours. They’re easiest to handle and stack once they’ve firmed back up.

A few quick answers
This section covers a few extra details that may help before you head to the recipe card.
Recipe FAQs
Why are they called “magic” cookie bars?
It’s mostly because the layers set up into a bar without any mixing. The sweetened condensed milk bakes into the chips, coconut, and nuts and turns into that classic chewy topping.
Can I make 7-layer bars without nuts?
Yes. You can skip the nuts completely, or swap in sunflower seeds if you still want a little crunch. The bars will be a bit softer, but they still slice up fine once chilled.
Can I use different chips?
Definitely. Peanut butter chips, white chocolate chips, or extra chocolate chips all work. I’d keep the total amount of chips about the same so the bars don’t get too thick or greasy.
How do I know when they’re done baking?
Look for lightly golden edges and a center that’s set with gentle bubbling. If the center still looks very liquid, give it another couple minutes, but don’t bake until it’s dark brown.
What’s the best way to get clean cuts?
Chill the pan longer than you think you need, then use a hot, dry knife. Wipe the blade between cuts so the chocolate and butterscotch don’t smear across the top.
You might also like
Before you go, take a look at a few other recipes below the recipe card. They use similar ingredients in a different way and are worth saving too.

7-Layer Cookie Bars
INGREDIENTS
Crust
- 1.5 cups graham cracker crumbs
- ½ cup unsalted butter melted
- 2 tbsp granulated sugar
- ¼ tsp fine salt.
Layers
- 1 can sweetened condensed milk 14 oz
- 1 cup semisweet chocolate chips
- 1 cup butterscotch chips
- 1.5 cups sweetened shredded coconut
- 1 cup chopped pecans or walnuts
- 1 tsp vanilla extract optional.
INSTRUCTIONS
Prepare Pan and Crust
- heat oven to 350 F and place rack in center
- line a 9x13 inch baking pan with parchment leaving overhang and lightly grease
- mix graham cracker crumbs butter sugar and salt until evenly moistened
- press firmly into an even layer in the pan and bake 8 minutes until just set.
Add Layers and Bake
- sprinkle chocolate chips then butterscotch chips evenly over warm crust
- sprinkle coconut then nuts in even layers
- whisk sweetened condensed milk with vanilla if using and pour evenly over the top covering as much surface as possible
- bake 20 to 22 minutes until edges are lightly golden and the center is set with gentle bubbling
- cool completely in the pan then chill 1 hour for clean cuts
- lift out with parchment and slice into bars.
