Magic cookie bars / Seven-layer bars
intro
Rich, no-mix layered bar cookies with a buttery graham base, coconut, chocolate, butterscotch, and nuts—just layer, bake, and cool for a foolproof, crowd-pleasing treat.
Ingredients
Steps
Preheat oven and prep pan
Preheat your oven to 350°F (175°C). Melt the ½ cup (113g) of unsalted butter in the microwave (30 seconds on high) or small stovetop pan over low heat until fully liquid. Line a 9x13 inch (23x33cm) baking pan with parchment paper, leaving a 2-inch overhang on the long sides for easy lifting later. Pour the melted butter directly into the lined pan, tilting to spread evenly across the entire bottom.
Press graham cracker crust
Sprinkle the 1 ½ cups (150g) of graham cracker crumbs evenly over the melted butter. Use the flat bottom of a dry 1-cup measuring cup to press the crumbs firmly into a compact, uniform layer across the pan base, avoiding deep mixing of crumbs into the butter below to keep layers distinct.
Layer chocolate and butterscotch chips
Sprinkle the 1 cup (175g) of semi-sweet chocolate chips in an even, loose layer over the pressed graham crust, followed by a uniform layer of the 1 cup (170g) of butterscotch chips. Do not stir or press the chips down, as this will disrupt the clear seven-layer structure.
Top with coconut and walnuts
Spread the 1 ½ cups (115g) of sweetened shredded coconut in an even layer over the chips, then sprinkle the 1 cup (100g) of chopped walnuts uniformly across the coconut. Lightly pat the surface with the palm of your hand to help layers adhere, without pressing firmly enough to crush the chips below.
Drizzle condensed milk evenly
Slowly pour the entire 14-oz (396ml) can of sweetened condensed milk over the nut layer, covering every section of the surface from edge to edge to prevent dry spots. The thick, sweet milk will seep down through the dry layers during baking to bind all ingredients together.
Bake until golden and set
Place the pan on the middle rack of the preheated 350°F (175°C) oven. Bake for 25 minutes, until the edges are deep golden and bubbly, and the center has a slight, soft jiggle when the pan is gently nudged. Avoid overbaking, which will result in dry, tough bars instead of chewy, gooey ones.
Cool, slice, and serve
Remove the pan from the oven and transfer to a wire rack to cool completely for 30 minutes at room temperature, then chill for 15 minutes in the fridge to set fully. Use the parchment overhang to lift the entire bar block out of the pan, then cut into 12 equal 2x3 inch squares with a sharp knife.
Tips
2.Wait until bars are fully cooled and set before cutting: warm bars will crumble apart, as the melted chocolate and condensed milk need time to firm up into clean, sliceable squares.
3.Customize layers to taste: swap walnuts for pecans, replace butterscotch chips with peanut butter or white chocolate chips, or add a ¼ teaspoon sprinkle of flaky sea salt on top before baking. Keep total dry add-ins to 4 ½ cups to avoid pan overflow during baking.

OMG these are SO good! I threw these together last night for my kid’s soccer team snack and every single parent asked for the recipe. 35 minutes total? No way, it felt like I spent 10 minutes prepping tops. Used extra dark chocolate chips because that’s what we had in the pantry and it was chef’s kiss. 10/10 will be making these for every potluck from now on.
Game changer alert! I swapped the regular graham cracker crumbs for gluten free grahams and didn’t change a single other thing, and my whole family (none of whom are gluten free) didn’t even notice a difference. These are perfectly chewy, not too sweet, and the butterscotch layer hits so hard. My only regret is not doubling the batch because they were gone in 12 hours flat.
Brought these to our neighborhood block party this weekend and I swear people were coming back for thirds. The recipe is so easy even my 10 year old was able to help layer everything, which made it a fun weekend activity too. The crunch from the walnuts paired with the gooey condensed milk is just unbeatable. No notes, 10/10.
Wait, is there a trick to getting the coconut to not burn on top? I followed the cook time exactly and the edges of the coconut got pretty dark, even though the middle was perfectly set. Flavor was still insane, I ate half the pan while binging Netflix last night tbh, but I wanna nail the look next time.
My kids loved these so much that they asked me to put them in their school lunch every day this week. I cut them into smaller bite-sized pieces so they’re perfect for little hands, no mess. Way better than the processed granola bars I usually buy for meal prep, and so much cheaper to make at home.
I swapped the butterscotch chips for peanut butter chips because that’s my favorite combo and HOLY COW. If you’re a peanut butter and chocolate fan, do yourself a favor and try that swap. It tastes like a Reese’s cup but chewier, more coconutty, just perfect. So easy, no fancy equipment needed, I already have the ingredients out to make another batch tonight.
I brought these in for our office bake off and WON first place, no cap. Everyone kept saying they tasted exactly like the seven layer bars their grandma used to make, which is the highest compliment you can get honestly. The recipe is so straightforward I didn’t even have to stress about messing it up the night before, even after a long work day. 100% adding this to my permanent recipe rotation.
Full transparency: I forgot to add the butter on top of the graham cracker crust and was convinced I ruined the whole batch, but they still turned out amazing?? How is that even possible? The condensed milk soaked into the crumbs just enough to hold the crust together, and all the layers still set perfectly. I’ll add the butter next time, but wow, this recipe is foolproof even for airheads like me.
I make seven layer bars every Christmas for our cookie tins, and this is by far the best version I’ve ever tried. The ratio of chocolate to butterscotch to coconut is perfect—no single layer overpowers the others. I didn’t have to adjust a single measurement, which is rare for online recipes. My husband already asked if we can make a batch just for us before we start filling the tins for neighbors.
I made these vegan by swapping the condensed milk for coconut condensed milk and using dairy free chocolate/butterscotch chips, and they came out INCREDIBLE. You literally can’t tell they’re vegan, my meat-and-potatoes dad ate three and had no idea. I was worried the swaps would mess with the texture, but they were just as chewy and gooey as the original.
I’ve literally never baked anything from scratch before in my life, and I picked this recipe because it said easy. Y’ALL. I did it! The bars came out perfect, my roommate said they’re the best thing I’ve ever made (not a high bar, but still). I didn’t even mess up the layers! I was so proud I took a million photos to send to my mom. 10/10 for beginner bakers, no fancy skills required.