
Classic 7-layer bars by Jamielyn Nye—gooey layers of graham cracker crust, chocolate and butterscotch chips, pecans, sweetened condensed milk and coconut. Ready in 30 minutes, crowd-pleasing every time.

This recipe for 7-layer bars has been my go-to baking shortcut for holidays, potlucks and last-minute cookie swaps. I first made these on a rainy afternoon when I wanted something nostalgic and foolproof: one pan, handfuls of pantry staples and a sweet, chewy finish that reminds me of the treats my grandmother used to bring to church socials. The texture is a remarkable contrast of a crisp, buttery crumb base under gooey, saucy layers of chips, nuts and coconut that set into perfect bars.
I discovered this variation years ago while browsing a friend's recipe box; the condensed milk trick makes the layers meld without needing frosting, and the butterscotch chips add a warm caramel note that lifts the chocolate. We cut the pan into diamonds at family gatherings because the shapes feel festive, and a small square goes a long way thanks to their richness. These bars travel well, keep for days at room temperature and freeze beautifully, so they are a baker's best friend when entertaining or preparing treats for friends.
In my experience these bars disappear first at any bake sale. I once brought a pan to a neighbor's barbecue and watched them vanish within an hour; people raved about the butterscotch and coconut combination. They’re simple enough to let kids help with layering, yet polished enough for gifting with a ribbon.
My favorite aspect is how reliably they bring people together. On chilly evenings I’ll make a pan and watch neighbors swing by for a piece and a cup of coffee. The toasted coconut aroma and the sight of glossy condensed milk ribboned through the chips always draw compliments. They’re a dessert that’s surprisingly sentimental in their simplicity.
Store cooled bars in an airtight container layered with parchment to prevent sticking. At room temperature they remain fresh for three to four days. For longer storage refrigerate up to one week; bring to room temperature for 30 minutes before serving for the best chew. To freeze, cut into squares or diamonds, arrange in a single layer separated by parchment, then transfer to a freezer-safe container for up to two months. Thaw overnight in the refrigerator or on the counter for a few hours.
If you dislike coconut, swap it with chopped pretzels for sweet and salty contrast or mini marshmallows for a softer top. For a nut-free version replace pecans with sunflower seeds or additional chocolate chips. If you want less sweetness, use dark chocolate chips and reduce butterscotch chips by half, or substitute white chocolate chips instead of butterscotch for a milder flavor. For a gluten-free base, use certified gluten-free graham crumbs or crushed gluten-free digestive biscuits; note the base texture may vary slightly.
Serve squares alongside coffee, tea or a scoop of lightly whipped cream for a more elegant presentation. Garnish with a sprinkle of flaky sea salt to balance the sweetness or a dusting of cocoa powder for contrast. These bars pair well with fresh berries in summer or a small glass of dessert wine at holiday gatherings. For a playful dessert board, include several varieties—some with coconut, some with pretzels—to suit different palates.
Often called magic cookie bars or seven-layer bars, this treat became popular in mid-20th century America as home bakers embraced boxed mixes and canned ingredients like sweetened condensed milk. The concept of layered bars appears across cultures as cooks adapt pantry staples into one-dish sweets. The American version emphasizes convenience and texture contrast: crumb crust, glossy condensed milk, chips and shredded coconut create a signature combination recognized in many household recipe boxes.
For winter holidays, stir in cinnamon and chopped dried cranberries with the coconut and replace pecans with chopped walnuts for a seasonal twist. In summer, drop mini marshmallows between the layers and broil for a minute for a toasty finish reminiscent of s'mores. For a spring brunch, add a layer of chopped dried apricots and a sprinkle of toasted sesame seeds for an unexpected nutty lift.
Make bars up to a week ahead and store in the refrigerator; bring to room temperature before serving. For portion control and gifting, pre-cut diamonds and package in small boxes with parchment. If you plan to freeze, slice before freezing so guests can take single servings without thawing the whole pan. The simple assembly makes these bars ideal for batch baking when you need multiple pans for events.
These seven-layer bars are more than a dessert; they are a small ritual for holidays, a reliable offering for neighbors and a quick way to create nostalgia from pantry staples. I hope you make them your own and enjoy the gooey, toasty, crowd-pleasing results.
Press the graham crumb mixture firmly into the pan to create a stable base that resists sogginess.
Cool completely before slicing; chilled bars cut cleaner and hold their shape better.
Toast the pecans briefly in a dry skillet to bring out oils and deepen the nutty flavor.
Use a warmed metal knife or plastic knife to slice for cleaner edges when cutting diamonds.
This nourishing 7-layer bars (magic cookie bars) recipe is sure to be a staple in your kitchen. Enjoy every moist, high protein slice — it is perfect for breakfast or as a wholesome snack any time.
Yes. For diamonds, cut horizontal lines 1 1/2 inches apart, then diagonal lines 1 1/2 inches apart. A plastic knife or warmed metal blade cuts cleaner.
Wait until completely cooled to room temperature before covering, or chill to let the center set. Store at room temperature for 3 to 4 days or refrigerate up to a week.
This 7-Layer Bars (Magic Cookie Bars) recipe makes perfectly juicy, tender, and flavorful steak every time! Serve with potatoes and a side salad for an unforgettable dinner in under 30 minutes.

Preheat oven to 350°F. Line a 9 by 13 inch baking dish with parchment paper or foil and lightly spray with nonstick cooking spray.
Combine 1 1/2 cups graham cracker crumbs with 1/2 cup melted butter until evenly moistened. Press firmly into the bottom of the prepared pan using the back of a measuring cup.
Evenly sprinkle 1 cup chocolate chips, then 1 cup butterscotch chips, and 1/2 cup chopped pecans over the crust, distributing so each piece will have a mix of ingredients.
Pour the 14-ounce can of sweetened condensed milk evenly over the top so it settles between the chips, then sprinkle 1 cup shredded coconut across the surface.
Bake for 20 to 25 minutes until the top is lightly browned and bubbling. Cool completely on a wire rack before cutting into squares or diamonds.
Cut into 1 1/2 inch pieces or diamonds. Store in an airtight container at room temperature for 3 to 4 days or freeze up to 2 months.
Last Step: Please leave a rating and comment letting us know how you liked this recipe! This helps our business to thrive and continue providing free, high-quality recipes for you.
Leave a comment & rating below or tag
@velvetyum on social media!


Fresh strawberries, creamy vanilla yogurt, and crunchy granola come together in these portable frozen bites. A simple three ingredient snack that is perfect for breakfast, lunch boxes, or an icy treat.

A cozy, 30-minute chickpea and tomato coconut curry soup made with pantry staples — creamy, vibrant, and naturally vegan and gluten free.

A quick, pantry-friendly garlic-ginger glazed salmon that’s gluten free, soy free (when using coconut aminos), and naturally sweetened with honey — ready in 30 minutes and perfect for weeknight dinners.

Leave a comment & rating below or tag @velvetyum on social media!
Enjoyed this recipe? Share it with friends and family, and don't forget to leave a review!
This recipe looks amazing! Can't wait to try it.
Comments are stored locally in your browser. Server comments are displayed alongside your local comments.
Join to receive our email series which contains a round-up of some of our quick and easy family favorite recipes.